public void setOptionalFields(List<String> optionalFields) {
        this.optionalFields = optionalFields;
    }
Sets the optional fields that are included in the inventory results.
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/inventory/InventoryConfiguration.java