/// <summary> /// <para> When you create a job, Elastic Transcoder returns JSON data that includes the values that you specified plus information about the /// job that is created. </para> <para>If you have specified more than one output for your jobs (for example, one output for the Kindle Fire and /// another output for the Apple iPhone 4s), you currently must use the Elastic Transcoder API to list the jobs (as opposed to the AWS /// Console).</para> /// </summary> /// /// <param name="createJobRequest">Container for the necessary parameters to execute the CreateJob service method on /// AmazonElasticTranscoder.</param> /// /// <returns>The response from the CreateJob service method, as returned by AmazonElasticTranscoder.</returns> /// /// <exception cref="T:Amazon.ElasticTranscoder.Model.ResourceNotFoundException" /> /// <exception cref="T:Amazon.ElasticTranscoder.Model.AccessDeniedException" /> /// <exception cref="T:Amazon.ElasticTranscoder.Model.InternalServiceException" /> /// <exception cref="T:Amazon.ElasticTranscoder.Model.LimitExceededException" /> /// <exception cref="T:Amazon.ElasticTranscoder.Model.ValidationException" /> /// <exception cref="T:Amazon.ElasticTranscoder.Model.IncompatibleVersionException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public Task <CreateJobResponse> CreateJobAsync(CreateJobRequest createJobRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new CreateJobRequestMarshaller(); var unmarshaller = CreateJobResponseUnmarshaller.GetInstance(); return(Invoke <IRequest, CreateJobRequest, CreateJobResponse>(createJobRequest, marshaller, unmarshaller, signer, cancellationToken)); }
IAsyncResult invokeCreateJob(CreateJobRequest createJobRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new CreateJobRequestMarshaller().Marshall(createJobRequest); var unmarshaller = CreateJobResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return(result); }
public override CreateJobResponse GetResponse(UnmarshallerContext unmarshallerContext) { return(CreateJobResponseUnmarshaller.Unmarshall(unmarshallerContext)); }
/// <summary> /// <para> This operation initiates the process of scheduling an upload or /// download of your data. You include in the request a manifest that /// describes the data transfer specifics. The response to the request /// includes a job ID, which you can use in other operations, a signature /// that you use to identify your storage device, and the address where /// you should ship your storage device. </para> /// </summary> /// /// <param name="createJobRequest">Container for the necessary parameters /// to execute the CreateJob service method on AmazonImportExport.</param> /// /// <returns>The response from the CreateJob service method, as returned /// by AmazonImportExport.</returns> /// /// <exception cref="MalformedManifestException"/> /// <exception cref="InvalidAddressException"/> /// <exception cref="BucketPermissionException"/> /// <exception cref="InvalidParameterException"/> /// <exception cref="MultipleRegionsException"/> /// <exception cref="MissingParameterException"/> /// <exception cref="InvalidFileSystemException"/> /// <exception cref="MissingCustomsException"/> /// <exception cref="NoSuchBucketException"/> /// <exception cref="InvalidAccessKeyIdException"/> /// <exception cref="InvalidManifestFieldException"/> /// <exception cref="InvalidCustomsException"/> /// <exception cref="MissingManifestFieldException"/> /// <exception cref="CreateJobQuotaExceededException"/> public CreateJobResponse CreateJob(CreateJobRequest createJobRequest) { IRequest <CreateJobRequest> request = new CreateJobRequestMarshaller().Marshall(createJobRequest); CreateJobResponse response = Invoke <CreateJobRequest, CreateJobResponse> (request, this.signer, CreateJobResponseUnmarshaller.GetInstance()); return(response); }