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