code: public void marshall(DiscoverInstancesRequest discoverInstancesRequest, ProtocolMarshaller protocolMarshaller) {
  
          if (discoverInstancesRequest == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(discoverInstancesRequest.getNamespaceName(), NAMESPACENAME_BINDING);
              protocolMarshaller.marshall(discoverInstancesRequest.getServiceName(), SERVICENAME_BINDING);
              protocolMarshaller.marshall(discoverInstancesRequest.getMaxResults(), MAXRESULTS_BINDING);
              protocolMarshaller.marshall(discoverInstancesRequest.getQueryParameters(), QUERYPARAMETERS_BINDING);
              protocolMarshaller.marshall(discoverInstancesRequest.getHealthStatus(), HEALTHSTATUS_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.