public GetArchiveResult withRetention(ArchiveRetention retention) {
        setRetention(retention);
        return this;
    }
<p>
The retention period for emails in this archive.
</p>

@param retention
       The retention period for emails in this archive.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-mailmanager/src/main/java/com/amazonaws/services/mailmanager/model/GetArchiveResult.java