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

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

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** Properties of a call connection. */
@Fluent
public final class CallConnectionPropertiesInternal {
    /*
     * The call connection id.
     */
    @JsonProperty(value = "callConnectionId")
    private String callConnectionId;

    /*
     * The server call id.
     */
    @JsonProperty(value = "serverCallId")
    private String serverCallId;

    /*
     * The targets of the call.
     */
    @JsonProperty(value = "targets")
    private List<CommunicationIdentifierModel> targets;

    /*
     * The state of the call connection.
     */
    @JsonProperty(value = "callConnectionState")
    private CallConnectionStateModelInternal callConnectionState;

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

    /*
     * SubscriptionId for media streaming
     */
    @JsonProperty(value = "mediaSubscriptionId")
    private String mediaSubscriptionId;

    /*
     * The source caller Id, a phone number, that's shown to the PSTN
     * participant being invited.
     * Required only when calling a PSTN callee.
     */
    @JsonProperty(value = "sourceCallerIdNumber")
    private PhoneNumberIdentifierModel sourceCallerIdNumber;

    /*
     * Display name of the call if dialing out to a pstn number.
     */
    @JsonProperty(value = "sourceDisplayName")
    private String sourceDisplayName;

    /*
     * Source identity.
     */
    @JsonProperty(value = "sourceIdentity")
    private CommunicationIdentifierModel sourceIdentity;

    /*
     * The correlation ID.
     */
    @JsonProperty(value = "correlationId")
    private String correlationId;

    /*
     * Identity of the answering entity. Only populated when identity is
     * provided in the request.
     */
    @JsonProperty(value = "answeredByIdentifier")
    private CommunicationUserIdentifierModel answeredByIdentifier;

    /**
     * Get the callConnectionId property: The call connection id.
     *
     * @return the callConnectionId value.
     */
    public String getCallConnectionId() {
        return this.callConnectionId;
    }

    /**
     * Set the callConnectionId property: The call connection id.
     *
     * @param callConnectionId the callConnectionId value to set.
     * @return the CallConnectionPropertiesInternal object itself.
     */
    public CallConnectionPropertiesInternal setCallConnectionId(String callConnectionId) {
        this.callConnectionId = callConnectionId;
        return this;
    }

    /**
     * Get the serverCallId property: The server call id.
     *
     * @return the serverCallId value.
     */
    public String getServerCallId() {
        return this.serverCallId;
    }

    /**
     * Set the serverCallId property: The server call id.
     *
     * @param serverCallId the serverCallId value to set.
     * @return the CallConnectionPropertiesInternal object itself.
     */
    public CallConnectionPropertiesInternal setServerCallId(String serverCallId) {
        this.serverCallId = serverCallId;
        return this;
    }

    /**
     * Get the targets property: The targets of the call.
     *
     * @return the targets value.
     */
    public List<CommunicationIdentifierModel> getTargets() {
        return this.targets;
    }

    /**
     * Set the targets property: The targets of the call.
     *
     * @param targets the targets value to set.
     * @return the CallConnectionPropertiesInternal object itself.
     */
    public CallConnectionPropertiesInternal setTargets(List<CommunicationIdentifierModel> targets) {
        this.targets = targets;
        return this;
    }

    /**
     * Get the callConnectionState property: The state of the call connection.
     *
     * @return the callConnectionState value.
     */
    public CallConnectionStateModelInternal getCallConnectionState() {
        return this.callConnectionState;
    }

