public InventoryConfiguration withEnabled(Boolean enabled) {
        setEnabled(enabled);
        return this;
    }
Sets the value whether the inventory is enabled or disabled
and returns this object for method chaining.

The value true indicates the inventory is enabled and
false indicates the inventory is disabled.
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/inventory/InventoryConfiguration.java