1
0
Fork 0
m365-php/vendor/microsoft/microsoft-graph/src/Model/FeatureRolloutPolicy.php

207 lines
5.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.
*
* FeatureRolloutPolicy 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 Microsoft\Graph\Model;
/**
* FeatureRolloutPolicy 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 FeatureRolloutPolicy extends Entity
{
/**
* Gets the description
* A description for this feature rollout policy.
*
* @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
* A description for this feature rollout policy.
*
* @param string $val The description
*
* @return FeatureRolloutPolicy
*/
public function setDescription($val)
{
$this->_propDict["description"] = $val;
return $this;
}
/**
* Gets the displayName
* The display name for this feature rollout policy.
*
* @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 this feature rollout policy.
*
* @param string $val The displayName
*
* @return FeatureRolloutPolicy
*/
public function setDisplayName($val)
{
$this->_propDict["displayName"] = $val;
return $this;
}
/**
* Gets the feature
* Possible values are: passthroughAuthentication, seamlessSso, passwordHashSync, emailAsAlternateId, unknownFutureValue.
*
* @return StagedFeatureName|null The feature
*/
public function getFeature()
{
if (array_key_exists("feature", $this->_propDict)) {
if (is_a($this->_propDict["feature"], "\Microsoft\Graph\Model\StagedFeatureName") || is_null($this->_propDict["feature"])) {
return $this->_propDict["feature"];
} else {
$this->_propDict["feature"] = new StagedFeatureName($this->_propDict["feature"]);
return $this->_propDict["feature"];
}
}
return null;
}
/**
* Sets the feature
* Possible values are: passthroughAuthentication, seamlessSso, passwordHashSync, emailAsAlternateId, unknownFutureValue.
*
* @param StagedFeatureName $val The feature
*
* @return FeatureRolloutPolicy
*/
public function setFeature($val)
{
$this->_propDict["feature"] = $val;
return $this;
}
/**
* Gets the isAppliedToOrganization
* Indicates whether this feature rollout policy should be applied to the entire organization.
*
* @return bool|null The isAppliedToOrganization
*/
public function getIsAppliedToOrganization()
{
if (array_key_exists("isAppliedToOrganization", $this->_propDict)) {
return $this->_propDict["isAppliedToOrganization"];
} else {
return null;
}
}
/**
* Sets the isAppliedToOrganization
* Indicates whether this feature rollout policy should be applied to the entire organization.
*
* @param bool $val The isAppliedToOrganization
*
* @return FeatureRolloutPolicy
*/
public function setIsAppliedToOrganization($val)
{
$this->_propDict["isAppliedToOrganization"] = boolval($val);
return $this;
}
/**
* Gets the isEnabled
* Indicates whether the feature rollout is enabled.
*
* @return bool|null The isEnabled
*/
public function getIsEnabled()
{
if (array_key_exists("isEnabled", $this->_propDict)) {
return $this->_propDict["isEnabled"];
} else {
return null;
}
}
/**
* Sets the isEnabled
* Indicates whether the feature rollout is enabled.
*
* @param bool $val The isEnabled
*
* @return FeatureRolloutPolicy
*/
public function setIsEnabled($val)
{
$this->_propDict["isEnabled"] = boolval($val);
return $this;
}
/**
* Gets the appliesTo
* Nullable. Specifies a list of directoryObjects that feature is enabled for.
*
* @return array|null The appliesTo
*/
public function getAppliesTo()
{
if (array_key_exists("appliesTo", $this->_propDict)) {
return $this->_propDict["appliesTo"];
} else {
return null;
}
}
/**
* Sets the appliesTo
* Nullable. Specifies a list of directoryObjects that feature is enabled for.
*
* @param DirectoryObject[] $val The appliesTo
*
* @return FeatureRolloutPolicy
*/
public function setAppliesTo($val)
{
$this->_propDict["appliesTo"] = $val;
return $this;
}
}