code: public void marshall(GetPartitionsRequest getPartitionsRequest, ProtocolMarshaller protocolMarshaller) {
  
          if (getPartitionsRequest == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(getPartitionsRequest.getCatalogId(), CATALOGID_BINDING);
              protocolMarshaller.marshall(getPartitionsRequest.getDatabaseName(), DATABASENAME_BINDING);
              protocolMarshaller.marshall(getPartitionsRequest.getTableName(), TABLENAME_BINDING);
              protocolMarshaller.marshall(getPartitionsRequest.getExpression(), EXPRESSION_BINDING);
              protocolMarshaller.marshall(getPartitionsRequest.getNextToken(), NEXTTOKEN_BINDING);
              protocolMarshaller.marshall(getPartitionsRequest.getSegment(), SEGMENT_BINDING);
              protocolMarshaller.marshall(getPartitionsRequest.getMaxResults(), MAXRESULTS_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.