_propDict)) { if (is_a($this->_propDict["completionReason"], "\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; } }