internal AddInstanceGroupsResponse AddInstanceGroups(AddInstanceGroupsRequest request) { var marshaller = new AddInstanceGroupsRequestMarshaller(); var unmarshaller = AddInstanceGroupsResponseUnmarshaller.Instance; return(Invoke <AddInstanceGroupsRequest, AddInstanceGroupsResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the AddInstanceGroups operation. /// <seealso cref="Amazon.ElasticMapReduce.IAmazonElasticMapReduce"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AddInstanceGroups operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> public Task <AddInstanceGroupsResponse> AddInstanceGroupsAsync(AddInstanceGroupsRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new AddInstanceGroupsRequestMarshaller(); var unmarshaller = AddInstanceGroupsResponseUnmarshaller.Instance; return(Invoke <IRequest, AddInstanceGroupsRequest, AddInstanceGroupsResponse>(request, marshaller, unmarshaller, signer, cancellationToken)); }
public void AddInstanceGroupsMarshallTest() { var request = InstantiateClassGenerator.Execute <AddInstanceGroupsRequest>(); var marshaller = new AddInstanceGroupsRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); Comparer.CompareObjectToJson <AddInstanceGroupsRequest>(request, jsonRequest); var webResponse = new WebResponseData { Headers = { { "x-amzn-RequestId", Guid.NewGuid().ToString() }, { "x-amz-crc32", "0" } } }; var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("AddInstanceGroups").ResponseStructure).Execute(); webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); var response = AddInstanceGroupsResponseUnmarshaller.Instance.Unmarshall(context) as AddInstanceGroupsResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// <para>AddInstanceGroups adds an instance group to a running /// cluster.</para> /// </summary> /// /// <param name="addInstanceGroupsRequest">Container for the necessary /// parameters to execute the AddInstanceGroups service method on /// AmazonElasticMapReduce.</param> /// /// <returns>The response from the AddInstanceGroups service method, as /// returned by AmazonElasticMapReduce.</returns> /// /// <exception cref="InternalServerErrorException"/> public AddInstanceGroupsResponse AddInstanceGroups(AddInstanceGroupsRequest addInstanceGroupsRequest) { IRequest <AddInstanceGroupsRequest> request = new AddInstanceGroupsRequestMarshaller().Marshall(addInstanceGroupsRequest); AddInstanceGroupsResponse response = Invoke <AddInstanceGroupsRequest, AddInstanceGroupsResponse> (request, this.signer, AddInstanceGroupsResponseUnmarshaller.GetInstance()); return(response); }
IAsyncResult invokeAddInstanceGroups(AddInstanceGroupsRequest addInstanceGroupsRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new AddInstanceGroupsRequestMarshaller().Marshall(addInstanceGroupsRequest); var unmarshaller = AddInstanceGroupsResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return(result); }
public void AddInstanceGroupsMarshallTest() { var request = InstantiateClassGenerator.Execute<AddInstanceGroupsRequest>(); var marshaller = new AddInstanceGroupsRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); Comparer.CompareObjectToJson<AddInstanceGroupsRequest>(request,jsonRequest); var webResponse = new WebResponseData { Headers = { {"x-amzn-RequestId", Guid.NewGuid().ToString()}, {"x-amz-crc32","0"} } }; var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("AddInstanceGroups").ResponseStructure).Execute(); webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); var response = AddInstanceGroupsResponseUnmarshaller.Instance.Unmarshall(context) as AddInstanceGroupsResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Initiates the asynchronous execution of the AddInstanceGroups operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AddInstanceGroups operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> public Task<AddInstanceGroupsResponse> AddInstanceGroupsAsync(AddInstanceGroupsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new AddInstanceGroupsRequestMarshaller(); var unmarshaller = AddInstanceGroupsResponseUnmarshaller.Instance; return InvokeAsync<AddInstanceGroupsRequest,AddInstanceGroupsResponse>(request, marshaller, unmarshaller, cancellationToken); }
/// <summary> /// AddInstanceGroups adds an instance group to a running cluster. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AddInstanceGroups service method.</param> /// /// <returns>The response from the AddInstanceGroups service method, as returned by ElasticMapReduce.</returns> /// <exception cref="Amazon.ElasticMapReduce.Model.InternalServerErrorException"> /// Indicates that an error occurred while processing the request and that the request /// was not completed. /// </exception> public AddInstanceGroupsResponse AddInstanceGroups(AddInstanceGroupsRequest request) { var marshaller = new AddInstanceGroupsRequestMarshaller(); var unmarshaller = AddInstanceGroupsResponseUnmarshaller.Instance; return Invoke<AddInstanceGroupsRequest,AddInstanceGroupsResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the AddInstanceGroups operation. /// <seealso cref="Amazon.ElasticMapReduce.IAmazonElasticMapReduce.AddInstanceGroups"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AddInstanceGroups operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> public Task<AddInstanceGroupsResponse> AddInstanceGroupsAsync(AddInstanceGroupsRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new AddInstanceGroupsRequestMarshaller(); var unmarshaller = AddInstanceGroupsResponseUnmarshaller.GetInstance(); return Invoke<IRequest, AddInstanceGroupsRequest, AddInstanceGroupsResponse>(request, marshaller, unmarshaller, signer, cancellationToken); }
/// <summary> /// Initiates the asynchronous execution of the AddInstanceGroups operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AddInstanceGroups operation on AmazonElasticMapReduceClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndAddInstanceGroups /// operation.</returns> public IAsyncResult BeginAddInstanceGroups(AddInstanceGroupsRequest request, AsyncCallback callback, object state) { var marshaller = new AddInstanceGroupsRequestMarshaller(); var unmarshaller = AddInstanceGroupsResponseUnmarshaller.Instance; return BeginInvoke<AddInstanceGroupsRequest>(request, marshaller, unmarshaller, callback, state); }
IAsyncResult invokeAddInstanceGroups(AddInstanceGroupsRequest addInstanceGroupsRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new AddInstanceGroupsRequestMarshaller().Marshall(addInstanceGroupsRequest); var unmarshaller = AddInstanceGroupsResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// <para>AddInstanceGroups adds an instance group to a running /// cluster.</para> /// </summary> /// /// <param name="addInstanceGroupsRequest">Container for the necessary /// parameters to execute the AddInstanceGroups service method on /// AmazonElasticMapReduce.</param> /// /// <returns>The response from the AddInstanceGroups service method, as /// returned by AmazonElasticMapReduce.</returns> /// /// <exception cref="InternalServerErrorException"/> public AddInstanceGroupsResponse AddInstanceGroups(AddInstanceGroupsRequest addInstanceGroupsRequest) { IRequest<AddInstanceGroupsRequest> request = new AddInstanceGroupsRequestMarshaller().Marshall(addInstanceGroupsRequest); AddInstanceGroupsResponse response = Invoke<AddInstanceGroupsRequest, AddInstanceGroupsResponse> (request, this.signer, AddInstanceGroupsResponseUnmarshaller.GetInstance()); return response; }
/// <summary> /// <para>AddInstanceGroups adds an instance group to a running cluster.</para> /// </summary> /// /// <param name="addInstanceGroupsRequest">Container for the necessary parameters to execute the AddInstanceGroups service method on /// AmazonElasticMapReduce.</param> /// /// <returns>The response from the AddInstanceGroups service method, as returned by AmazonElasticMapReduce.</returns> /// /// <exception cref="T:Amazon.ElasticMapReduce.Model.InternalServerErrorException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public async Task<AddInstanceGroupsResponse> AddInstanceGroupsAsync(AddInstanceGroupsRequest addInstanceGroupsRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new AddInstanceGroupsRequestMarshaller(); var unmarshaller = AddInstanceGroupsResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, AddInstanceGroupsRequest, AddInstanceGroupsResponse>(addInstanceGroupsRequest, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
IAsyncResult invokeAddInstanceGroups(AddInstanceGroupsRequest request, AsyncCallback callback, object state, bool synchronized) { var marshaller = new AddInstanceGroupsRequestMarshaller(); var unmarshaller = AddInstanceGroupsResponseUnmarshaller.Instance; return Invoke(request, callback, state, synchronized, marshaller, unmarshaller, signer); }