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