public String getType() {
        return this.type;
    }
<p>
Defines the type of time for the retention period of an FSx for ONTAP SnapLock volume. Set it to one of the valid
types. If you set it to <code>INFINITE</code>, the files are retained forever. If you set it to
<code>UNSPECIFIED</code>, the files are retained until you set an explicit retention period.
</p>

@return Defines the type of time for the retention period of an FSx for ONTAP SnapLock volume. Set it to one of
        the valid types. If you set it to <code>INFINITE</code>, the files are retained forever. If you set it to
        <code>UNSPECIFIED</code>, the files are retained until you set an explicit retention period.
@see RetentionPeriodType
aws-java-sdk-fsx/src/main/java/com/amazonaws/services/fsx/model/RetentionPeriod.java