public Participant withState(ParticipantState state) {
        this.state = state.toString();
        return this;
    }
<p>
Whether the participant is connected to or disconnected from the stage.
</p>

@param state
       Whether the participant is connected to or disconnected from the stage.
@return Returns a reference to this object so that method calls can be chained together.
@see ParticipantState
aws-java-sdk-ivsrealtime/src/main/java/com/amazonaws/services/ivsrealtime/model/Participant.java