code: public void marshall(InvokeEndpointRequest invokeEndpointRequest, ProtocolMarshaller protocolMarshaller) {
  
          if (invokeEndpointRequest == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(invokeEndpointRequest.getEndpointName(), ENDPOINTNAME_BINDING);
              protocolMarshaller.marshall(invokeEndpointRequest.getBody(), BODY_BINDING);
              protocolMarshaller.marshall(invokeEndpointRequest.getContentType(), CONTENTTYPE_BINDING);
              protocolMarshaller.marshall(invokeEndpointRequest.getAccept(), ACCEPT_BINDING);
              protocolMarshaller.marshall(invokeEndpointRequest.getCustomAttributes(), CUSTOMATTRIBUTES_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.