public RenewDomainRequest withDurationInYears(Integer durationInYears) {
        setDurationInYears(durationInYears);
        return this;
    }
<p>
The number of years that you want to renew the domain for. The maximum number of years depends on the top-level
domain. For the range of valid values for your domain, see <a
href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html">Domains that You Can
Register with Amazon Route 53</a> in the <i>Amazon Route 53 Developer Guide</i>.
</p>
<p>
Default: 1
</p>

@param durationInYears
       The number of years that you want to renew the domain for. The maximum number of years depends on the
       top-level domain. For the range of valid values for your domain, see <a
       href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html">Domains that You
       Can Register with Amazon Route 53</a> in the <i>Amazon Route 53 Developer Guide</i>.</p>
       <p>
       Default: 1
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-route53/src/main/java/com/amazonaws/services/route53domains/model/RenewDomainRequest.java