public MonitorContactRequest withAllowedMonitorCapabilities(MonitorCapability... allowedMonitorCapabilities) {
        java.util.ArrayList<String> allowedMonitorCapabilitiesCopy = new java.util.ArrayList<String>(allowedMonitorCapabilities.length);
        for (MonitorCapability value : allowedMonitorCapabilities) {
            allowedMonitorCapabilitiesCopy.add(value.toString());
        }
        if (getAllowedMonitorCapabilities() == null) {
            setAllowedMonitorCapabilities(allowedMonitorCapabilitiesCopy);
        } else {
            getAllowedMonitorCapabilities().addAll(allowedMonitorCapabilitiesCopy);
        }
        return this;
    }
<p>
Specify which monitoring actions the user is allowed to take. For example, whether the user is allowed to
escalate from silent monitoring to barge. AllowedMonitorCapabilities is required if barge is enabled.
</p>

@param allowedMonitorCapabilities
       Specify which monitoring actions the user is allowed to take. For example, whether the user is allowed to
       escalate from silent monitoring to barge. AllowedMonitorCapabilities is required if barge is enabled.
@return Returns a reference to this object so that method calls can be chained together.
@see MonitorCapability
aws-java-sdk-connect/src/main/java/com/amazonaws/services/connect/model/MonitorContactRequest.java