code: public void marshall(GetEndpointRequest getEndpointRequest, ProtocolMarshaller protocolMarshaller) {
  
          if (getEndpointRequest == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(getEndpointRequest.getApplicationId(), APPLICATIONID_BINDING);
              protocolMarshaller.marshall(getEndpointRequest.getEndpointId(), ENDPOINTID_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.