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