com.azure.communication.rooms.implementation.models.ParticipantRole Maven / Gradle / Ivy
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.communication.rooms.implementation.models;
import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/** The role of a room participant. The default value is Attendee. */
public final class ParticipantRole extends ExpandableStringEnum {
/** Static value Presenter for ParticipantRole. */
public static final ParticipantRole PRESENTER = fromString("Presenter");
/** Static value Attendee for ParticipantRole. */
public static final ParticipantRole ATTENDEE = fromString("Attendee");
/** Static value Consumer for ParticipantRole. */
public static final ParticipantRole CONSUMER = fromString("Consumer");
/**
* Creates a new instance of ParticipantRole value.
*
* @deprecated Use the {@link #fromString(String)} factory method.
*/
@Deprecated
public ParticipantRole() {}
/**
* Creates or finds a ParticipantRole from its string representation.
*
* @param name a name to look for.
* @return the corresponding ParticipantRole.
*/
@JsonCreator
public static ParticipantRole fromString(String name) {
return fromString(name, ParticipantRole.class);
}
/**
* Gets known ParticipantRole values.
*
* @return known ParticipantRole values.
*/
public static Collection values() {
return values(ParticipantRole.class);
}
}