public S3DestinationSettings withEncryption(S3EncryptionSettings encryption) {
        setEncryption(encryption);
        return this;
    }
Settings for how your job outputs are encrypted as they are uploaded to Amazon S3.

@param encryption
       Settings for how your job outputs are encrypted as they are uploaded to Amazon S3.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/model/S3DestinationSettings.java