<?php

/**
* Copyright (c) Microsoft Corporation.  All Rights Reserved.  Licensed under the MIT License.  See License in the project root for license information.
* 
* RecordOperation File
* PHP version 7
*
* @category  Library
* @package   Microsoft.Graph
* @copyright (c) Microsoft Corporation. All rights reserved.
* @license   https://opensource.org/licenses/MIT MIT License
* @link      https://graph.microsoft.com
*/
namespace XCloner\Beta\Microsoft\Graph\Model;

if (!defined('ABSPATH') && \PHP_SAPI !== 'cli') {
    die;
}
/**
* RecordOperation class
*
* @category  Model
* @package   Microsoft.Graph
* @copyright (c) Microsoft Corporation. All rights reserved.
* @license   https://opensource.org/licenses/MIT MIT License
* @link      https://graph.microsoft.com
*/
class RecordOperation extends CommsOperation
{
    /**
     * Gets the completionReason
     * Possible values are: operationCanceled, stopToneDetected, maxRecordDurationReached, initialSilenceTimeout, maxSilenceTimeout, playPromptFailed, playBeepFailed, mediaReceiveTimeout, unspecifiedError, none.
     *
     * @return RecordCompletionReason|null The completionReason
     */
    public function getCompletionReason()
    {
        if (array_key_exists("completionReason", $this->_propDict)) {
            if (is_a($this->_propDict["completionReason"], "XCloner\\Beta\\Microsoft\\Graph\\Model\\RecordCompletionReason") || is_null($this->_propDict["completionReason"])) {
                return $this->_propDict["completionReason"];
            } else {
                $this->_propDict["completionReason"] = new RecordCompletionReason($this->_propDict["completionReason"]);
                return $this->_propDict["completionReason"];
            }
        }
        return null;
    }
    /**
     * Sets the completionReason
     * Possible values are: operationCanceled, stopToneDetected, maxRecordDurationReached, initialSilenceTimeout, maxSilenceTimeout, playPromptFailed, playBeepFailed, mediaReceiveTimeout, unspecifiedError, none.
     *
     * @param RecordCompletionReason $val The completionReason
     *
     * @return RecordOperation
     */
    public function setCompletionReason($val)
    {
        $this->_propDict["completionReason"] = $val;
        return $this;
    }
    /**
     * Gets the recordingAccessToken
     * The access token required to retrieve the recording.
     *
     * @return string|null The recordingAccessToken
     */
    public function getRecordingAccessToken()
    {
        if (array_key_exists("recordingAccessToken", $this->_propDict)) {
            return $this->_propDict["recordingAccessToken"];
        } else {
            return null;
        }
    }
    /**
     * Sets the recordingAccessToken
     * The access token required to retrieve the recording.
     *
     * @param string $val The recordingAccessToken
     *
     * @return RecordOperation
     */
    public function setRecordingAccessToken($val)
    {
        $this->_propDict["recordingAccessToken"] = $val;
        return $this;
    }
    /**
     * Gets the recordingLocation
     * The location where the recording is located.
     *
     * @return string|null The recordingLocation
     */
    public function getRecordingLocation()
    {
        if (array_key_exists("recordingLocation", $this->_propDict)) {
            return $this->_propDict["recordingLocation"];
        } else {
            return null;
        }
    }
    /**
     * Sets the recordingLocation
     * The location where the recording is located.
     *
     * @param string $val The recordingLocation
     *
     * @return RecordOperation
     */
    public function setRecordingLocation($val)
    {
        $this->_propDict["recordingLocation"] = $val;
        return $this;
    }
}
