code: public void marshall(CreatePartitionRequest createPartitionRequest, ProtocolMarshaller protocolMarshaller) {
  
          if (createPartitionRequest == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(createPartitionRequest.getCatalogId(), CATALOGID_BINDING);
              protocolMarshaller.marshall(createPartitionRequest.getDatabaseName(), DATABASENAME_BINDING);
              protocolMarshaller.marshall(createPartitionRequest.getTableName(), TABLENAME_BINDING);
              protocolMarshaller.marshall(createPartitionRequest.getPartitionInput(), PARTITIONINPUT_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.