internal virtual AssociateDeviceWithPlacementResponse AssociateDeviceWithPlacement(AssociateDeviceWithPlacementRequest request) { var marshaller = AssociateDeviceWithPlacementRequestMarshaller.Instance; var unmarshaller = AssociateDeviceWithPlacementResponseUnmarshaller.Instance; return(Invoke <AssociateDeviceWithPlacementRequest, AssociateDeviceWithPlacementResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the AssociateDeviceWithPlacement operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AssociateDeviceWithPlacement 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/iot1click-projects-2018-05-14/AssociateDeviceWithPlacement">REST API Reference for AssociateDeviceWithPlacement Operation</seealso> public virtual Task <AssociateDeviceWithPlacementResponse> AssociateDeviceWithPlacementAsync(AssociateDeviceWithPlacementRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = AssociateDeviceWithPlacementRequestMarshaller.Instance; var unmarshaller = AssociateDeviceWithPlacementResponseUnmarshaller.Instance; return(InvokeAsync <AssociateDeviceWithPlacementRequest, AssociateDeviceWithPlacementResponse>(request, marshaller, unmarshaller, cancellationToken)); }
internal virtual AssociateDeviceWithPlacementResponse AssociateDeviceWithPlacement(AssociateDeviceWithPlacementRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateDeviceWithPlacementRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateDeviceWithPlacementResponseUnmarshaller.Instance; return(Invoke <AssociateDeviceWithPlacementResponse>(request, options)); }