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

205 lines
5.6 KiB
PHP

<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* ManagementAction 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;
/**
* ManagementAction 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 ManagementAction extends \Beta\Microsoft\Graph\Model\Entity
{
/**
* Gets the category
* The category for the management action. Possible values are: custom, devices, identity, unknownFutureValue. Optional. Read-only.
*
* @return ManagementCategory|null The category
*/
public function getCategory()
{
if (array_key_exists("category", $this->_propDict)) {
if (is_a($this->_propDict["category"], "\Beta\Microsoft\Graph\ManagedTenants\Model\ManagementCategory") || is_null($this->_propDict["category"])) {
return $this->_propDict["category"];
} else {
$this->_propDict["category"] = new ManagementCategory($this->_propDict["category"]);
return $this->_propDict["category"];
}
}
return null;
}
/**
* Sets the category
* The category for the management action. Possible values are: custom, devices, identity, unknownFutureValue. Optional. Read-only.
*
* @param ManagementCategory $val The category
*
* @return ManagementAction
*/
public function setCategory($val)
{
$this->_propDict["category"] = $val;
return $this;
}
/**
* Gets the description
* The description for the management action. Optional. Read-only.
*
* @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
* The description for the management action. Optional. Read-only.
*
* @param string $val The description
*
* @return ManagementAction
*/
public function setDescription($val)
{
$this->_propDict["description"] = $val;
return $this;
}
/**
* Gets the displayName
* The display name for the management action. Optional. Read-only.
*
* @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
* The display name for the management action. Optional. Read-only.
*
* @param string $val The displayName
*
* @return ManagementAction
*/
public function setDisplayName($val)
{
$this->_propDict["displayName"] = $val;
return $this;
}
/**
* Gets the referenceTemplateId
* The reference for the management template used to generate the management action. Required. Read-only.
*
* @return string|null The referenceTemplateId
*/
public function getReferenceTemplateId()
{
if (array_key_exists("referenceTemplateId", $this->_propDict)) {
return $this->_propDict["referenceTemplateId"];
} else {
return null;
}
}
/**
* Sets the referenceTemplateId
* The reference for the management template used to generate the management action. Required. Read-only.
*
* @param string $val The referenceTemplateId
*
* @return ManagementAction
*/
public function setReferenceTemplateId($val)
{
$this->_propDict["referenceTemplateId"] = $val;
return $this;
}
/**
* Gets the referenceTemplateVersion
*
* @return int|null The referenceTemplateVersion
*/
public function getReferenceTemplateVersion()
{
if (array_key_exists("referenceTemplateVersion", $this->_propDict)) {
return $this->_propDict["referenceTemplateVersion"];
} else {
return null;
}
}
/**
* Sets the referenceTemplateVersion
*
* @param int $val The referenceTemplateVersion
*
* @return ManagementAction
*/
public function setReferenceTemplateVersion($val)
{
$this->_propDict["referenceTemplateVersion"] = intval($val);
return $this;
}
/**
* Gets the workloadActions
* The collection of workload actions associated with the management action. Required. Read-only.
*
* @return array|null The workloadActions
*/
public function getWorkloadActions()
{
if (array_key_exists("workloadActions", $this->_propDict)) {
return $this->_propDict["workloadActions"];
} else {
return null;
}
}
/**
* Sets the workloadActions
* The collection of workload actions associated with the management action. Required. Read-only.
*
* @param WorkloadAction[] $val The workloadActions
*
* @return ManagementAction
*/
public function setWorkloadActions($val)
{
$this->_propDict["workloadActions"] = $val;
return $this;
}
}