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