public FixedUpfrontPricingTerm withDuration(String duration) {
        setDuration(duration);
        return this;
    }
<p>
Contract duration for the terms.
</p>

@param duration
       Contract duration for the terms.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-marketplaceagreement/src/main/java/com/amazonaws/services/marketplaceagreement/model/FixedUpfrontPricingTerm.java