AddParticipantRequest.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;

/** The add participant request. */
@Fluent
public final class AddParticipantRequest {
    /*
     * The alternate identity of source participant.
     */
    @JsonProperty(value = "alternateCallerId")
    private PhoneNumberIdentifierModel alternateCallerId;

    /*
     * The participant to be added to the call.
     */
    @JsonProperty(value = "participant")
    private CommunicationIdentifierModel participant;

    /*
     * The operation context.
     */
    @JsonProperty(value = "operationContext")
    private String operationContext;

    /*
     * The callback URI.
     */
    @JsonProperty(value = "callbackUri")
    private String callbackUri;

    /**
     * Get the alternateCallerId property: The alternate identity of source participant.
     *
     * @return the alternateCallerId value.
     */
    public PhoneNumberIdentifierModel getAlternateCallerId() {
        return this.alternateCallerId;
    }

    /**
     * Set the alternateCallerId property: The alternate identity of source participant.
     *
     * @param alternateCallerId the alternateCallerId value to set.
     * @return the AddParticipantRequest object itself.
     */
    public AddParticipantRequest setAlternateCallerId(PhoneNumberIdentifierModel alternateCallerId) {
        this.alternateCallerId = alternateCallerId;
        return this;
    }

    /**
     * Get the participant property: The participant to be added to the call.
     *
     * @return the participant value.
     */
    public CommunicationIdentifierModel getParticipant() {
        return this.participant;
    }

    /**
     * Set the participant property: The participant to be added to the call.
     *
     * @param participant the participant value to set.
     * @return the AddParticipantRequest object itself.
     */
    public AddParticipantRequest setParticipant(CommunicationIdentifierModel participant) {
        this.participant = participant;
        return this;
    }

    /**
     * Get the operationContext property: The operation context.
     *
     * @return the operationContext value.
     */
    public String getOperationContext() {
        return this.operationContext;
    }

    /**
     * Set the operationContext property: The operation context.
     *
     * @param operationContext the operationContext value to set.
     * @return the AddParticipantRequest object itself.
     */
    public AddParticipantRequest setOperationContext(String operationContext) {
        this.operationContext = operationContext;
        return this;
    }

    /**
     * Get the callbackUri property: The callback URI.
     *
     * @return the callbackUri value.
     */
    public String getCallbackUri() {
        return this.callbackUri;
    }

    /**
     * Set the callbackUri property: The callback URI.
     *
     * @param callbackUri the callbackUri value to set.
     * @return the AddParticipantRequest object itself.
     */
    public AddParticipantRequest setCallbackUri(String callbackUri) {
        this.callbackUri = callbackUri;
        return this;
    }
}