<?php

/**
 * This code was generated by
 * \ / _    _  _|   _  _
 * | (_)\/(_)(_|\/| |(/_  v1.0.0
 * /       /
 */

namespace Twilio\TwiML\Voice;

use Twilio\TwiML\TwiML;

class AiSession extends TwiML {
    /**
     * AiSession constructor.
     *
     * @param array $attributes Optional attributes
     */
    public function __construct($attributes = []) {
        parent::__construct('AiSession', null, $attributes);
    }

    /**
     * Add AiConnector attribute.
     *
     * @param string $aiConnector The unique name or installed add-on sid that
     *                            identifies the installed addon resource for the
     *                            AI Connector
     */
    public function setAiConnector($aiConnector): self {
        return $this->setAttribute('aiConnector', $aiConnector);
    }

    /**
     * Add AiSessionConfiguration attribute.
     *
     * @param string $aiSessionConfiguration The unique name or id of the AiSession
     *                                       Configuration resource.
     */
    public function setAiSessionConfiguration($aiSessionConfiguration): self {
        return $this->setAttribute('aiSessionConfiguration', $aiSessionConfiguration);
    }
}