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

309 lines
9.9 KiB
PHP

<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* AndroidForWorkSettings 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;
/**
* AndroidForWorkSettings 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 AndroidForWorkSettings extends Entity
{
/**
* Gets the bindStatus
* Bind status of the tenant with the Google EMM API. Possible values are: notBound, bound, boundAndValidated, unbinding.
*
* @return AndroidForWorkBindStatus|null The bindStatus
*/
public function getBindStatus()
{
if (array_key_exists("bindStatus", $this->_propDict)) {
if (is_a($this->_propDict["bindStatus"], "\Beta\Microsoft\Graph\Model\AndroidForWorkBindStatus") || is_null($this->_propDict["bindStatus"])) {
return $this->_propDict["bindStatus"];
} else {
$this->_propDict["bindStatus"] = new AndroidForWorkBindStatus($this->_propDict["bindStatus"]);
return $this->_propDict["bindStatus"];
}
}
return null;
}
/**
* Sets the bindStatus
* Bind status of the tenant with the Google EMM API. Possible values are: notBound, bound, boundAndValidated, unbinding.
*
* @param AndroidForWorkBindStatus $val The bindStatus
*
* @return AndroidForWorkSettings
*/
public function setBindStatus($val)
{
$this->_propDict["bindStatus"] = $val;
return $this;
}
/**
* Gets the deviceOwnerManagementEnabled
* Indicates if this account is flighting for Android Device Owner Management with CloudDPC.
*
* @return bool|null The deviceOwnerManagementEnabled
*/
public function getDeviceOwnerManagementEnabled()
{
if (array_key_exists("deviceOwnerManagementEnabled", $this->_propDict)) {
return $this->_propDict["deviceOwnerManagementEnabled"];
} else {
return null;
}
}
/**
* Sets the deviceOwnerManagementEnabled
* Indicates if this account is flighting for Android Device Owner Management with CloudDPC.
*
* @param bool $val The deviceOwnerManagementEnabled
*
* @return AndroidForWorkSettings
*/
public function setDeviceOwnerManagementEnabled($val)
{
$this->_propDict["deviceOwnerManagementEnabled"] = boolval($val);
return $this;
}
/**
* Gets the enrollmentTarget
* Indicates which users can enroll devices in Android for Work device management. Possible values are: none, all, targeted, targetedAsEnrollmentRestrictions.
*
* @return AndroidForWorkEnrollmentTarget|null The enrollmentTarget
*/
public function getEnrollmentTarget()
{
if (array_key_exists("enrollmentTarget", $this->_propDict)) {
if (is_a($this->_propDict["enrollmentTarget"], "\Beta\Microsoft\Graph\Model\AndroidForWorkEnrollmentTarget") || is_null($this->_propDict["enrollmentTarget"])) {
return $this->_propDict["enrollmentTarget"];
} else {
$this->_propDict["enrollmentTarget"] = new AndroidForWorkEnrollmentTarget($this->_propDict["enrollmentTarget"]);
return $this->_propDict["enrollmentTarget"];
}
}
return null;
}
/**
* Sets the enrollmentTarget
* Indicates which users can enroll devices in Android for Work device management. Possible values are: none, all, targeted, targetedAsEnrollmentRestrictions.
*
* @param AndroidForWorkEnrollmentTarget $val The enrollmentTarget
*
* @return AndroidForWorkSettings
*/
public function setEnrollmentTarget($val)
{
$this->_propDict["enrollmentTarget"] = $val;
return $this;
}
/**
* Gets the lastAppSyncDateTime
* Last completion time for app sync
*
* @return \DateTime|null The lastAppSyncDateTime
*/
public function getLastAppSyncDateTime()
{
if (array_key_exists("lastAppSyncDateTime", $this->_propDict)) {
if (is_a($this->_propDict["lastAppSyncDateTime"], "\DateTime") || is_null($this->_propDict["lastAppSyncDateTime"])) {
return $this->_propDict["lastAppSyncDateTime"];
} else {
$this->_propDict["lastAppSyncDateTime"] = new \DateTime($this->_propDict["lastAppSyncDateTime"]);
return $this->_propDict["lastAppSyncDateTime"];
}
}
return null;
}
/**
* Sets the lastAppSyncDateTime
* Last completion time for app sync
*
* @param \DateTime $val The lastAppSyncDateTime
*
* @return AndroidForWorkSettings
*/
public function setLastAppSyncDateTime($val)
{
$this->_propDict["lastAppSyncDateTime"] = $val;
return $this;
}
/**
* Gets the lastAppSyncStatus
* Last application sync result. Possible values are: success, credentialsNotValid, androidForWorkApiError, managementServiceError, unknownError, none.
*
* @return AndroidForWorkSyncStatus|null The lastAppSyncStatus
*/
public function getLastAppSyncStatus()
{
if (array_key_exists("lastAppSyncStatus", $this->_propDict)) {
if (is_a($this->_propDict["lastAppSyncStatus"], "\Beta\Microsoft\Graph\Model\AndroidForWorkSyncStatus") || is_null($this->_propDict["lastAppSyncStatus"])) {
return $this->_propDict["lastAppSyncStatus"];
} else {
$this->_propDict["lastAppSyncStatus"] = new AndroidForWorkSyncStatus($this->_propDict["lastAppSyncStatus"]);
return $this->_propDict["lastAppSyncStatus"];
}
}
return null;
}
/**
* Sets the lastAppSyncStatus
* Last application sync result. Possible values are: success, credentialsNotValid, androidForWorkApiError, managementServiceError, unknownError, none.
*
* @param AndroidForWorkSyncStatus $val The lastAppSyncStatus
*
* @return AndroidForWorkSettings
*/
public function setLastAppSyncStatus($val)
{
$this->_propDict["lastAppSyncStatus"] = $val;
return $this;
}
/**
* Gets the lastModifiedDateTime
* Last modification time for Android for Work settings
*
* @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
* Last modification time for Android for Work settings
*
* @param \DateTime $val The lastModifiedDateTime
*
* @return AndroidForWorkSettings
*/
public function setLastModifiedDateTime($val)
{
$this->_propDict["lastModifiedDateTime"] = $val;
return $this;
}
/**
* Gets the ownerOrganizationName
* Organization name used when onboarding Android for Work
*
* @return string|null The ownerOrganizationName
*/
public function getOwnerOrganizationName()
{
if (array_key_exists("ownerOrganizationName", $this->_propDict)) {
return $this->_propDict["ownerOrganizationName"];
} else {
return null;
}
}
/**
* Sets the ownerOrganizationName
* Organization name used when onboarding Android for Work
*
* @param string $val The ownerOrganizationName
*
* @return AndroidForWorkSettings
*/
public function setOwnerOrganizationName($val)
{
$this->_propDict["ownerOrganizationName"] = $val;
return $this;
}
/**
* Gets the ownerUserPrincipalName
* Owner UPN that created the enterprise
*
* @return string|null The ownerUserPrincipalName
*/
public function getOwnerUserPrincipalName()
{
if (array_key_exists("ownerUserPrincipalName", $this->_propDict)) {
return $this->_propDict["ownerUserPrincipalName"];
} else {
return null;
}
}
/**
* Sets the ownerUserPrincipalName
* Owner UPN that created the enterprise
*
* @param string $val The ownerUserPrincipalName
*
* @return AndroidForWorkSettings
*/
public function setOwnerUserPrincipalName($val)
{
$this->_propDict["ownerUserPrincipalName"] = $val;
return $this;
}
/**
* Gets the targetGroupIds
* Specifies which AAD groups can enroll devices in Android for Work device management if enrollmentTarget is set to 'Targeted'
*
* @return string|null The targetGroupIds
*/
public function getTargetGroupIds()
{
if (array_key_exists("targetGroupIds", $this->_propDict)) {
return $this->_propDict["targetGroupIds"];
} else {
return null;
}
}
/**
* Sets the targetGroupIds
* Specifies which AAD groups can enroll devices in Android for Work device management if enrollmentTarget is set to 'Targeted'
*
* @param string $val The targetGroupIds
*
* @return AndroidForWorkSettings
*/
public function setTargetGroupIds($val)
{
$this->_propDict["targetGroupIds"] = $val;
return $this;
}
}