public Request<DescribeInstancesRequest> marshall(DescribeInstancesRequest describeInstancesRequest) { if (describeInstancesRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { final ProtocolRequestMarshaller<DescribeInstancesRequest> protocolMarshaller = protocolFactory.createProtocolMarshaller(SDK_OPERATION_BINDING, describeInstancesRequest); protocolMarshaller.startMarshalling(); DescribeInstancesRequestMarshaller.getInstance().marshall(describeInstancesRequest, protocolMarshaller); return protocolMarshaller.finishMarshalling(); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
public Request<DescribeInstancesRequest> marshall(DescribeInstancesRequest describeInstancesRequest) { if (describeInstancesRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { final ProtocolRequestMarshaller<DescribeInstancesRequest> protocolMarshaller = protocolFactory.createProtocolMarshaller(SDK_OPERATION_BINDING, describeInstancesRequest); protocolMarshaller.startMarshalling(); DescribeInstancesRequestMarshaller.getInstance().marshall(describeInstancesRequest, protocolMarshaller); return protocolMarshaller.finishMarshalling(); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }