code: public void marshall(GetInventoryRequest getInventoryRequest, ProtocolMarshaller protocolMarshaller) {
  
          if (getInventoryRequest == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(getInventoryRequest.getFilters(), FILTERS_BINDING);
              protocolMarshaller.marshall(getInventoryRequest.getAggregators(), AGGREGATORS_BINDING);
              protocolMarshaller.marshall(getInventoryRequest.getResultAttributes(), RESULTATTRIBUTES_BINDING);
              protocolMarshaller.marshall(getInventoryRequest.getNextToken(), NEXTTOKEN_BINDING);
              protocolMarshaller.marshall(getInventoryRequest.getMaxResults(), MAXRESULTS_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.