public ArchiveRetention withRetentionPeriod(RetentionPeriod retentionPeriod) {
        this.retentionPeriod = retentionPeriod.toString();
        return this;
    }
<p>
The enum value sets the period for retaining emails in an archive.
</p>

@param retentionPeriod
       The enum value sets the period for retaining emails in an archive.
@return Returns a reference to this object so that method calls can be chained together.
@see RetentionPeriod
aws-java-sdk-mailmanager/src/main/java/com/amazonaws/services/mailmanager/model/ArchiveRetention.java