internal DescribeJobFlowsResponse DescribeJobFlows(DescribeJobFlowsRequest request) { var marshaller = new DescribeJobFlowsRequestMarshaller(); var unmarshaller = DescribeJobFlowsResponseUnmarshaller.Instance; return(Invoke <DescribeJobFlowsRequest, DescribeJobFlowsResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the DescribeJobFlows operation. /// <seealso cref="Amazon.ElasticMapReduce.IAmazonElasticMapReduce"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeJobFlows 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 <DescribeJobFlowsResponse> DescribeJobFlowsAsync(DescribeJobFlowsRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeJobFlowsRequestMarshaller(); var unmarshaller = DescribeJobFlowsResponseUnmarshaller.Instance; return(Invoke <IRequest, DescribeJobFlowsRequest, DescribeJobFlowsResponse>(request, marshaller, unmarshaller, signer, cancellationToken)); }
public void DescribeJobFlowsMarshallTest() { var request = InstantiateClassGenerator.Execute <DescribeJobFlowsRequest>(); var marshaller = new DescribeJobFlowsRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); Comparer.CompareObjectToJson <DescribeJobFlowsRequest>(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("DescribeJobFlows").ResponseStructure).Execute(); webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); var response = DescribeJobFlowsResponseUnmarshaller.Instance.Unmarshall(context) as DescribeJobFlowsResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// <para> DescribeJobFlows returns a list of job flows that match all of /// the supplied parameters. The parameters can include a list of job flow /// IDs, job flow states, and restrictions on job flow creation date and /// time.</para> <para> Regardless of supplied parameters, only job flows /// created within the last two months are returned.</para> <para> If no /// parameters are supplied, then job flows matching either of the /// following criteria are returned:</para> /// <ul> /// <li>Job flows created and completed in the last two weeks</li> /// <li> Job flows created within the last two months that are in one of /// the following states: <c>RUNNING</c> , /// /// <c>WAITING</c> , /// /// <c>SHUTTING_DOWN</c> , /// /// <c>STARTING</c> </li> /// /// </ul> /// <para> Amazon Elastic MapReduce can return a maximum of 512 job flow /// descriptions. </para> /// </summary> /// /// <param name="describeJobFlowsRequest">Container for the necessary /// parameters to execute the DescribeJobFlows service method on /// AmazonElasticMapReduce.</param> /// /// <returns>The response from the DescribeJobFlows service method, as /// returned by AmazonElasticMapReduce.</returns> /// /// <exception cref="InternalServerErrorException"/> public DescribeJobFlowsResponse DescribeJobFlows(DescribeJobFlowsRequest describeJobFlowsRequest) { IRequest <DescribeJobFlowsRequest> request = new DescribeJobFlowsRequestMarshaller().Marshall(describeJobFlowsRequest); DescribeJobFlowsResponse response = Invoke <DescribeJobFlowsRequest, DescribeJobFlowsResponse> (request, this.signer, DescribeJobFlowsResponseUnmarshaller.GetInstance()); return(response); }
IAsyncResult invokeDescribeJobFlows(DescribeJobFlowsRequest describeJobFlowsRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new DescribeJobFlowsRequestMarshaller().Marshall(describeJobFlowsRequest); var unmarshaller = DescribeJobFlowsResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return(result); }
/// <summary> /// Initiates the asynchronous execution of the DescribeJobFlows operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeJobFlows 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<DescribeJobFlowsResponse> DescribeJobFlowsAsync(DescribeJobFlowsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeJobFlowsRequestMarshaller(); var unmarshaller = DescribeJobFlowsResponseUnmarshaller.Instance; return InvokeAsync<DescribeJobFlowsRequest,DescribeJobFlowsResponse>(request, marshaller, unmarshaller, cancellationToken); }
/// <summary> /// This API is deprecated and will eventually be removed. We recommend you use <a>ListClusters</a>, /// <a>DescribeCluster</a>, <a>ListSteps</a>, <a>ListInstanceGroups</a> and <a>ListBootstrapActions</a> /// instead. /// /// /// <para> /// DescribeJobFlows returns a list of job flows that match all of the supplied parameters. /// The parameters can include a list of job flow IDs, job flow states, and restrictions /// on job flow creation date and time. /// </para> /// /// <para> /// Regardless of supplied parameters, only job flows created within the last two months /// are returned. /// </para> /// /// <para> /// If no parameters are supplied, then job flows matching either of the following criteria /// are returned: /// </para> /// <ul> <li>Job flows created and completed in the last two weeks</li> <li> Job flows /// created within the last two months that are in one of the following states: <code>RUNNING</code>, /// <code>WAITING</code>, <code>SHUTTING_DOWN</code>, <code>STARTING</code> </li> </ul> /// /// <para> /// Amazon Elastic MapReduce can return a maximum of 512 job flow descriptions. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeJobFlows service method.</param> /// /// <returns>The response from the DescribeJobFlows 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 DescribeJobFlowsResponse DescribeJobFlows(DescribeJobFlowsRequest request) { var marshaller = new DescribeJobFlowsRequestMarshaller(); var unmarshaller = DescribeJobFlowsResponseUnmarshaller.Instance; return Invoke<DescribeJobFlowsRequest,DescribeJobFlowsResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the DescribeJobFlows operation. /// <seealso cref="Amazon.ElasticMapReduce.IAmazonElasticMapReduce.DescribeJobFlows"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeJobFlows 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<DescribeJobFlowsResponse> DescribeJobFlowsAsync(DescribeJobFlowsRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeJobFlowsRequestMarshaller(); var unmarshaller = DescribeJobFlowsResponseUnmarshaller.GetInstance(); return Invoke<IRequest, DescribeJobFlowsRequest, DescribeJobFlowsResponse>(request, marshaller, unmarshaller, signer, cancellationToken); }
public IAsyncResult BeginDescribeJobFlows(DescribeJobFlowsRequest request, AsyncCallback callback, object state) { var marshaller = new DescribeJobFlowsRequestMarshaller(); var unmarshaller = DescribeJobFlowsResponseUnmarshaller.Instance; return BeginInvoke<DescribeJobFlowsRequest>(request, marshaller, unmarshaller, callback, state); }
IAsyncResult invokeDescribeJobFlows(DescribeJobFlowsRequest describeJobFlowsRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new DescribeJobFlowsRequestMarshaller().Marshall(describeJobFlowsRequest); var unmarshaller = DescribeJobFlowsResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// <para> DescribeJobFlows returns a list of job flows that match all of /// the supplied parameters. The parameters can include a list of job flow /// IDs, job flow states, and restrictions on job flow creation date and /// time.</para> <para> Regardless of supplied parameters, only job flows /// created within the last two months are returned.</para> <para> If no /// parameters are supplied, then job flows matching either of the /// following criteria are returned:</para> /// <ul> /// <li>Job flows created and completed in the last two weeks</li> /// <li> Job flows created within the last two months that are in one of /// the following states: <c>RUNNING</c> , /// /// <c>WAITING</c> , /// /// <c>SHUTTING_DOWN</c> , /// /// <c>STARTING</c> </li> /// /// </ul> /// <para> Amazon Elastic MapReduce can return a maximum of 512 job flow /// descriptions. </para> /// </summary> /// /// <param name="describeJobFlowsRequest">Container for the necessary /// parameters to execute the DescribeJobFlows service method on /// AmazonElasticMapReduce.</param> /// /// <returns>The response from the DescribeJobFlows service method, as /// returned by AmazonElasticMapReduce.</returns> /// /// <exception cref="InternalServerErrorException"/> public DescribeJobFlowsResponse DescribeJobFlows(DescribeJobFlowsRequest describeJobFlowsRequest) { IRequest<DescribeJobFlowsRequest> request = new DescribeJobFlowsRequestMarshaller().Marshall(describeJobFlowsRequest); DescribeJobFlowsResponse response = Invoke<DescribeJobFlowsRequest, DescribeJobFlowsResponse> (request, this.signer, DescribeJobFlowsResponseUnmarshaller.GetInstance()); return response; }
/// <summary> /// <para> DescribeJobFlows returns a list of job flows that match all of the supplied parameters. The parameters can include a list of job flow /// IDs, job flow states, and restrictions on job flow creation date and time.</para> <para> Regardless of supplied parameters, only job flows /// created within the last two months are returned.</para> <para> If no parameters are supplied, then job flows matching either of the /// following criteria are returned:</para> /// <ul> /// <li>Job flows created and completed in the last two weeks</li> /// <li> Job flows created within the last two months that are in one of the following states: <c>RUNNING</c> , /// <c>WAITING</c> , /// <c>SHUTTING_DOWN</c> , /// /// <c>STARTING</c> </li> /// /// </ul> /// <para> Amazon Elastic MapReduce can return a maximum of 512 job flow descriptions. </para> /// </summary> /// /// <param name="describeJobFlowsRequest">Container for the necessary parameters to execute the DescribeJobFlows service method on /// AmazonElasticMapReduce.</param> /// /// <returns>The response from the DescribeJobFlows 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<DescribeJobFlowsResponse> DescribeJobFlowsAsync(DescribeJobFlowsRequest describeJobFlowsRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeJobFlowsRequestMarshaller(); var unmarshaller = DescribeJobFlowsResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, DescribeJobFlowsRequest, DescribeJobFlowsResponse>(describeJobFlowsRequest, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
public void DescribeJobFlowsMarshallTest() { var request = InstantiateClassGenerator.Execute<DescribeJobFlowsRequest>(); var marshaller = new DescribeJobFlowsRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); Comparer.CompareObjectToJson<DescribeJobFlowsRequest>(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("DescribeJobFlows").ResponseStructure).Execute(); webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); var response = DescribeJobFlowsResponseUnmarshaller.Instance.Unmarshall(context) as DescribeJobFlowsResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
IAsyncResult invokeDescribeJobFlows(DescribeJobFlowsRequest request, AsyncCallback callback, object state, bool synchronized) { var marshaller = new DescribeJobFlowsRequestMarshaller(); var unmarshaller = DescribeJobFlowsResponseUnmarshaller.Instance; return Invoke(request, callback, state, synchronized, marshaller, unmarshaller, signer); }