public void setTermInYears(String termInYears) {
        this.termInYears = termInYears;
    }
<p>
The reservation term that you want recommendations for.
</p>

@param termInYears
       The reservation term that you want recommendations for.
@see TermInYears
aws-java-sdk-costexplorer/src/main/java/com/amazonaws/services/costexplorer/model/GetReservationPurchaseRecommendationRequest.java