/// <summary> /// Initiates the asynchronous execution of the UpdateJob operation. /// <seealso cref="Amazon.ImportExport.IAmazonImportExport.UpdateJob"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateJob 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 <UpdateJobResponse> UpdateJobAsync(UpdateJobRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new UpdateJobRequestMarshaller(); var unmarshaller = UpdateJobResponseUnmarshaller.GetInstance(); return(Invoke <IRequest, UpdateJobRequest, UpdateJobResponse>(request, marshaller, unmarshaller, signer, cancellationToken)); }
IAsyncResult invokeUpdateJob(UpdateJobRequest updateJobRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new UpdateJobRequestMarshaller().Marshall(updateJobRequest); var unmarshaller = UpdateJobResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return(result); }
/// <summary> /// <para> You use this operation to change the parameters specified in /// the original manifest file by supplying a new manifest file. The /// manifest file attached to this request replaces the original manifest /// file. You can only use the operation after a CreateJob request but /// before the data transfer starts and you can only use it on jobs you /// own. </para> /// </summary> /// /// <param name="updateJobRequest">Container for the necessary parameters /// to execute the UpdateJob service method on AmazonImportExport.</param> /// /// <returns>The response from the UpdateJob service method, as returned /// by AmazonImportExport.</returns> /// /// <exception cref="MalformedManifestException"/> /// <exception cref="BucketPermissionException"/> /// <exception cref="InvalidAddressException"/> /// <exception cref="InvalidParameterException"/> /// <exception cref="UnableToUpdateJobIdException"/> /// <exception cref="MultipleRegionsException"/> /// <exception cref="MissingParameterException"/> /// <exception cref="InvalidFileSystemException"/> /// <exception cref="CanceledJobIdException"/> /// <exception cref="MissingCustomsException"/> /// <exception cref="NoSuchBucketException"/> /// <exception cref="ExpiredJobIdException"/> /// <exception cref="InvalidAccessKeyIdException"/> /// <exception cref="InvalidCustomsException"/> /// <exception cref="InvalidManifestFieldException"/> /// <exception cref="MissingManifestFieldException"/> /// <exception cref="InvalidJobIdException"/> public UpdateJobResponse UpdateJob(UpdateJobRequest updateJobRequest) { IRequest <UpdateJobRequest> request = new UpdateJobRequestMarshaller().Marshall(updateJobRequest); UpdateJobResponse response = Invoke <UpdateJobRequest, UpdateJobResponse> (request, this.signer, UpdateJobResponseUnmarshaller.GetInstance()); return(response); }