1
0
Fork 0
m365-php/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/BusinessScenario.php

280 lines
8.8 KiB
PHP

<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* BusinessScenario 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 Beta\Microsoft\Graph\Model;
/**
* BusinessScenario 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 BusinessScenario extends Entity
{
/**
* Gets the createdBy
* The identity of the user who created the scenario.
*
* @return IdentitySet|null The createdBy
*/
public function getCreatedBy()
{
if (array_key_exists("createdBy", $this->_propDict)) {
if (is_a($this->_propDict["createdBy"], "\Beta\Microsoft\Graph\Model\IdentitySet") || is_null($this->_propDict["createdBy"])) {
return $this->_propDict["createdBy"];
} else {
$this->_propDict["createdBy"] = new IdentitySet($this->_propDict["createdBy"]);
return $this->_propDict["createdBy"];
}
}
return null;
}
/**
* Sets the createdBy
* The identity of the user who created the scenario.
*
* @param IdentitySet $val The createdBy
*
* @return BusinessScenario
*/
public function setCreatedBy($val)
{
$this->_propDict["createdBy"] = $val;
return $this;
}
/**
* Gets the createdDateTime
* The date and time when the scenario was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
*
* @return \DateTime|null The createdDateTime
*/
public function getCreatedDateTime()
{
if (array_key_exists("createdDateTime", $this->_propDict)) {
if (is_a($this->_propDict["createdDateTime"], "\DateTime") || is_null($this->_propDict["createdDateTime"])) {
return $this->_propDict["createdDateTime"];
} else {
$this->_propDict["createdDateTime"] = new \DateTime($this->_propDict["createdDateTime"]);
return $this->_propDict["createdDateTime"];
}
}
return null;
}
/**
* Sets the createdDateTime
* The date and time when the scenario was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
*
* @param \DateTime $val The createdDateTime
*
* @return BusinessScenario
*/
public function setCreatedDateTime($val)
{
$this->_propDict["createdDateTime"] = $val;
return $this;
}
/**
* Gets the displayName
* Display name of the scenario.
*
* @return string|null The displayName
*/
public function getDisplayName()
{
if (array_key_exists("displayName", $this->_propDict)) {
return $this->_propDict["displayName"];
} else {
return null;
}
}
/**
* Sets the displayName
* Display name of the scenario.
*
* @param string $val The displayName
*
* @return BusinessScenario
*/
public function setDisplayName($val)
{
$this->_propDict["displayName"] = $val;
return $this;
}
/**
* Gets the lastModifiedBy
* The identity of the user who last modified the scenario.
*
* @return IdentitySet|null The lastModifiedBy
*/
public function getLastModifiedBy()
{
if (array_key_exists("lastModifiedBy", $this->_propDict)) {
if (is_a($this->_propDict["lastModifiedBy"], "\Beta\Microsoft\Graph\Model\IdentitySet") || is_null($this->_propDict["lastModifiedBy"])) {
return $this->_propDict["lastModifiedBy"];
} else {
$this->_propDict["lastModifiedBy"] = new IdentitySet($this->_propDict["lastModifiedBy"]);
return $this->_propDict["lastModifiedBy"];
}
}
return null;
}
/**
* Sets the lastModifiedBy
* The identity of the user who last modified the scenario.
*
* @param IdentitySet $val The lastModifiedBy
*
* @return BusinessScenario
*/
public function setLastModifiedBy($val)
{
$this->_propDict["lastModifiedBy"] = $val;
return $this;
}
/**
* Gets the lastModifiedDateTime
* The date and time when the scenario was last modified. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
*
* @return \DateTime|null The lastModifiedDateTime
*/
public function getLastModifiedDateTime()
{
if (array_key_exists("lastModifiedDateTime", $this->_propDict)) {
if (is_a($this->_propDict["lastModifiedDateTime"], "\DateTime") || is_null($this->_propDict["lastModifiedDateTime"])) {
return $this->_propDict["lastModifiedDateTime"];
} else {
$this->_propDict["lastModifiedDateTime"] = new \DateTime($this->_propDict["lastModifiedDateTime"]);
return $this->_propDict["lastModifiedDateTime"];
}
}
return null;
}
/**
* Sets the lastModifiedDateTime
* The date and time when the scenario was last modified. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
*
* @param \DateTime $val The lastModifiedDateTime
*
* @return BusinessScenario
*/
public function setLastModifiedDateTime($val)
{
$this->_propDict["lastModifiedDateTime"] = $val;
return $this;
}
/**
* Gets the ownerAppIds
* Identifiers of applications that are authorized to work with this scenario.
*
* @return array|null The ownerAppIds
*/
public function getOwnerAppIds()
{
if (array_key_exists("ownerAppIds", $this->_propDict)) {
return $this->_propDict["ownerAppIds"];
} else {
return null;
}
}
/**
* Sets the ownerAppIds
* Identifiers of applications that are authorized to work with this scenario.
*
* @param string[] $val The ownerAppIds
*
* @return BusinessScenario
*/
public function setOwnerAppIds($val)
{
$this->_propDict["ownerAppIds"] = $val;
return $this;
}
/**
* Gets the uniqueName
* Unique name of the scenario. To avoid conflicts, the recommended value for the unique name is a reverse domain name format, owned by the author of the scenario. For example, a scenario authored by Contoso.com would have a unique name that starts with com.contoso.
*
* @return string|null The uniqueName
*/
public function getUniqueName()
{
if (array_key_exists("uniqueName", $this->_propDict)) {
return $this->_propDict["uniqueName"];
} else {
return null;
}
}
/**
* Sets the uniqueName
* Unique name of the scenario. To avoid conflicts, the recommended value for the unique name is a reverse domain name format, owned by the author of the scenario. For example, a scenario authored by Contoso.com would have a unique name that starts with com.contoso.
*
* @param string $val The uniqueName
*
* @return BusinessScenario
*/
public function setUniqueName($val)
{
$this->_propDict["uniqueName"] = $val;
return $this;
}
/**
* Gets the planner
* Planner content related to the scenario.
*
* @return BusinessScenarioPlanner|null The planner
*/
public function getPlanner()
{
if (array_key_exists("planner", $this->_propDict)) {
if (is_a($this->_propDict["planner"], "\Beta\Microsoft\Graph\Model\BusinessScenarioPlanner") || is_null($this->_propDict["planner"])) {
return $this->_propDict["planner"];
} else {
$this->_propDict["planner"] = new BusinessScenarioPlanner($this->_propDict["planner"]);
return $this->_propDict["planner"];
}
}
return null;
}
/**
* Sets the planner
* Planner content related to the scenario.
*
* @param BusinessScenarioPlanner $val The planner
*
* @return BusinessScenario
*/
public function setPlanner($val)
{
$this->_propDict["planner"] = $val;
return $this;
}
}