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

215 lines
8.5 KiB
PHP

<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* DeviceComplianceScriptRule 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;
/**
* DeviceComplianceScriptRule 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 DeviceComplianceScriptRule extends Entity
{
/**
* Gets the dataType
* Data type specified in the rule. Possible values are: none, boolean, int64, double, string, dateTime, version, base64, xml, booleanArray, int64Array, doubleArray, stringArray, dateTimeArray, versionArray.
*
* @return DataType|null The dataType
*/
public function getDataType()
{
if (array_key_exists("dataType", $this->_propDict)) {
if (is_a($this->_propDict["dataType"], "\Beta\Microsoft\Graph\Model\DataType") || is_null($this->_propDict["dataType"])) {
return $this->_propDict["dataType"];
} else {
$this->_propDict["dataType"] = new DataType($this->_propDict["dataType"]);
return $this->_propDict["dataType"];
}
}
return null;
}
/**
* Sets the dataType
* Data type specified in the rule. Possible values are: none, boolean, int64, double, string, dateTime, version, base64, xml, booleanArray, int64Array, doubleArray, stringArray, dateTimeArray, versionArray.
*
* @param DataType $val The value to assign to the dataType
*
* @return DeviceComplianceScriptRule The DeviceComplianceScriptRule
*/
public function setDataType($val)
{
$this->_propDict["dataType"] = $val;
return $this;
}
/**
* Gets the deviceComplianceScriptRuleDataType
* Data type specified in the rule. Possible values are: none, boolean, int64, double, string, dateTime, version, base64, xml, booleanArray, int64Array, doubleArray, stringArray, dateTimeArray, versionArray.
*
* @return DeviceComplianceScriptRuleDataType|null The deviceComplianceScriptRuleDataType
*/
public function getDeviceComplianceScriptRuleDataType()
{
if (array_key_exists("deviceComplianceScriptRuleDataType", $this->_propDict)) {
if (is_a($this->_propDict["deviceComplianceScriptRuleDataType"], "\Beta\Microsoft\Graph\Model\DeviceComplianceScriptRuleDataType") || is_null($this->_propDict["deviceComplianceScriptRuleDataType"])) {
return $this->_propDict["deviceComplianceScriptRuleDataType"];
} else {
$this->_propDict["deviceComplianceScriptRuleDataType"] = new DeviceComplianceScriptRuleDataType($this->_propDict["deviceComplianceScriptRuleDataType"]);
return $this->_propDict["deviceComplianceScriptRuleDataType"];
}
}
return null;
}
/**
* Sets the deviceComplianceScriptRuleDataType
* Data type specified in the rule. Possible values are: none, boolean, int64, double, string, dateTime, version, base64, xml, booleanArray, int64Array, doubleArray, stringArray, dateTimeArray, versionArray.
*
* @param DeviceComplianceScriptRuleDataType $val The value to assign to the deviceComplianceScriptRuleDataType
*
* @return DeviceComplianceScriptRule The DeviceComplianceScriptRule
*/
public function setDeviceComplianceScriptRuleDataType($val)
{
$this->_propDict["deviceComplianceScriptRuleDataType"] = $val;
return $this;
}
/**
* Gets the deviceComplianceScriptRulOperator
* Operator specified in the rule. Possible values are: none, and, or, isEquals, notEquals, greaterThan, lessThan, between, notBetween, greaterEquals, lessEquals, dayTimeBetween, beginsWith, notBeginsWith, endsWith, notEndsWith, contains, notContains, allOf, oneOf, noneOf, setEquals, orderedSetEquals, subsetOf, excludesAll.
*
* @return DeviceComplianceScriptRulOperator|null The deviceComplianceScriptRulOperator
*/
public function getDeviceComplianceScriptRulOperator()
{
if (array_key_exists("deviceComplianceScriptRulOperator", $this->_propDict)) {
if (is_a($this->_propDict["deviceComplianceScriptRulOperator"], "\Beta\Microsoft\Graph\Model\DeviceComplianceScriptRulOperator") || is_null($this->_propDict["deviceComplianceScriptRulOperator"])) {
return $this->_propDict["deviceComplianceScriptRulOperator"];
} else {
$this->_propDict["deviceComplianceScriptRulOperator"] = new DeviceComplianceScriptRulOperator($this->_propDict["deviceComplianceScriptRulOperator"]);
return $this->_propDict["deviceComplianceScriptRulOperator"];
}
}
return null;
}
/**
* Sets the deviceComplianceScriptRulOperator
* Operator specified in the rule. Possible values are: none, and, or, isEquals, notEquals, greaterThan, lessThan, between, notBetween, greaterEquals, lessEquals, dayTimeBetween, beginsWith, notBeginsWith, endsWith, notEndsWith, contains, notContains, allOf, oneOf, noneOf, setEquals, orderedSetEquals, subsetOf, excludesAll.
*
* @param DeviceComplianceScriptRulOperator $val The value to assign to the deviceComplianceScriptRulOperator
*
* @return DeviceComplianceScriptRule The DeviceComplianceScriptRule
*/
public function setDeviceComplianceScriptRulOperator($val)
{
$this->_propDict["deviceComplianceScriptRulOperator"] = $val;
return $this;
}
/**
* Gets the operand
* Operand specified in the rule.
*
* @return string|null The operand
*/
public function getOperand()
{
if (array_key_exists("operand", $this->_propDict)) {
return $this->_propDict["operand"];
} else {
return null;
}
}
/**
* Sets the operand
* Operand specified in the rule.
*
* @param string $val The value of the operand
*
* @return DeviceComplianceScriptRule
*/
public function setOperand($val)
{
$this->_propDict["operand"] = $val;
return $this;
}
/**
* Gets the operator
* Operator specified in the rule. Possible values are: none, and, or, isEquals, notEquals, greaterThan, lessThan, between, notBetween, greaterEquals, lessEquals, dayTimeBetween, beginsWith, notBeginsWith, endsWith, notEndsWith, contains, notContains, allOf, oneOf, noneOf, setEquals, orderedSetEquals, subsetOf, excludesAll.
*
* @return Operator|null The operator
*/
public function getOperator()
{
if (array_key_exists("operator", $this->_propDict)) {
if (is_a($this->_propDict["operator"], "\Beta\Microsoft\Graph\Model\Operator") || is_null($this->_propDict["operator"])) {
return $this->_propDict["operator"];
} else {
$this->_propDict["operator"] = new Operator($this->_propDict["operator"]);
return $this->_propDict["operator"];
}
}
return null;
}
/**
* Sets the operator
* Operator specified in the rule. Possible values are: none, and, or, isEquals, notEquals, greaterThan, lessThan, between, notBetween, greaterEquals, lessEquals, dayTimeBetween, beginsWith, notBeginsWith, endsWith, notEndsWith, contains, notContains, allOf, oneOf, noneOf, setEquals, orderedSetEquals, subsetOf, excludesAll.
*
* @param Operator $val The value to assign to the operator
*
* @return DeviceComplianceScriptRule The DeviceComplianceScriptRule
*/
public function setOperator($val)
{
$this->_propDict["operator"] = $val;
return $this;
}
/**
* Gets the settingName
* Setting name specified in the rule.
*
* @return string|null The settingName
*/
public function getSettingName()
{
if (array_key_exists("settingName", $this->_propDict)) {
return $this->_propDict["settingName"];
} else {
return null;
}
}
/**
* Sets the settingName
* Setting name specified in the rule.
*
* @param string $val The value of the settingName
*
* @return DeviceComplianceScriptRule
*/
public function setSettingName($val)
{
$this->_propDict["settingName"] = $val;
return $this;
}
}