Amazon.Glacier.Model.Internal.MarshallTransformations.PurchaseProvisionedCapacityResponseUnmarshaller.Unmarshall C# (CSharp) Method

Unmarshall() public method

Unmarshaller the response from the service to the response class.
public Unmarshall ( JsonUnmarshallerContext context ) : AmazonWebServiceResponse
context Amazon.Runtime.Internal.Transform.JsonUnmarshallerContext
return Amazon.Runtime.AmazonWebServiceResponse
        public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
        {
            PurchaseProvisionedCapacityResponse response = new PurchaseProvisionedCapacityResponse();

            if (context.ResponseData.IsHeaderPresent("x-amz-capacity-id"))
                response.CapacityId = context.ResponseData.GetHeaderValue("x-amz-capacity-id");

            return response;
        }
PurchaseProvisionedCapacityResponseUnmarshaller