public void addOptionalField(InventoryOptionalField optionalField) {
        addOptionalField(optionalField == null ? (String) null : optionalField.toString());
    }
Add a field to the list of optional fields that are included in the inventory results.
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/inventory/InventoryConfiguration.java