public ParticipantTokenConfiguration withCapabilities(ParticipantTokenCapability... capabilities) {
        java.util.ArrayList<String> capabilitiesCopy = new java.util.ArrayList<String>(capabilities.length);
        for (ParticipantTokenCapability value : capabilities) {
            capabilitiesCopy.add(value.toString());
        }
        if (getCapabilities() == null) {
            setCapabilities(capabilitiesCopy);
        } else {
            getCapabilities().addAll(capabilitiesCopy);
        }
        return this;
    }
<p>
Set of capabilities that the user is allowed to perform in the stage.
</p>

@param capabilities
       Set of capabilities that the user is allowed to perform in the stage.
@return Returns a reference to this object so that method calls can be chained together.
@see ParticipantTokenCapability
aws-java-sdk-ivsrealtime/src/main/java/com/amazonaws/services/ivsrealtime/model/ParticipantTokenConfiguration.java