code: public void marshall(CreateEndpointGroupRequest createEndpointGroupRequest, ProtocolMarshaller protocolMarshaller) {
  
          if (createEndpointGroupRequest == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(createEndpointGroupRequest.getListenerArn(), LISTENERARN_BINDING);
              protocolMarshaller.marshall(createEndpointGroupRequest.getEndpointGroupRegion(), ENDPOINTGROUPREGION_BINDING);
              protocolMarshaller.marshall(createEndpointGroupRequest.getEndpointConfigurations(), ENDPOINTCONFIGURATIONS_BINDING);
              protocolMarshaller.marshall(createEndpointGroupRequest.getTrafficDialPercentage(), TRAFFICDIALPERCENTAGE_BINDING);
              protocolMarshaller.marshall(createEndpointGroupRequest.getHealthCheckPort(), HEALTHCHECKPORT_BINDING);
              protocolMarshaller.marshall(createEndpointGroupRequest.getHealthCheckProtocol(), HEALTHCHECKPROTOCOL_BINDING);
              protocolMarshaller.marshall(createEndpointGroupRequest.getHealthCheckPath(), HEALTHCHECKPATH_BINDING);
              protocolMarshaller.marshall(createEndpointGroupRequest.getHealthCheckIntervalSeconds(), HEALTHCHECKINTERVALSECONDS_BINDING);
              protocolMarshaller.marshall(createEndpointGroupRequest.getThresholdCount(), THRESHOLDCOUNT_BINDING);
              protocolMarshaller.marshall(createEndpointGroupRequest.getIdempotencyToken(), IDEMPOTENCYTOKEN_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.