    /**
     * Set the callConnectionState property: The state of the call connection.
     *
     * @param callConnectionState the callConnectionState value to set.
     * @return the CallConnectionPropertiesInternal object itself.
     */
    public CallConnectionPropertiesInternal setCallConnectionState(
            CallConnectionStateModelInternal callConnectionState) {
        this.callConnectionState = callConnectionState;
        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 CallConnectionPropertiesInternal object itself.
     */
    public CallConnectionPropertiesInternal setCallbackUri(String callbackUri) {
        this.callbackUri = callbackUri;
        return this;
    }

    /**
     * Get the mediaSubscriptionId property: SubscriptionId for media streaming.
     *
     * @return the mediaSubscriptionId value.
     */
    public String getMediaSubscriptionId() {
        return this.mediaSubscriptionId;
    }

    /**
     * Set the mediaSubscriptionId property: SubscriptionId for media streaming.
     *
     * @param mediaSubscriptionId the mediaSubscriptionId value to set.
     * @return the CallConnectionPropertiesInternal object itself.
     */
    public CallConnectionPropertiesInternal setMediaSubscriptionId(String mediaSubscriptionId) {
        this.mediaSubscriptionId = mediaSubscriptionId;
        return this;
    }

    /**
     * Get the sourceCallerIdNumber property: The source caller Id, a phone number, that's shown to the PSTN participant
     * being invited. Required only when calling a PSTN callee.
     *
     * @return the sourceCallerIdNumber value.
     */
    public PhoneNumberIdentifierModel getSourceCallerIdNumber() {
        return this.sourceCallerIdNumber;
    }

    /**
     * Set the sourceCallerIdNumber property: The source caller Id, a phone number, that's shown to the PSTN participant
     * being invited. Required only when calling a PSTN callee.
     *
     * @param sourceCallerIdNumber the sourceCallerIdNumber value to set.
     * @return the CallConnectionPropertiesInternal object itself.
     */
    public CallConnectionPropertiesInternal setSourceCallerIdNumber(PhoneNumberIdentifierModel sourceCallerIdNumber) {
        this.sourceCallerIdNumber = sourceCallerIdNumber;
        return this;
    }

    /**
     * Get the sourceDisplayName property: Display name of the call if dialing out to a pstn number.
     *
     * @return the sourceDisplayName value.
     */
    public String getSourceDisplayName() {
        return this.sourceDisplayName;
    }

    /**
     * Set the sourceDisplayName property: Display name of the call if dialing out to a pstn number.
     *
     * @param sourceDisplayName the sourceDisplayName value to set.
     * @return the CallConnectionPropertiesInternal object itself.
     */
    public CallConnectionPropertiesInternal setSourceDisplayName(String sourceDisplayName) {
        this.sourceDisplayName = sourceDisplayName;
        return this;
    }

    /**
     * Get the sourceIdentity property: Source identity.
     *
     * @return the sourceIdentity value.
     */
    public CommunicationIdentifierModel getSourceIdentity() {
        return this.sourceIdentity;
    }

    /**
     * Set the sourceIdentity property: Source identity.
     *
     * @param sourceIdentity the sourceIdentity value to set.
     * @return the CallConnectionPropertiesInternal object itself.
     */
    public CallConnectionPropertiesInternal setSourceIdentity(CommunicationIdentifierModel sourceIdentity) {
        this.sourceIdentity = sourceIdentity;
        return this;
    }

    /**
     * Get the correlationId property: The correlation ID.
     *
     * @return the correlationId value.
     */
    public String getCorrelationId() {
        return this.correlationId;
    }

    /**
     * Set the correlationId property: The correlation ID.
     *
     * @param correlationId the correlationId value to set.
     * @return the CallConnectionPropertiesInternal object itself.
     */
    public CallConnectionPropertiesInternal setCorrelationId(String correlationId) {
        this.correlationId = correlationId;
        return this;
    }

    /**
     * Get the answeredByIdentifier property: Identity of the answering entity. Only populated when identity is provided
     * in the request.
     *
     * @return the answeredByIdentifier value.
     */
    public CommunicationUserIdentifierModel getAnsweredByIdentifier() {
        return this.answeredByIdentifier;
    }

    /**
     * Set the answeredByIdentifier property: Identity of the answering entity. Only populated when identity is provided
     * in the request.
     *
     * @param answeredByIdentifier the answeredByIdentifier value to set.
     * @return the CallConnectionPropertiesInternal object itself.
     */
    public CallConnectionPropertiesInternal setAnsweredByIdentifier(
            CommunicationUserIdentifierModel answeredByIdentifier) {
        this.answeredByIdentifier = answeredByIdentifier;
        return this;
    }
}
