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