283 lines
6.8 KiB
PHP
283 lines
6.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.
|
|
*
|
|
* ManagedTenantApiNotification 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\ManagedTenants\Model;
|
|
|
|
/**
|
|
* ManagedTenantApiNotification 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 ManagedTenantApiNotification extends \Beta\Microsoft\Graph\Model\Entity
|
|
{
|
|
/**
|
|
* Gets the createdByUserId
|
|
*
|
|
* @return string|null The createdByUserId
|
|
*/
|
|
public function getCreatedByUserId()
|
|
{
|
|
if (array_key_exists("createdByUserId", $this->_propDict)) {
|
|
return $this->_propDict["createdByUserId"];
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the createdByUserId
|
|
*
|
|
* @param string $val The createdByUserId
|
|
*
|
|
* @return ManagedTenantApiNotification
|
|
*/
|
|
public function setCreatedByUserId($val)
|
|
{
|
|
$this->_propDict["createdByUserId"] = $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 ManagedTenantApiNotification
|
|
*/
|
|
public function setCreatedDateTime($val)
|
|
{
|
|
$this->_propDict["createdDateTime"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the isAcknowledged
|
|
*
|
|
* @return bool|null The isAcknowledged
|
|
*/
|
|
public function getIsAcknowledged()
|
|
{
|
|
if (array_key_exists("isAcknowledged", $this->_propDict)) {
|
|
return $this->_propDict["isAcknowledged"];
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the isAcknowledged
|
|
*
|
|
* @param bool $val The isAcknowledged
|
|
*
|
|
* @return ManagedTenantApiNotification
|
|
*/
|
|
public function setIsAcknowledged($val)
|
|
{
|
|
$this->_propDict["isAcknowledged"] = boolval($val);
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the lastActionByUserId
|
|
*
|
|
* @return string|null The lastActionByUserId
|
|
*/
|
|
public function getLastActionByUserId()
|
|
{
|
|
if (array_key_exists("lastActionByUserId", $this->_propDict)) {
|
|
return $this->_propDict["lastActionByUserId"];
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the lastActionByUserId
|
|
*
|
|
* @param string $val The lastActionByUserId
|
|
*
|
|
* @return ManagedTenantApiNotification
|
|
*/
|
|
public function setLastActionByUserId($val)
|
|
{
|
|
$this->_propDict["lastActionByUserId"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the lastActionDateTime
|
|
*
|
|
* @return \DateTime|null The lastActionDateTime
|
|
*/
|
|
public function getLastActionDateTime()
|
|
{
|
|
if (array_key_exists("lastActionDateTime", $this->_propDict)) {
|
|
if (is_a($this->_propDict["lastActionDateTime"], "\DateTime") || is_null($this->_propDict["lastActionDateTime"])) {
|
|
return $this->_propDict["lastActionDateTime"];
|
|
} else {
|
|
$this->_propDict["lastActionDateTime"] = new \DateTime($this->_propDict["lastActionDateTime"]);
|
|
return $this->_propDict["lastActionDateTime"];
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
/**
|
|
* Sets the lastActionDateTime
|
|
*
|
|
* @param \DateTime $val The lastActionDateTime
|
|
*
|
|
* @return ManagedTenantApiNotification
|
|
*/
|
|
public function setLastActionDateTime($val)
|
|
{
|
|
$this->_propDict["lastActionDateTime"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the message
|
|
*
|
|
* @return string|null The message
|
|
*/
|
|
public function getMessage()
|
|
{
|
|
if (array_key_exists("message", $this->_propDict)) {
|
|
return $this->_propDict["message"];
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the message
|
|
*
|
|
* @param string $val The message
|
|
*
|
|
* @return ManagedTenantApiNotification
|
|
*/
|
|
public function setMessage($val)
|
|
{
|
|
$this->_propDict["message"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the title
|
|
*
|
|
* @return string|null The title
|
|
*/
|
|
public function getTitle()
|
|
{
|
|
if (array_key_exists("title", $this->_propDict)) {
|
|
return $this->_propDict["title"];
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the title
|
|
*
|
|
* @param string $val The title
|
|
*
|
|
* @return ManagedTenantApiNotification
|
|
*/
|
|
public function setTitle($val)
|
|
{
|
|
$this->_propDict["title"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the userId
|
|
*
|
|
* @return string|null The userId
|
|
*/
|
|
public function getUserId()
|
|
{
|
|
if (array_key_exists("userId", $this->_propDict)) {
|
|
return $this->_propDict["userId"];
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the userId
|
|
*
|
|
* @param string $val The userId
|
|
*
|
|
* @return ManagedTenantApiNotification
|
|
*/
|
|
public function setUserId($val)
|
|
{
|
|
$this->_propDict["userId"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the alert
|
|
*
|
|
* @return ManagedTenantAlert|null The alert
|
|
*/
|
|
public function getAlert()
|
|
{
|
|
if (array_key_exists("alert", $this->_propDict)) {
|
|
if (is_a($this->_propDict["alert"], "\Beta\Microsoft\Graph\ManagedTenants\Model\ManagedTenantAlert") || is_null($this->_propDict["alert"])) {
|
|
return $this->_propDict["alert"];
|
|
} else {
|
|
$this->_propDict["alert"] = new ManagedTenantAlert($this->_propDict["alert"]);
|
|
return $this->_propDict["alert"];
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
/**
|
|
* Sets the alert
|
|
*
|
|
* @param ManagedTenantAlert $val The alert
|
|
*
|
|
* @return ManagedTenantApiNotification
|
|
*/
|
|
public function setAlert($val)
|
|
{
|
|
$this->_propDict["alert"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
}
|