internal virtual ClaimDevicesByClaimCodeResponse ClaimDevicesByClaimCode(ClaimDevicesByClaimCodeRequest request) { var marshaller = ClaimDevicesByClaimCodeRequestMarshaller.Instance; var unmarshaller = ClaimDevicesByClaimCodeResponseUnmarshaller.Instance; return(Invoke <ClaimDevicesByClaimCodeRequest, ClaimDevicesByClaimCodeResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the ClaimDevicesByClaimCode operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ClaimDevicesByClaimCode operation on AmazonIoT1ClickDevicesServiceClient.</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 EndClaimDevicesByClaimCode /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/ClaimDevicesByClaimCode">REST API Reference for ClaimDevicesByClaimCode Operation</seealso> public virtual IAsyncResult BeginClaimDevicesByClaimCode(ClaimDevicesByClaimCodeRequest request, AsyncCallback callback, object state) { var marshaller = ClaimDevicesByClaimCodeRequestMarshaller.Instance; var unmarshaller = ClaimDevicesByClaimCodeResponseUnmarshaller.Instance; return(BeginInvoke <ClaimDevicesByClaimCodeRequest>(request, marshaller, unmarshaller, callback, state)); }
internal virtual ClaimDevicesByClaimCodeResponse ClaimDevicesByClaimCode(ClaimDevicesByClaimCodeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ClaimDevicesByClaimCodeRequestMarshaller.Instance; options.ResponseUnmarshaller = ClaimDevicesByClaimCodeResponseUnmarshaller.Instance; return(Invoke <ClaimDevicesByClaimCodeResponse>(request, options)); }
/// <summary> /// Initiates the asynchronous execution of the ClaimDevicesByClaimCode operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ClaimDevicesByClaimCode operation on AmazonIoT1ClickDevicesServiceClient.</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 EndClaimDevicesByClaimCode /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/ClaimDevicesByClaimCode">REST API Reference for ClaimDevicesByClaimCode Operation</seealso> public virtual IAsyncResult BeginClaimDevicesByClaimCode(ClaimDevicesByClaimCodeRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ClaimDevicesByClaimCodeRequestMarshaller.Instance; options.ResponseUnmarshaller = ClaimDevicesByClaimCodeResponseUnmarshaller.Instance; return(BeginInvoke(request, options, callback, state)); }
/// <summary> /// Initiates the asynchronous execution of the ClaimDevicesByClaimCode operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ClaimDevicesByClaimCode 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> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/ClaimDevicesByClaimCode">REST API Reference for ClaimDevicesByClaimCode Operation</seealso> public virtual Task <ClaimDevicesByClaimCodeResponse> ClaimDevicesByClaimCodeAsync(ClaimDevicesByClaimCodeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ClaimDevicesByClaimCodeRequestMarshaller.Instance; options.ResponseUnmarshaller = ClaimDevicesByClaimCodeResponseUnmarshaller.Instance; return(InvokeAsync <ClaimDevicesByClaimCodeResponse>(request, options, cancellationToken)); }