code: public void marshall(ListDiscoveredResourcesRequest listDiscoveredResourcesRequest, ProtocolMarshaller protocolMarshaller) {
  
          if (listDiscoveredResourcesRequest == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(listDiscoveredResourcesRequest.getProgressUpdateStream(), PROGRESSUPDATESTREAM_BINDING);
              protocolMarshaller.marshall(listDiscoveredResourcesRequest.getMigrationTaskName(), MIGRATIONTASKNAME_BINDING);
              protocolMarshaller.marshall(listDiscoveredResourcesRequest.getNextToken(), NEXTTOKEN_BINDING);
              protocolMarshaller.marshall(listDiscoveredResourcesRequest.getMaxResults(), MAXRESULTS_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.