internal virtual CancelQuantumTaskResponse CancelQuantumTask(CancelQuantumTaskRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CancelQuantumTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelQuantumTaskResponseUnmarshaller.Instance; return(Invoke <CancelQuantumTaskResponse>(request, options)); }
/// <summary> /// Cancels the specified task. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelQuantumTask 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 CancelQuantumTask service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.ConflictException"> /// An error occurred due to a conflict. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CancelQuantumTask">REST API Reference for CancelQuantumTask Operation</seealso> public virtual Task <CancelQuantumTaskResponse> CancelQuantumTaskAsync(CancelQuantumTaskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CancelQuantumTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelQuantumTaskResponseUnmarshaller.Instance; return(InvokeAsync <CancelQuantumTaskResponse>(request, options, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the CancelQuantumTask operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CancelQuantumTask operation on AmazonBraketClient.</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 EndCancelQuantumTask /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CancelQuantumTask">REST API Reference for CancelQuantumTask Operation</seealso> public virtual IAsyncResult BeginCancelQuantumTask(CancelQuantumTaskRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CancelQuantumTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelQuantumTaskResponseUnmarshaller.Instance; return(BeginInvoke(request, options, callback, state)); }