public Reservation withDuration(Integer duration) {
        setDuration(duration);
        return this;
    }
The length of time that this reservation is active. MediaConnect defines this value in the offering.

@param duration
       The length of time that this reservation is active. MediaConnect defines this value in the offering.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-mediaconnect/src/main/java/com/amazonaws/services/mediaconnect/model/Reservation.java