internal DecreaseStreamRetentionPeriodResponse DecreaseStreamRetentionPeriod(DecreaseStreamRetentionPeriodRequest request) { var marshaller = new DecreaseStreamRetentionPeriodRequestMarshaller(); var unmarshaller = DecreaseStreamRetentionPeriodResponseUnmarshaller.Instance; return(Invoke <DecreaseStreamRetentionPeriodRequest, DecreaseStreamRetentionPeriodResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the DecreaseStreamRetentionPeriod operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DecreaseStreamRetentionPeriod 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> public Task <DecreaseStreamRetentionPeriodResponse> DecreaseStreamRetentionPeriodAsync(DecreaseStreamRetentionPeriodRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DecreaseStreamRetentionPeriodRequestMarshaller(); var unmarshaller = DecreaseStreamRetentionPeriodResponseUnmarshaller.Instance; return(InvokeAsync <DecreaseStreamRetentionPeriodRequest, DecreaseStreamRetentionPeriodResponse>(request, marshaller, unmarshaller, cancellationToken)); }
public void DecreaseStreamRetentionPeriodMarshallTest() { var request = InstantiateClassGenerator.Execute<DecreaseStreamRetentionPeriodRequest>(); var marshaller = new DecreaseStreamRetentionPeriodRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); Comparer.CompareObjectToJson<DecreaseStreamRetentionPeriodRequest>(request,jsonRequest); }
public void DecreaseStreamRetentionPeriodMarshallTest() { var request = InstantiateClassGenerator.Execute <DecreaseStreamRetentionPeriodRequest>(); var marshaller = new DecreaseStreamRetentionPeriodRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); Comparer.CompareObjectToJson <DecreaseStreamRetentionPeriodRequest>(request, jsonRequest); }
/// <summary> /// Initiates the asynchronous execution of the DecreaseStreamRetentionPeriod operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DecreaseStreamRetentionPeriod operation on AmazonKinesisClient.</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> public void DecreaseStreamRetentionPeriodAsync(DecreaseStreamRetentionPeriodRequest request, AmazonServiceCallback <DecreaseStreamRetentionPeriodRequest, DecreaseStreamRetentionPeriodResponse> callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var marshaller = new DecreaseStreamRetentionPeriodRequestMarshaller(); var unmarshaller = DecreaseStreamRetentionPeriodResponseUnmarshaller.Instance; Action <AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null; if (callback != null) { callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult <DecreaseStreamRetentionPeriodRequest, DecreaseStreamRetentionPeriodResponse> responseObject = new AmazonServiceResult <DecreaseStreamRetentionPeriodRequest, DecreaseStreamRetentionPeriodResponse>((DecreaseStreamRetentionPeriodRequest)req, (DecreaseStreamRetentionPeriodResponse)res, ex, ao.State); callback(responseObject); } } ; BeginInvoke <DecreaseStreamRetentionPeriodRequest>(request, marshaller, unmarshaller, options, callbackHelper); }
/// <summary> /// Initiates the asynchronous execution of the DecreaseStreamRetentionPeriod operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DecreaseStreamRetentionPeriod 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> public Task<DecreaseStreamRetentionPeriodResponse> DecreaseStreamRetentionPeriodAsync(DecreaseStreamRetentionPeriodRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DecreaseStreamRetentionPeriodRequestMarshaller(); var unmarshaller = DecreaseStreamRetentionPeriodResponseUnmarshaller.Instance; return InvokeAsync<DecreaseStreamRetentionPeriodRequest,DecreaseStreamRetentionPeriodResponse>(request, marshaller, unmarshaller, cancellationToken); }
internal DecreaseStreamRetentionPeriodResponse DecreaseStreamRetentionPeriod(DecreaseStreamRetentionPeriodRequest request) { var marshaller = new DecreaseStreamRetentionPeriodRequestMarshaller(); var unmarshaller = DecreaseStreamRetentionPeriodResponseUnmarshaller.Instance; return Invoke<DecreaseStreamRetentionPeriodRequest,DecreaseStreamRetentionPeriodResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the DecreaseStreamRetentionPeriod operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DecreaseStreamRetentionPeriod operation on AmazonKinesisClient.</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> public void DecreaseStreamRetentionPeriodAsync(DecreaseStreamRetentionPeriodRequest request, AmazonServiceCallback<DecreaseStreamRetentionPeriodRequest, DecreaseStreamRetentionPeriodResponse> callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var marshaller = new DecreaseStreamRetentionPeriodRequestMarshaller(); var unmarshaller = DecreaseStreamRetentionPeriodResponseUnmarshaller.Instance; Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult<DecreaseStreamRetentionPeriodRequest,DecreaseStreamRetentionPeriodResponse> responseObject = new AmazonServiceResult<DecreaseStreamRetentionPeriodRequest,DecreaseStreamRetentionPeriodResponse>((DecreaseStreamRetentionPeriodRequest)req, (DecreaseStreamRetentionPeriodResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke<DecreaseStreamRetentionPeriodRequest>(request, marshaller, unmarshaller, options, callbackHelper); }
/// <summary> /// Initiates the asynchronous execution of the DecreaseStreamRetentionPeriod operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DecreaseStreamRetentionPeriod operation on AmazonKinesisClient.</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 EndDecreaseStreamRetentionPeriod /// operation.</returns> public IAsyncResult BeginDecreaseStreamRetentionPeriod(DecreaseStreamRetentionPeriodRequest request, AsyncCallback callback, object state) { var marshaller = new DecreaseStreamRetentionPeriodRequestMarshaller(); var unmarshaller = DecreaseStreamRetentionPeriodResponseUnmarshaller.Instance; return BeginInvoke<DecreaseStreamRetentionPeriodRequest>(request, marshaller, unmarshaller, callback, state); }