public DescribeReservedCacheNodesRequest withDuration(String duration) {
        setDuration(duration);
        return this;
    }
<p>
The duration filter value, specified in years or seconds. Use this parameter to show only reservations for this
duration.
</p>
<p>
Valid Values: <code>1 | 3 | 31536000 | 94608000</code>
</p>

@param duration
       The duration filter value, specified in years or seconds. Use this parameter to show only reservations for
       this duration.</p>
       <p>
       Valid Values: <code>1 | 3 | 31536000 | 94608000</code>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-elasticache/src/main/java/com/amazonaws/services/elasticache/model/DescribeReservedCacheNodesRequest.java