public RetentionPeriod withValue(Integer value) {
        setValue(value);
        return this;
    }
<p>
Defines the amount of time for the retention period of an FSx for ONTAP SnapLock volume. You can't set a value
for <code>INFINITE</code> or <code>UNSPECIFIED</code>. For all other options, the following ranges are valid:
</p>
<ul>
<li>
<p>
<code>Seconds</code>: 0 - 65,535
</p>
</li>
<li>
<p>
<code>Minutes</code>: 0 - 65,535
</p>
</li>
<li>
<p>
<code>Hours</code>: 0 - 24
</p>
</li>
<li>
<p>
<code>Days</code>: 0 - 365
</p>
</li>
<li>
<p>
<code>Months</code>: 0 - 12
</p>
</li>
<li>
<p>
<code>Years</code>: 0 - 100
</p>
</li>
</ul>

@param value
       Defines the amount of time for the retention period of an FSx for ONTAP SnapLock volume. You can't set a
       value for <code>INFINITE</code> or <code>UNSPECIFIED</code>. For all other options, the following ranges
       are valid: </p>
       <ul>
       <li>
       <p>
       <code>Seconds</code>: 0 - 65,535
       </p>
       </li>
       <li>
       <p>
       <code>Minutes</code>: 0 - 65,535
       </p>
       </li>
       <li>
       <p>
       <code>Hours</code>: 0 - 24
       </p>
       </li>
       <li>
       <p>
       <code>Days</code>: 0 - 365
       </p>
       </li>
       <li>
       <p>
       <code>Months</code>: 0 - 12
       </p>
       </li>
       <li>
       <p>
       <code>Years</code>: 0 - 100
       </p>
       </li>
@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/RetentionPeriod.java