internal virtual GetPresetResponse GetPreset(GetPresetRequest request) { var marshaller = new GetPresetRequestMarshaller(); var unmarshaller = GetPresetResponseUnmarshaller.Instance; return(Invoke <GetPresetRequest, GetPresetResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the GetPreset operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetPreset 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/mediaconvert-2017-08-29/GetPreset">REST API Reference for GetPreset Operation</seealso> public virtual Task <GetPresetResponse> GetPresetAsync(GetPresetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new GetPresetRequestMarshaller(); var unmarshaller = GetPresetResponseUnmarshaller.Instance; return(InvokeAsync <GetPresetRequest, GetPresetResponse>(request, marshaller, unmarshaller, cancellationToken)); }