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