public Integer getDuration() {
        return this.duration;
    }
<p>
The duration, in seconds, for which the OpenSearch instance is reserved.
</p>

@return The duration, in seconds, for which the OpenSearch instance is reserved.
aws-java-sdk-opensearch/src/main/java/com/amazonaws/services/opensearch/model/ReservedInstance.java