public UpdateLifecyclePolicyRequest withRetainInterval(Integer retainInterval) {
        setRetainInterval(retainInterval);
        return this;
    }
<p>
<b>[Default policies only]</b> Specifies how long the policy should retain snapshots or AMIs before deleting
them. The retention period can range from 2 to 14 days, but it must be greater than the creation frequency to
ensure that the policy retains at least 1 snapshot or AMI at any given time.
</p>

@param retainInterval
       <b>[Default policies only]</b> Specifies how long the policy should retain snapshots or AMIs before
       deleting them. The retention period can range from 2 to 14 days, but it must be greater than the creation
       frequency to ensure that the policy retains at least 1 snapshot or AMI at any given time.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-dlm/src/main/java/com/amazonaws/services/dlm/model/UpdateLifecyclePolicyRequest.java