// 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;
import java.util.List;

/** The AddParticipantsRequestInternal model. */
@Fluent
public final class AddParticipantsRequestInternal {
    /*
     * The source caller Id that's shown to the PSTN participant being invited.
     * Required only when inviting a PSTN participant.
     */
    @JsonProperty(value = "sourceCallerId")
    private PhoneNumberIdentifierModel sourceCallerId;

    /*
     * The participants to invite.
     */
    @JsonProperty(value = "participantsToAdd", required = true)
    private List<CommunicationIdentifierModel> participantsToAdd;

    /*
     * Gets or sets the timeout to wait for the invited participant to pickup.
     * The maximum value of this is 180 seconds
     */
    @JsonProperty(value = "invitationTimeoutInSeconds")
    private Integer invitationTimeoutInSeconds;

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

    /**
     * Get the sourceCallerId property: The source caller Id that's shown to the PSTN participant being invited.
     * Required only when inviting a PSTN participant.
     *
     * @return the sourceCallerId value.
     */
    public PhoneNumberIdentifierModel getSourceCallerId() {
        return this.sourceCallerId;
    }

    /**
     * Set the sourceCallerId property: The source caller Id that's shown to the PSTN participant being invited.
     * Required only when inviting a PSTN participant.
     *
     * @param sourceCallerId the sourceCallerId value to set.
     * @return the AddParticipantsRequestInternal object itself.
     */
    public AddParticipantsRequestInternal setSourceCallerId(PhoneNumberIdentifierModel sourceCallerId) {
        this.sourceCallerId = sourceCallerId;
        return this;
    }

    /**
     * Get the participantsToAdd property: The participants to invite.
     *
     * @return the participantsToAdd value.
     */
    public List<CommunicationIdentifierModel> getParticipantsToAdd() {
        return this.participantsToAdd;
    }

    /**
     * Set the participantsToAdd property: The participants to invite.
     *
     * @param participantsToAdd the participantsToAdd value to set.
     * @return the AddParticipantsRequestInternal object itself.
     */
    public AddParticipantsRequestInternal setParticipantsToAdd(List<CommunicationIdentifierModel> participantsToAdd) {
        this.participantsToAdd = participantsToAdd;
        return this;
    }

    /**
     * Get the invitationTimeoutInSeconds property: Gets or sets the timeout to wait for the invited participant to
     * pickup. The maximum value of this is 180 seconds.
     *
     * @return the invitationTimeoutInSeconds value.
     */
    public Integer getInvitationTimeoutInSeconds() {
        return this.invitationTimeoutInSeconds;
    }

    /**
     * Set the invitationTimeoutInSeconds property: Gets or sets the timeout to wait for the invited participant to
     * pickup. The maximum value of this is 180 seconds.
     *
     * @param invitationTimeoutInSeconds the invitationTimeoutInSeconds value to set.
     * @return the AddParticipantsRequestInternal object itself.
     */
    public AddParticipantsRequestInternal setInvitationTimeoutInSeconds(Integer invitationTimeoutInSeconds) {
        this.invitationTimeoutInSeconds = invitationTimeoutInSeconds;
        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 AddParticipantsRequestInternal object itself.
     */
    public AddParticipantsRequestInternal setOperationContext(String operationContext) {
        this.operationContext = operationContext;
        return this;
    }
}
