public void setType(String type) {
        this.type = 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>

@param type
       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