public void setDuration(Duration duration) {
        this.duration = duration;
    }
<p>
The duration of the maintenance schedule. For example, <code>"Duration": {"Value": 2, "Unit": "HOURS"}</code>.
</p>

@param duration
       The duration of the maintenance schedule. For example,
       <code>"Duration": {"Value": 2, "Unit": "HOURS"}</code>.
aws-java-sdk-opensearch/src/main/java/com/amazonaws/services/opensearch/model/AutoTuneMaintenanceSchedule.java