public void setDuration(Duration duration) {
        this.duration = duration;
    }
<p>
Specifies maintenance schedule duration: duration value and duration unit. See the <a
href="https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/auto-tune.html"
target="_blank">Developer Guide</a> for more information.
</p>

@param duration
       Specifies maintenance schedule duration: duration value and duration unit. See the <a
       href="https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/auto-tune.html"
       target="_blank">Developer Guide</a> for more information.
aws-java-sdk-elasticsearch/src/main/java/com/amazonaws/services/elasticsearch/model/AutoTuneMaintenanceSchedule.java