/// <summary> /// Initiates the asynchronous execution of the UpdateJobPriority operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateJobPriority operation on AmazonS3ControlClient.</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 EndUpdateJobPriority /// operation.</returns> public virtual IAsyncResult BeginUpdateJobPriority(UpdateJobPriorityRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateJobPriorityRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateJobPriorityResponseUnmarshaller.Instance; return(BeginInvoke(request, options, callback, state)); }
/// <summary> /// Updates an existing job's priority. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateJobPriority service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateJobPriority service method, as returned by S3Control.</returns> /// <exception cref="Amazon.S3Control.Model.BadRequestException"> /// /// </exception> /// <exception cref="Amazon.S3Control.Model.InternalServiceException"> /// /// </exception> /// <exception cref="Amazon.S3Control.Model.NotFoundException"> /// /// </exception> /// <exception cref="Amazon.S3Control.Model.TooManyRequestsException"> /// /// </exception> public virtual Task <UpdateJobPriorityResponse> UpdateJobPriorityAsync(UpdateJobPriorityRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateJobPriorityRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateJobPriorityResponseUnmarshaller.Instance; return(InvokeAsync <UpdateJobPriorityResponse>(request, options, cancellationToken)); }
/// <summary> /// Updates an existing job's priority. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateJobPriority service method.</param> /// /// <returns>The response from the UpdateJobPriority service method, as returned by S3Control.</returns> /// <exception cref="Amazon.S3Control.Model.BadRequestException"> /// /// </exception> /// <exception cref="Amazon.S3Control.Model.InternalServiceException"> /// /// </exception> /// <exception cref="Amazon.S3Control.Model.NotFoundException"> /// /// </exception> /// <exception cref="Amazon.S3Control.Model.TooManyRequestsException"> /// /// </exception> public virtual UpdateJobPriorityResponse UpdateJobPriority(UpdateJobPriorityRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateJobPriorityRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateJobPriorityResponseUnmarshaller.Instance; return(Invoke <UpdateJobPriorityResponse>(request, options)); }
/// <inheritdoc /> public IJob UpdateJobPriority(UpdateJobPriorityRequest request) { return(ExceptionDecorator.Run(() => new UpdateJobPriorityResponseParser().Parse(_network.Invoke(request)))); }