public void IncreaseReplicationFactorMarshallTest() { var request = InstantiateClassGenerator.Execute <IncreaseReplicationFactorRequest>(); var marshaller = new IncreaseReplicationFactorRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); Comparer.CompareObjectToJson <IncreaseReplicationFactorRequest>(request, jsonRequest); var webResponse = new WebResponseData { Headers = { { "x-amzn-RequestId", Guid.NewGuid().ToString() }, { "x-amz-crc32", "0" } } }; var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("IncreaseReplicationFactor").ResponseStructure).Execute(); webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); var response = IncreaseReplicationFactorResponseUnmarshaller.Instance.Unmarshall(context) as IncreaseReplicationFactorResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
internal IncreaseReplicationFactorResponse IncreaseReplicationFactor(IncreaseReplicationFactorRequest request) { var marshaller = new IncreaseReplicationFactorRequestMarshaller(); var unmarshaller = IncreaseReplicationFactorResponseUnmarshaller.Instance; return(Invoke <IncreaseReplicationFactorRequest, IncreaseReplicationFactorResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the IncreaseReplicationFactor operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the IncreaseReplicationFactor 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/dax-2017-04-19/IncreaseReplicationFactor">REST API Reference for IncreaseReplicationFactor Operation</seealso> public Task <IncreaseReplicationFactorResponse> IncreaseReplicationFactorAsync(IncreaseReplicationFactorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new IncreaseReplicationFactorRequestMarshaller(); var unmarshaller = IncreaseReplicationFactorResponseUnmarshaller.Instance; return(InvokeAsync <IncreaseReplicationFactorRequest, IncreaseReplicationFactorResponse>(request, marshaller, unmarshaller, cancellationToken)); }