public InventoryS3BucketDestination withEncryption(InventoryEncryption encryption) {
        setEncryption(encryption);
        return this;
    }
Set the type of encryption to use to protect the inventory contents.

@param encryption Encryption to use. See {@link ServerSideEncryptionS3} and {@link ServerSideEncryptionKMS}.
@return This object for method chaining.
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/inventory/InventoryS3BucketDestination.java