public SnaplockRetentionPeriod withDefaultRetention(RetentionPeriod defaultRetention) {
        setDefaultRetention(defaultRetention);
        return this;
    }
<p>
The retention period assigned to a write once, read many (WORM) file by default if an explicit retention period
is not set for an FSx for ONTAP SnapLock volume. The default retention period must be greater than or equal to
the minimum retention period and less than or equal to the maximum retention period.
</p>

@param defaultRetention
       The retention period assigned to a write once, read many (WORM) file by default if an explicit retention
       period is not set for an FSx for ONTAP SnapLock volume. The default retention period must be greater than
       or equal to the minimum retention period and less than or equal to the maximum retention period.
@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