public S3Location withEncryption(Encryption encryption) {
        setEncryption(encryption);
        return this;
    }
Sets the server-side encryption

@param encryption The new encryption value.
@return This object for method chaining.
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/S3Location.java