public Segment withEncryption(Encryption encryption) {
        setEncryption(encryption);
        return this;
    }
@param encryption
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-mediapackagev2/src/main/java/com/amazonaws/services/mediapackagev2/model/Segment.java