internal virtual TagDeliveryStreamResponse TagDeliveryStream(TagDeliveryStreamRequest request) { var marshaller = TagDeliveryStreamRequestMarshaller.Instance; var unmarshaller = TagDeliveryStreamResponseUnmarshaller.Instance; return(Invoke <TagDeliveryStreamRequest, TagDeliveryStreamResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the TagDeliveryStream operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the TagDeliveryStream 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/firehose-2015-08-04/TagDeliveryStream">REST API Reference for TagDeliveryStream Operation</seealso> public virtual Task <TagDeliveryStreamResponse> TagDeliveryStreamAsync(TagDeliveryStreamRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = TagDeliveryStreamRequestMarshaller.Instance; var unmarshaller = TagDeliveryStreamResponseUnmarshaller.Instance; return(InvokeAsync <TagDeliveryStreamRequest, TagDeliveryStreamResponse>(request, marshaller, unmarshaller, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the TagDeliveryStream operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the TagDeliveryStream 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/firehose-2015-08-04/TagDeliveryStream">REST API Reference for TagDeliveryStream Operation</seealso> public virtual Task <TagDeliveryStreamResponse> TagDeliveryStreamAsync(TagDeliveryStreamRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = TagDeliveryStreamRequestMarshaller.Instance; options.ResponseUnmarshaller = TagDeliveryStreamResponseUnmarshaller.Instance; return(InvokeAsync <TagDeliveryStreamResponse>(request, options, cancellationToken)); }
internal virtual TagDeliveryStreamResponse TagDeliveryStream(TagDeliveryStreamRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TagDeliveryStreamRequestMarshaller.Instance; options.ResponseUnmarshaller = TagDeliveryStreamResponseUnmarshaller.Instance; return(Invoke <TagDeliveryStreamResponse>(request, options)); }
/// <summary> /// Initiates the asynchronous execution of the TagDeliveryStream operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the TagDeliveryStream operation on AmazonKinesisFirehoseClient.</param> /// <param name="callback">An Action delegate that is invoked when the operation completes.</param> /// <param name="options">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> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/TagDeliveryStream">REST API Reference for TagDeliveryStream Operation</seealso> public virtual void TagDeliveryStreamAsync(TagDeliveryStreamRequest request, AmazonServiceCallback <TagDeliveryStreamRequest, TagDeliveryStreamResponse> callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var marshaller = TagDeliveryStreamRequestMarshaller.Instance; var unmarshaller = TagDeliveryStreamResponseUnmarshaller.Instance; Action <AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null; if (callback != null) { callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult <TagDeliveryStreamRequest, TagDeliveryStreamResponse> responseObject = new AmazonServiceResult <TagDeliveryStreamRequest, TagDeliveryStreamResponse>((TagDeliveryStreamRequest)req, (TagDeliveryStreamResponse)res, ex, ao.State); callback(responseObject); } } ; BeginInvoke <TagDeliveryStreamRequest>(request, marshaller, unmarshaller, options, callbackHelper); }