354 lines
9.3 KiB
PHP
354 lines
9.3 KiB
PHP
<?php
|
|
/**
|
|
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
|
|
*
|
|
* EndUserNotification 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;
|
|
|
|
/**
|
|
* EndUserNotification 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 EndUserNotification extends Entity
|
|
{
|
|
/**
|
|
* Gets the createdBy
|
|
*
|
|
* @return EmailIdentity|null The createdBy
|
|
*/
|
|
public function getCreatedBy()
|
|
{
|
|
if (array_key_exists("createdBy", $this->_propDict)) {
|
|
if (is_a($this->_propDict["createdBy"], "\Beta\Microsoft\Graph\Model\EmailIdentity") || is_null($this->_propDict["createdBy"])) {
|
|
return $this->_propDict["createdBy"];
|
|
} else {
|
|
$this->_propDict["createdBy"] = new EmailIdentity($this->_propDict["createdBy"]);
|
|
return $this->_propDict["createdBy"];
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
/**
|
|
* Sets the createdBy
|
|
*
|
|
* @param EmailIdentity $val The createdBy
|
|
*
|
|
* @return EndUserNotification
|
|
*/
|
|
public function setCreatedBy($val)
|
|
{
|
|
$this->_propDict["createdBy"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the createdDateTime
|
|
*
|
|
* @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
|
|
*
|
|
* @param \DateTime $val The createdDateTime
|
|
*
|
|
* @return EndUserNotification
|
|
*/
|
|
public function setCreatedDateTime($val)
|
|
{
|
|
$this->_propDict["createdDateTime"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the description
|
|
*
|
|
* @return string|null The description
|
|
*/
|
|
public function getDescription()
|
|
{
|
|
if (array_key_exists("description", $this->_propDict)) {
|
|
return $this->_propDict["description"];
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the description
|
|
*
|
|
* @param string $val The description
|
|
*
|
|
* @return EndUserNotification
|
|
*/
|
|
public function setDescription($val)
|
|
{
|
|
$this->_propDict["description"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the displayName
|
|
*
|
|
* @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
|
|
*
|
|
* @param string $val The displayName
|
|
*
|
|
* @return EndUserNotification
|
|
*/
|
|
public function setDisplayName($val)
|
|
{
|
|
$this->_propDict["displayName"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the lastModifiedBy
|
|
*
|
|
* @return EmailIdentity|null The lastModifiedBy
|
|
*/
|
|
public function getLastModifiedBy()
|
|
{
|
|
if (array_key_exists("lastModifiedBy", $this->_propDict)) {
|
|
if (is_a($this->_propDict["lastModifiedBy"], "\Beta\Microsoft\Graph\Model\EmailIdentity") || is_null($this->_propDict["lastModifiedBy"])) {
|
|
return $this->_propDict["lastModifiedBy"];
|
|
} else {
|
|
$this->_propDict["lastModifiedBy"] = new EmailIdentity($this->_propDict["lastModifiedBy"]);
|
|
return $this->_propDict["lastModifiedBy"];
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
/**
|
|
* Sets the lastModifiedBy
|
|
*
|
|
* @param EmailIdentity $val The lastModifiedBy
|
|
*
|
|
* @return EndUserNotification
|
|
*/
|
|
public function setLastModifiedBy($val)
|
|
{
|
|
$this->_propDict["lastModifiedBy"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the lastModifiedDateTime
|
|
*
|
|
* @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
|
|
*
|
|
* @param \DateTime $val The lastModifiedDateTime
|
|
*
|
|
* @return EndUserNotification
|
|
*/
|
|
public function setLastModifiedDateTime($val)
|
|
{
|
|
$this->_propDict["lastModifiedDateTime"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the notificationType
|
|
*
|
|
* @return EndUserNotificationType|null The notificationType
|
|
*/
|
|
public function getNotificationType()
|
|
{
|
|
if (array_key_exists("notificationType", $this->_propDict)) {
|
|
if (is_a($this->_propDict["notificationType"], "\Beta\Microsoft\Graph\Model\EndUserNotificationType") || is_null($this->_propDict["notificationType"])) {
|
|
return $this->_propDict["notificationType"];
|
|
} else {
|
|
$this->_propDict["notificationType"] = new EndUserNotificationType($this->_propDict["notificationType"]);
|
|
return $this->_propDict["notificationType"];
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
/**
|
|
* Sets the notificationType
|
|
*
|
|
* @param EndUserNotificationType $val The notificationType
|
|
*
|
|
* @return EndUserNotification
|
|
*/
|
|
public function setNotificationType($val)
|
|
{
|
|
$this->_propDict["notificationType"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the source
|
|
*
|
|
* @return SimulationContentSource|null The source
|
|
*/
|
|
public function getSource()
|
|
{
|
|
if (array_key_exists("source", $this->_propDict)) {
|
|
if (is_a($this->_propDict["source"], "\Beta\Microsoft\Graph\Model\SimulationContentSource") || is_null($this->_propDict["source"])) {
|
|
return $this->_propDict["source"];
|
|
} else {
|
|
$this->_propDict["source"] = new SimulationContentSource($this->_propDict["source"]);
|
|
return $this->_propDict["source"];
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
/**
|
|
* Sets the source
|
|
*
|
|
* @param SimulationContentSource $val The source
|
|
*
|
|
* @return EndUserNotification
|
|
*/
|
|
public function setSource($val)
|
|
{
|
|
$this->_propDict["source"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the status
|
|
*
|
|
* @return SimulationContentStatus|null The status
|
|
*/
|
|
public function getStatus()
|
|
{
|
|
if (array_key_exists("status", $this->_propDict)) {
|
|
if (is_a($this->_propDict["status"], "\Beta\Microsoft\Graph\Model\SimulationContentStatus") || is_null($this->_propDict["status"])) {
|
|
return $this->_propDict["status"];
|
|
} else {
|
|
$this->_propDict["status"] = new SimulationContentStatus($this->_propDict["status"]);
|
|
return $this->_propDict["status"];
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
/**
|
|
* Sets the status
|
|
*
|
|
* @param SimulationContentStatus $val The status
|
|
*
|
|
* @return EndUserNotification
|
|
*/
|
|
public function setStatus($val)
|
|
{
|
|
$this->_propDict["status"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the supportedLocales
|
|
*
|
|
* @return array|null The supportedLocales
|
|
*/
|
|
public function getSupportedLocales()
|
|
{
|
|
if (array_key_exists("supportedLocales", $this->_propDict)) {
|
|
return $this->_propDict["supportedLocales"];
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the supportedLocales
|
|
*
|
|
* @param string[] $val The supportedLocales
|
|
*
|
|
* @return EndUserNotification
|
|
*/
|
|
public function setSupportedLocales($val)
|
|
{
|
|
$this->_propDict["supportedLocales"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
|
|
/**
|
|
* Gets the details
|
|
*
|
|
* @return array|null The details
|
|
*/
|
|
public function getDetails()
|
|
{
|
|
if (array_key_exists("details", $this->_propDict)) {
|
|
return $this->_propDict["details"];
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the details
|
|
*
|
|
* @param EndUserNotificationDetail[] $val The details
|
|
*
|
|
* @return EndUserNotification
|
|
*/
|
|
public function setDetails($val)
|
|
{
|
|
$this->_propDict["details"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
}
|