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