public SnaplockRetentionPeriod withMaximumRetention(RetentionPeriod maximumRetention) {
        setMaximumRetention(maximumRetention);
        return this;
    }
<p>
The longest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.
</p>

@param maximumRetention
       The longest retention period that can be assigned to a WORM file on an FSx for ONTAP SnapLock volume.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-fsx/src/main/java/com/amazonaws/services/fsx/model/SnaplockRetentionPeriod.java