All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.communication.rooms.implementation.models.RoomParticipant 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.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** A participant of the room. */
@Fluent
public final class RoomParticipant {
    /*
     * Identifies a participant in Azure Communication services. A participant
     * is, for example, an Azure communication user. This model must be
     * interpreted as a union: Apart from rawId, at most one further property
     * may be set.
     */
    @JsonProperty(value = "communicationIdentifier", required = true)
    private CommunicationIdentifierModel communicationIdentifier;

    /*
     * The Role of a room participant.
     */
    @JsonProperty(value = "role")
    private RoleType role;

    /**
     * Get the communicationIdentifier property: Identifies a participant in Azure Communication services. A participant
     * is, for example, an Azure communication user. This model must be interpreted as a union: Apart from rawId, at
     * most one further property may be set.
     *
     * @return the communicationIdentifier value.
     */
    public CommunicationIdentifierModel getCommunicationIdentifier() {
        return this.communicationIdentifier;
    }

    /**
     * Set the communicationIdentifier property: Identifies a participant in Azure Communication services. A participant
     * is, for example, an Azure communication user. This model must be interpreted as a union: Apart from rawId, at
     * most one further property may be set.
     *
     * @param communicationIdentifier the communicationIdentifier value to set.
     * @return the RoomParticipant object itself.
     */
    public RoomParticipant setCommunicationIdentifier(CommunicationIdentifierModel communicationIdentifier) {
        this.communicationIdentifier = communicationIdentifier;
        return this;
    }

    /**
     * Get the role property: The Role of a room participant.
     *
     * @return the role value.
     */
    public RoleType getRole() {
        return this.role;
    }

    /**
     * Set the role property: The Role of a room participant.
     *
     * @param role the role value to set.
     * @return the RoomParticipant object itself.
     */
    public RoomParticipant setRole(RoleType role) {
        this.role = role;
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy