public void setDuration(Integer duration) {
        this.duration = duration;
    }
<p>
The number of hours that an association can run on specified targets. After the resulting cutoff time passes,
associations that are currently running are cancelled, and no pending executions are started on remaining
targets.
</p>

@param duration
       The number of hours that an association can run on specified targets. After the resulting cutoff time
       passes, associations that are currently running are cancelled, and no pending executions are started on
       remaining targets.
aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/Association.java