public CreateAssociationRequest withCalendarNames(java.util.Collection<String> calendarNames) {
        setCalendarNames(calendarNames);
        return this;
    }
<p>
The names or Amazon Resource Names (ARNs) of the Change Calendar type documents you want to gate your
associations under. The associations only run when that change calendar is open. For more information, see <a
href="https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-change-calendar">Amazon Web
Services Systems Manager Change Calendar</a>.
</p>

@param calendarNames
       The names or Amazon Resource Names (ARNs) of the Change Calendar type documents you want to gate your
       associations under. The associations only run when that change calendar is open. For more information, see
       <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-change-calendar">
       Amazon Web Services Systems Manager Change Calendar</a>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/CreateAssociationRequest.java