public UpdateEncryption withAlgorithm(Algorithm algorithm) {
        this.algorithm = algorithm.toString();
        return this;
    }
The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).

@param algorithm
       The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).
@return Returns a reference to this object so that method calls can be chained together.
@see Algorithm
aws-java-sdk-mediaconnect/src/main/java/com/amazonaws/services/mediaconnect/model/UpdateEncryption.java