internal virtual RestoreServerResponse RestoreServer(RestoreServerRequest request) { var marshaller = RestoreServerRequestMarshaller.Instance; var unmarshaller = RestoreServerResponseUnmarshaller.Instance; return(Invoke <RestoreServerRequest, RestoreServerResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the RestoreServer operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RestoreServer 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/opsworkscm-2016-11-01/RestoreServer">REST API Reference for RestoreServer Operation</seealso> public virtual Task <RestoreServerResponse> RestoreServerAsync(RestoreServerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = RestoreServerRequestMarshaller.Instance; var unmarshaller = RestoreServerResponseUnmarshaller.Instance; return(InvokeAsync <RestoreServerRequest, RestoreServerResponse>(request, marshaller, unmarshaller, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the RestoreServer operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RestoreServer 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/opsworkscm-2016-11-01/RestoreServer">REST API Reference for RestoreServer Operation</seealso> public virtual Task <RestoreServerResponse> RestoreServerAsync(RestoreServerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = RestoreServerRequestMarshaller.Instance; options.ResponseUnmarshaller = RestoreServerResponseUnmarshaller.Instance; return(InvokeAsync <RestoreServerResponse>(request, options, cancellationToken)); }
internal virtual RestoreServerResponse RestoreServer(RestoreServerRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RestoreServerRequestMarshaller.Instance; options.ResponseUnmarshaller = RestoreServerResponseUnmarshaller.Instance; return(Invoke <RestoreServerResponse>(request, options)); }