CallParticipantInternal.java

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.communication.callingserver.implementation.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** A participant in a call. */
@Fluent
public final class CallParticipantInternal {
    /*
     * Communication identifier of the participant
     */
    @JsonProperty(value = "identifier")
    private CommunicationIdentifierModel identifier;

    /*
     * Participant id
     */
    @JsonProperty(value = "participantId")
    private String participantId;

    /*
     * Is participant muted
     */
    @JsonProperty(value = "isMuted", required = true)
    private boolean isMuted;

    /**
     * Get the identifier property: Communication identifier of the participant.
     *
     * @return the identifier value.
     */
    public CommunicationIdentifierModel getIdentifier() {
        return this.identifier;
    }

    /**
     * Set the identifier property: Communication identifier of the participant.
     *
     * @param identifier the identifier value to set.
     * @return the CallParticipantInternal object itself.
     */
    public CallParticipantInternal setIdentifier(CommunicationIdentifierModel identifier) {
        this.identifier = identifier;
        return this;
    }

    /**
     * Get the participantId property: Participant id.
     *
     * @return the participantId value.
     */
    public String getParticipantId() {
        return this.participantId;
    }

    /**
     * Set the participantId property: Participant id.
     *
     * @param participantId the participantId value to set.
     * @return the CallParticipantInternal object itself.
     */
    public CallParticipantInternal setParticipantId(String participantId) {
        this.participantId = participantId;
        return this;
    }

    /**
     * Get the isMuted property: Is participant muted.
     *
     * @return the isMuted value.
     */
    public boolean isMuted() {
        return this.isMuted;
    }

    /**
     * Set the isMuted property: Is participant muted.
     *
     * @param isMuted the isMuted value to set.
     * @return the CallParticipantInternal object itself.
     */
    public CallParticipantInternal setIsMuted(boolean isMuted) {
        this.isMuted = isMuted;
        return this;
    }
}