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