_propDict)) { return $this->_propDict["allowedGoogleAccountDomains"]; } else { return null; } } /** * Sets the allowedGoogleAccountDomains * Determine domains allow-list for accounts that can be added to work profile. * * @param string[] $val The allowedGoogleAccountDomains * * @return AndroidForWorkGeneralDeviceConfiguration */ public function setAllowedGoogleAccountDomains($val) { $this->_propDict["allowedGoogleAccountDomains"] = $val; return $this; } /** * Gets the blockUnifiedPasswordForWorkProfile * Prevent using unified password for unlocking device and work profile. * * @return bool|null The blockUnifiedPasswordForWorkProfile */ public function getBlockUnifiedPasswordForWorkProfile() { if (array_key_exists("blockUnifiedPasswordForWorkProfile", $this->_propDict)) { return $this->_propDict["blockUnifiedPasswordForWorkProfile"]; } else { return null; } } /** * Sets the blockUnifiedPasswordForWorkProfile * Prevent using unified password for unlocking device and work profile. * * @param bool $val The blockUnifiedPasswordForWorkProfile * * @return AndroidForWorkGeneralDeviceConfiguration */ public function setBlockUnifiedPasswordForWorkProfile($val) { $this->_propDict["blockUnifiedPasswordForWorkProfile"] = boolval($val); return $this; } /** * Gets the passwordBlockFaceUnlock * Indicates whether or not to block face unlock. * * @return bool|null The passwordBlockFaceUnlock */ public function getPasswordBlockFaceUnlock() { if (array_key_exists("passwordBlockFaceUnlock", $this->_propDict)) { return $this->_propDict["passwordBlockFaceUnlock"]; } else { return null; } } /** * Sets the passwordBlockFaceUnlock * Indicates whether or not to block face unlock. * * @param bool $val The passwordBlockFaceUnlock * * @return AndroidForWorkGeneralDeviceConfiguration */ public function setPasswordBlockFaceUnlock($val) { $this->_propDict["passwordBlockFaceUnlock"] = boolval($val); return $this; } /** * Gets the passwordBlockFingerprintUnlock * Indicates whether or not to block fingerprint unlock. * * @return bool|null The passwordBlockFingerprintUnlock */ public function getPasswordBlockFingerprintUnlock() { if (array_key_exists("passwordBlockFingerprintUnlock", $this->_propDict)) { return $this->_propDict["passwordBlockFingerprintUnlock"]; } else { return null; } } /** * Sets the passwordBlockFingerprintUnlock * Indicates whether or not to block fingerprint unlock. * * @param bool $val The passwordBlockFingerprintUnlock * * @return AndroidForWorkGeneralDeviceConfiguration */ public function setPasswordBlockFingerprintUnlock($val) { $this->_propDict["passwordBlockFingerprintUnlock"] = boolval($val); return $this; } /** * Gets the passwordBlockIrisUnlock * Indicates whether or not to block iris unlock. * * @return bool|null The passwordBlockIrisUnlock */ public function getPasswordBlockIrisUnlock() { if (array_key_exists("passwordBlockIrisUnlock", $this->_propDict)) { return $this->_propDict["passwordBlockIrisUnlock"]; } else { return null; } } /** * Sets the passwordBlockIrisUnlock * Indicates whether or not to block iris unlock. * * @param bool $val The passwordBlockIrisUnlock * * @return AndroidForWorkGeneralDeviceConfiguration */ public function setPasswordBlockIrisUnlock($val) { $this->_propDict["passwordBlockIrisUnlock"] = boolval($val); return $this; } /** * Gets the passwordBlockTrustAgents * Indicates whether or not to block Smart Lock and other trust agents. * * @return bool|null The passwordBlockTrustAgents */ public function getPasswordBlockTrustAgents() { if (array_key_exists("passwordBlockTrustAgents", $this->_propDict)) { return $this->_propDict["passwordBlockTrustAgents"]; } else { return null; } } /** * Sets the passwordBlockTrustAgents * Indicates whether or not to block Smart Lock and other trust agents. * * @param bool $val The passwordBlockTrustAgents * * @return AndroidForWorkGeneralDeviceConfiguration */ public function setPasswordBlockTrustAgents($val) { $this->_propDict["passwordBlockTrustAgents"] = boolval($val); return $this; } /** * Gets the passwordExpirationDays * Number of days before the password expires. Valid values 1 to 365 * * @return int|null The passwordExpirationDays */ public function getPasswordExpirationDays() { if (array_key_exists("passwordExpirationDays", $this->_propDict)) { return $this->_propDict["passwordExpirationDays"]; } else { return null; } } /** * Sets the passwordExpirationDays * Number of days before the password expires. Valid values 1 to 365 * * @param int $val The passwordExpirationDays * * @return AndroidForWorkGeneralDeviceConfiguration */ public function setPasswordExpirationDays($val) { $this->_propDict["passwordExpirationDays"] = intval($val); return $this; } /** * Gets the passwordMinimumLength * Minimum length of passwords. Valid values 4 to 16 * * @return int|null The passwordMinimumLength */ public function getPasswordMinimumLength() { if (array_key_exists("passwordMinimumLength", $this->_propDict)) { return $this->_propDict["passwordMinimumLength"]; } else { return null; } } /** * Sets the passwordMinimumLength * Minimum length of passwords. Valid values 4 to 16 * * @param int $val The passwordMinimumLength * * @return AndroidForWorkGeneralDeviceConfiguration */ public function setPasswordMinimumLength($val) { $this->_propDict["passwordMinimumLength"] = intval($val); return $this; } /** * Gets the passwordMinutesOfInactivityBeforeScreenTimeout * Minutes of inactivity before the screen times out. * * @return int|null The passwordMinutesOfInactivityBeforeScreenTimeout */ public function getPasswordMinutesOfInactivityBeforeScreenTimeout() { if (array_key_exists("passwordMinutesOfInactivityBeforeScreenTimeout", $this->_propDict)) { return $this->_propDict["passwordMinutesOfInactivityBeforeScreenTimeout"]; } else { return null; } } /** * Sets the passwordMinutesOfInactivityBeforeScreenTimeout * Minutes of inactivity before the screen times out. * * @param int $val The passwordMinutesOfInactivityBeforeScreenTimeout * * @return AndroidForWorkGeneralDeviceConfiguration */ public function setPasswordMinutesOfInactivityBeforeScreenTimeout($val) { $this->_propDict["passwordMinutesOfInactivityBeforeScreenTimeout"] = intval($val); return $this; } /** * Gets the passwordPreviousPasswordBlockCount * Number of previous passwords to block. Valid values 0 to 24 * * @return int|null The passwordPreviousPasswordBlockCount */ public function getPasswordPreviousPasswordBlockCount() { if (array_key_exists("passwordPreviousPasswordBlockCount", $this->_propDict)) { return $this->_propDict["passwordPreviousPasswordBlockCount"]; } else { return null; } } /** * Sets the passwordPreviousPasswordBlockCount * Number of previous passwords to block. Valid values 0 to 24 * * @param int $val The passwordPreviousPasswordBlockCount * * @return AndroidForWorkGeneralDeviceConfiguration */ public function setPasswordPreviousPasswordBlockCount($val) { $this->_propDict["passwordPreviousPasswordBlockCount"] = intval($val); return $this; } /** * Gets the passwordRequiredType * Type of password that is required. Possible values are: deviceDefault, lowSecurityBiometric, required, atLeastNumeric, numericComplex, atLeastAlphabetic, atLeastAlphanumeric, alphanumericWithSymbols. * * @return AndroidForWorkRequiredPasswordType|null The passwordRequiredType */ public function getPasswordRequiredType() { if (array_key_exists("passwordRequiredType", $this->_propDict)) { if (is_a($this->_propDict["passwordRequiredType"], "\Beta\Microsoft\Graph\Model\AndroidForWorkRequiredPasswordType") || is_null($this->_propDict["passwordRequiredType"])) { return $this->_propDict["passwordRequiredType"]; } else { $this->_propDict["passwordRequiredType"] = new AndroidForWorkRequiredPasswordType($this->_propDict["passwordRequiredType"]); return $this->_propDict["passwordRequiredType"]; } } return null; } /** * Sets the passwordRequiredType * Type of password that is required. Possible values are: deviceDefault, lowSecurityBiometric, required, atLeastNumeric, numericComplex, atLeastAlphabetic, atLeastAlphanumeric, alphanumericWithSymbols. * * @param AndroidForWorkRequiredPasswordType $val The passwordRequiredType * * @return AndroidForWorkGeneralDeviceConfiguration */ public function setPasswordRequiredType($val) { $this->_propDict["passwordRequiredType"] = $val; return $this; } /** * Gets the passwordSignInFailureCountBeforeFactoryReset * Number of sign in failures allowed before factory reset. Valid values 1 to 16 * * @return int|null The passwordSignInFailureCountBeforeFactoryReset */ public function getPasswordSignInFailureCountBeforeFactoryReset() { if (array_key_exists("passwordSignInFailureCountBeforeFactoryReset", $this->_propDict)) { return $this->_propDict["passwordSignInFailureCountBeforeFactoryReset"]; } else { return null; } } /** * Sets the passwordSignInFailureCountBeforeFactoryReset * Number of sign in failures allowed before factory reset. Valid values 1 to 16 * * @param int $val The passwordSignInFailureCountBeforeFactoryReset * * @return AndroidForWorkGeneralDeviceConfiguration */ public function setPasswordSignInFailureCountBeforeFactoryReset($val) { $this->_propDict["passwordSignInFailureCountBeforeFactoryReset"] = intval($val); return $this; } /** * Gets the requiredPasswordComplexity * Indicates the required device password complexity on Android. One of: NONE, LOW, MEDIUM, HIGH. This is a new API targeted to Android 12+. Possible values are: none, low, medium, high. * * @return AndroidRequiredPasswordComplexity|null The requiredPasswordComplexity */ public function getRequiredPasswordComplexity() { if (array_key_exists("requiredPasswordComplexity", $this->_propDict)) { if (is_a($this->_propDict["requiredPasswordComplexity"], "\Beta\Microsoft\Graph\Model\AndroidRequiredPasswordComplexity") || is_null($this->_propDict["requiredPasswordComplexity"])) { return $this->_propDict["requiredPasswordComplexity"]; } else { $this->_propDict["requiredPasswordComplexity"] = new AndroidRequiredPasswordComplexity($this->_propDict["requiredPasswordComplexity"]); return $this->_propDict["requiredPasswordComplexity"]; } } return null; } /** * Sets the requiredPasswordComplexity * Indicates the required device password complexity on Android. One of: NONE, LOW, MEDIUM, HIGH. This is a new API targeted to Android 12+. Possible values are: none, low, medium, high. * * @param AndroidRequiredPasswordComplexity $val The requiredPasswordComplexity * * @return AndroidForWorkGeneralDeviceConfiguration */ public function setRequiredPasswordComplexity($val) { $this->_propDict["requiredPasswordComplexity"] = $val; return $this; } /** * Gets the securityRequireVerifyApps * Require the Android Verify apps feature is turned on. * * @return bool|null The securityRequireVerifyApps */ public function getSecurityRequireVerifyApps() { if (array_key_exists("securityRequireVerifyApps", $this->_propDict)) { return $this->_propDict["securityRequireVerifyApps"]; } else { return null; } } /** * Sets the securityRequireVerifyApps * Require the Android Verify apps feature is turned on. * * @param bool $val The securityRequireVerifyApps * * @return AndroidForWorkGeneralDeviceConfiguration */ public function setSecurityRequireVerifyApps($val) { $this->_propDict["securityRequireVerifyApps"] = boolval($val); return $this; } /** * Gets the vpnAlwaysOnPackageIdentifier * Enable lockdown mode for always-on VPN. * * @return string|null The vpnAlwaysOnPackageIdentifier */ public function getVpnAlwaysOnPackageIdentifier() { if (array_key_exists("vpnAlwaysOnPackageIdentifier", $this->_propDict)) { return $this->_propDict["vpnAlwaysOnPackageIdentifier"]; } else { return null; } } /** * Sets the vpnAlwaysOnPackageIdentifier * Enable lockdown mode for always-on VPN. * * @param string $val The vpnAlwaysOnPackageIdentifier * * @return AndroidForWorkGeneralDeviceConfiguration */ public function setVpnAlwaysOnPackageIdentifier($val) { $this->_propDict["vpnAlwaysOnPackageIdentifier"] = $val; return $this; } /** * Gets the vpnEnableAlwaysOnLockdownMode * Enable lockdown mode for always-on VPN. * * @return bool|null The vpnEnableAlwaysOnLockdownMode */ public function getVpnEnableAlwaysOnLockdownMode() { if (array_key_exists("vpnEnableAlwaysOnLockdownMode", $this->_propDict)) { return $this->_propDict["vpnEnableAlwaysOnLockdownMode"]; } else { return null; } } /** * Sets the vpnEnableAlwaysOnLockdownMode * Enable lockdown mode for always-on VPN. * * @param bool $val The vpnEnableAlwaysOnLockdownMode * * @return AndroidForWorkGeneralDeviceConfiguration */ public function setVpnEnableAlwaysOnLockdownMode($val) { $this->_propDict["vpnEnableAlwaysOnLockdownMode"] = boolval($val); return $this; } /** * Gets the workProfileAccountUse * Control user's ability to add accounts in work profile including Google accounts. Possible values are: allowAllExceptGoogleAccounts, blockAll, allowAll, unknownFutureValue. * * @return AndroidWorkProfileAccountUse|null The workProfileAccountUse */ public function getWorkProfileAccountUse() { if (array_key_exists("workProfileAccountUse", $this->_propDict)) { if (is_a($this->_propDict["workProfileAccountUse"], "\Beta\Microsoft\Graph\Model\AndroidWorkProfileAccountUse") || is_null($this->_propDict["workProfileAccountUse"])) { return $this->_propDict["workProfileAccountUse"]; } else { $this->_propDict["workProfileAccountUse"] = new AndroidWorkProfileAccountUse($this->_propDict["workProfileAccountUse"]); return $this->_propDict["workProfileAccountUse"]; } } return null; } /** * Sets the workProfileAccountUse * Control user's ability to add accounts in work profile including Google accounts. Possible values are: allowAllExceptGoogleAccounts, blockAll, allowAll, unknownFutureValue. * * @param AndroidWorkProfileAccountUse $val The workProfileAccountUse * * @return AndroidForWorkGeneralDeviceConfiguration */ public function setWorkProfileAccountUse($val) { $this->_propDict["workProfileAccountUse"] = $val; return $this; } /** * Gets the workProfileAllowWidgets * Allow widgets from work profile apps. * * @return bool|null The workProfileAllowWidgets */ public function getWorkProfileAllowWidgets() { if (array_key_exists("workProfileAllowWidgets", $this->_propDict)) { return $this->_propDict["workProfileAllowWidgets"]; } else { return null; } } /** * Sets the workProfileAllowWidgets * Allow widgets from work profile apps. * * @param bool $val The workProfileAllowWidgets * * @return AndroidForWorkGeneralDeviceConfiguration */ public function setWorkProfileAllowWidgets($val) { $this->_propDict["workProfileAllowWidgets"] = boolval($val); return $this; } /** * Gets the workProfileBlockAddingAccounts * Block users from adding/removing accounts in work profile. * * @return bool|null The workProfileBlockAddingAccounts */ public function getWorkProfileBlockAddingAccounts() { if (array_key_exists("workProfileBlockAddingAccounts", $this->_propDict)) { return $this->_propDict["workProfileBlockAddingAccounts"]; } else { return null; } } /** * Sets the workProfileBlockAddingAccounts * Block users from adding/removing accounts in work profile. * * @param bool $val The workProfileBlockAddingAccounts * * @return AndroidForWorkGeneralDeviceConfiguration */ public function setWorkProfileBlockAddingAccounts($val) { $this->_propDict["workProfileBlockAddingAccounts"] = boolval($val); return $this; } /** * Gets the workProfileBlockCamera * Block work profile camera. * * @return bool|null The workProfileBlockCamera */ public function getWorkProfileBlockCamera() { if (array_key_exists("workProfileBlockCamera", $this->_propDict)) { return $this->_propDict["workProfileBlockCamera"]; } else { return null; } } /** * Sets the workProfileBlockCamera * Block work profile camera. * * @param bool $val The workProfileBlockCamera * * @return AndroidForWorkGeneralDeviceConfiguration */ public function setWorkProfileBlockCamera($val) { $this->_propDict["workProfileBlockCamera"] = boolval($val); return $this; } /** * Gets the workProfileBlockCrossProfileCallerId * Block display work profile caller ID in personal profile. * * @return bool|null The workProfileBlockCrossProfileCallerId */ public function getWorkProfileBlockCrossProfileCallerId() { if (array_key_exists("workProfileBlockCrossProfileCallerId", $this->_propDict)) { return $this->_propDict["workProfileBlockCrossProfileCallerId"]; } else { return null; } } /** * Sets the workProfileBlockCrossProfileCallerId * Block display work profile caller ID in personal profile. * * @param bool $val The workProfileBlockCrossProfileCallerId * * @return AndroidForWorkGeneralDeviceConfiguration */ public function setWorkProfileBlockCrossProfileCallerId($val) { $this->_propDict["workProfileBlockCrossProfileCallerId"] = boolval($val); return $this; } /** * Gets the workProfileBlockCrossProfileContactsSearch * Block work profile contacts availability in personal profile. * * @return bool|null The workProfileBlockCrossProfileContactsSearch */ public function getWorkProfileBlockCrossProfileContactsSearch() { if (array_key_exists("workProfileBlockCrossProfileContactsSearch", $this->_propDict)) { return $this->_propDict["workProfileBlockCrossProfileContactsSearch"]; } else { return null; } } /** * Sets the workProfileBlockCrossProfileContactsSearch * Block work profile contacts availability in personal profile. * * @param bool $val The workProfileBlockCrossProfileContactsSearch * * @return AndroidForWorkGeneralDeviceConfiguration */ public function setWorkProfileBlockCrossProfileContactsSearch($val) { $this->_propDict["workProfileBlockCrossProfileContactsSearch"] = boolval($val); return $this; } /** * Gets the workProfileBlockCrossProfileCopyPaste * Boolean that indicates if the setting disallow cross profile copy/paste is enabled. * * @return bool|null The workProfileBlockCrossProfileCopyPaste */ public function getWorkProfileBlockCrossProfileCopyPaste() { if (array_key_exists("workProfileBlockCrossProfileCopyPaste", $this->_propDict)) { return $this->_propDict["workProfileBlockCrossProfileCopyPaste"]; } else { return null; } } /** * Sets the workProfileBlockCrossProfileCopyPaste * Boolean that indicates if the setting disallow cross profile copy/paste is enabled. * * @param bool $val The workProfileBlockCrossProfileCopyPaste * * @return AndroidForWorkGeneralDeviceConfiguration */ public function setWorkProfileBlockCrossProfileCopyPaste($val) { $this->_propDict["workProfileBlockCrossProfileCopyPaste"] = boolval($val); return $this; } /** * Gets the workProfileBlockNotificationsWhileDeviceLocked * Indicates whether or not to block notifications while device locked. * * @return bool|null The workProfileBlockNotificationsWhileDeviceLocked */ public function getWorkProfileBlockNotificationsWhileDeviceLocked() { if (array_key_exists("workProfileBlockNotificationsWhileDeviceLocked", $this->_propDict)) { return $this->_propDict["workProfileBlockNotificationsWhileDeviceLocked"]; } else { return null; } } /** * Sets the workProfileBlockNotificationsWhileDeviceLocked * Indicates whether or not to block notifications while device locked. * * @param bool $val The workProfileBlockNotificationsWhileDeviceLocked * * @return AndroidForWorkGeneralDeviceConfiguration */ public function setWorkProfileBlockNotificationsWhileDeviceLocked($val) { $this->_propDict["workProfileBlockNotificationsWhileDeviceLocked"] = boolval($val); return $this; } /** * Gets the workProfileBlockPersonalAppInstallsFromUnknownSources * Prevent app installations from unknown sources in the personal profile. * * @return bool|null The workProfileBlockPersonalAppInstallsFromUnknownSources */ public function getWorkProfileBlockPersonalAppInstallsFromUnknownSources() { if (array_key_exists("workProfileBlockPersonalAppInstallsFromUnknownSources", $this->_propDict)) { return $this->_propDict["workProfileBlockPersonalAppInstallsFromUnknownSources"]; } else { return null; } } /** * Sets the workProfileBlockPersonalAppInstallsFromUnknownSources * Prevent app installations from unknown sources in the personal profile. * * @param bool $val The workProfileBlockPersonalAppInstallsFromUnknownSources * * @return AndroidForWorkGeneralDeviceConfiguration */ public function setWorkProfileBlockPersonalAppInstallsFromUnknownSources($val) { $this->_propDict["workProfileBlockPersonalAppInstallsFromUnknownSources"] = boolval($val); return $this; } /** * Gets the workProfileBlockScreenCapture * Block screen capture in work profile. * * @return bool|null The workProfileBlockScreenCapture */ public function getWorkProfileBlockScreenCapture() { if (array_key_exists("workProfileBlockScreenCapture", $this->_propDict)) { return $this->_propDict["workProfileBlockScreenCapture"]; } else { return null; } } /** * Sets the workProfileBlockScreenCapture * Block screen capture in work profile. * * @param bool $val The workProfileBlockScreenCapture * * @return AndroidForWorkGeneralDeviceConfiguration */ public function setWorkProfileBlockScreenCapture($val) { $this->_propDict["workProfileBlockScreenCapture"] = boolval($val); return $this; } /** * Gets the workProfileBluetoothEnableContactSharing * Allow bluetooth devices to access enterprise contacts. * * @return bool|null The workProfileBluetoothEnableContactSharing */ public function getWorkProfileBluetoothEnableContactSharing() { if (array_key_exists("workProfileBluetoothEnableContactSharing", $this->_propDict)) { return $this->_propDict["workProfileBluetoothEnableContactSharing"]; } else { return null; } } /** * Sets the workProfileBluetoothEnableContactSharing * Allow bluetooth devices to access enterprise contacts. * * @param bool $val The workProfileBluetoothEnableContactSharing * * @return AndroidForWorkGeneralDeviceConfiguration */ public function setWorkProfileBluetoothEnableContactSharing($val) { $this->_propDict["workProfileBluetoothEnableContactSharing"] = boolval($val); return $this; } /** * Gets the workProfileDataSharingType * Type of data sharing that is allowed. Possible values are: deviceDefault, preventAny, allowPersonalToWork, noRestrictions. * * @return AndroidForWorkCrossProfileDataSharingType|null The workProfileDataSharingType */ public function getWorkProfileDataSharingType() { if (array_key_exists("workProfileDataSharingType", $this->_propDict)) { if (is_a($this->_propDict["workProfileDataSharingType"], "\Beta\Microsoft\Graph\Model\AndroidForWorkCrossProfileDataSharingType") || is_null($this->_propDict["workProfileDataSharingType"])) { return $this->_propDict["workProfileDataSharingType"]; } else { $this->_propDict["workProfileDataSharingType"] = new AndroidForWorkCrossProfileDataSharingType($this->_propDict["workProfileDataSharingType"]); return $this->_propDict["workProfileDataSharingType"]; } } return null; } /** * Sets the workProfileDataSharingType * Type of data sharing that is allowed. Possible values are: deviceDefault, preventAny, allowPersonalToWork, noRestrictions. * * @param AndroidForWorkCrossProfileDataSharingType $val The workProfileDataSharingType * * @return AndroidForWorkGeneralDeviceConfiguration */ public function setWorkProfileDataSharingType($val) { $this->_propDict["workProfileDataSharingType"] = $val; return $this; } /** * Gets the workProfileDefaultAppPermissionPolicy * Type of password that is required. Possible values are: deviceDefault, prompt, autoGrant, autoDeny. * * @return AndroidForWorkDefaultAppPermissionPolicyType|null The workProfileDefaultAppPermissionPolicy */ public function getWorkProfileDefaultAppPermissionPolicy() { if (array_key_exists("workProfileDefaultAppPermissionPolicy", $this->_propDict)) { if (is_a($this->_propDict["workProfileDefaultAppPermissionPolicy"], "\Beta\Microsoft\Graph\Model\AndroidForWorkDefaultAppPermissionPolicyType") || is_null($this->_propDict["workProfileDefaultAppPermissionPolicy"])) { return $this->_propDict["workProfileDefaultAppPermissionPolicy"]; } else { $this->_propDict["workProfileDefaultAppPermissionPolicy"] = new AndroidForWorkDefaultAppPermissionPolicyType($this->_propDict["workProfileDefaultAppPermissionPolicy"]); return $this->_propDict["workProfileDefaultAppPermissionPolicy"]; } } return null; } /** * Sets the workProfileDefaultAppPermissionPolicy * Type of password that is required. Possible values are: deviceDefault, prompt, autoGrant, autoDeny. * * @param AndroidForWorkDefaultAppPermissionPolicyType $val The workProfileDefaultAppPermissionPolicy * * @return AndroidForWorkGeneralDeviceConfiguration */ public function setWorkProfileDefaultAppPermissionPolicy($val) { $this->_propDict["workProfileDefaultAppPermissionPolicy"] = $val; return $this; } /** * Gets the workProfilePasswordBlockFaceUnlock * Indicates whether or not to block face unlock for work profile. * * @return bool|null The workProfilePasswordBlockFaceUnlock */ public function getWorkProfilePasswordBlockFaceUnlock() { if (array_key_exists("workProfilePasswordBlockFaceUnlock", $this->_propDict)) { return $this->_propDict["workProfilePasswordBlockFaceUnlock"]; } else { return null; } } /** * Sets the workProfilePasswordBlockFaceUnlock * Indicates whether or not to block face unlock for work profile. * * @param bool $val The workProfilePasswordBlockFaceUnlock * * @return AndroidForWorkGeneralDeviceConfiguration */ public function setWorkProfilePasswordBlockFaceUnlock($val) { $this->_propDict["workProfilePasswordBlockFaceUnlock"] = boolval($val); return $this; } /** * Gets the workProfilePasswordBlockFingerprintUnlock * Indicates whether or not to block fingerprint unlock for work profile. * * @return bool|null The workProfilePasswordBlockFingerprintUnlock */ public function getWorkProfilePasswordBlockFingerprintUnlock() { if (array_key_exists("workProfilePasswordBlockFingerprintUnlock", $this->_propDict)) { return $this->_propDict["workProfilePasswordBlockFingerprintUnlock"]; } else { return null; } } /** * Sets the workProfilePasswordBlockFingerprintUnlock * Indicates whether or not to block fingerprint unlock for work profile. * * @param bool $val The workProfilePasswordBlockFingerprintUnlock * * @return AndroidForWorkGeneralDeviceConfiguration */ public function setWorkProfilePasswordBlockFingerprintUnlock($val) { $this->_propDict["workProfilePasswordBlockFingerprintUnlock"] = boolval($val); return $this; } /** * Gets the workProfilePasswordBlockIrisUnlock * Indicates whether or not to block iris unlock for work profile. * * @return bool|null The workProfilePasswordBlockIrisUnlock */ public function getWorkProfilePasswordBlockIrisUnlock() { if (array_key_exists("workProfilePasswordBlockIrisUnlock", $this->_propDict)) { return $this->_propDict["workProfilePasswordBlockIrisUnlock"]; } else { return null; } } /** * Sets the workProfilePasswordBlockIrisUnlock * Indicates whether or not to block iris unlock for work profile. * * @param bool $val The workProfilePasswordBlockIrisUnlock * * @return AndroidForWorkGeneralDeviceConfiguration */ public function setWorkProfilePasswordBlockIrisUnlock($val) { $this->_propDict["workProfilePasswordBlockIrisUnlock"] = boolval($val); return $this; } /** * Gets the workProfilePasswordBlockTrustAgents * Indicates whether or not to block Smart Lock and other trust agents for work profile. * * @return bool|null The workProfilePasswordBlockTrustAgents */ public function getWorkProfilePasswordBlockTrustAgents() { if (array_key_exists("workProfilePasswordBlockTrustAgents", $this->_propDict)) { return $this->_propDict["workProfilePasswordBlockTrustAgents"]; } else { return null; } } /** * Sets the workProfilePasswordBlockTrustAgents * Indicates whether or not to block Smart Lock and other trust agents for work profile. * * @param bool $val The workProfilePasswordBlockTrustAgents * * @return AndroidForWorkGeneralDeviceConfiguration */ public function setWorkProfilePasswordBlockTrustAgents($val) { $this->_propDict["workProfilePasswordBlockTrustAgents"] = boolval($val); return $this; } /** * Gets the workProfilePasswordExpirationDays * Number of days before the work profile password expires. Valid values 1 to 365 * * @return int|null The workProfilePasswordExpirationDays */ public function getWorkProfilePasswordExpirationDays() { if (array_key_exists("workProfilePasswordExpirationDays", $this->_propDict)) { return $this->_propDict["workProfilePasswordExpirationDays"]; } else { return null; } } /** * Sets the workProfilePasswordExpirationDays * Number of days before the work profile password expires. Valid values 1 to 365 * * @param int $val The workProfilePasswordExpirationDays * * @return AndroidForWorkGeneralDeviceConfiguration */ public function setWorkProfilePasswordExpirationDays($val) { $this->_propDict["workProfilePasswordExpirationDays"] = intval($val); return $this; } /** * Gets the workProfilePasswordMinimumLength * Minimum length of work profile password. Valid values 4 to 16 * * @return int|null The workProfilePasswordMinimumLength */ public function getWorkProfilePasswordMinimumLength() { if (array_key_exists("workProfilePasswordMinimumLength", $this->_propDict)) { return $this->_propDict["workProfilePasswordMinimumLength"]; } else { return null; } } /** * Sets the workProfilePasswordMinimumLength * Minimum length of work profile password. Valid values 4 to 16 * * @param int $val The workProfilePasswordMinimumLength * * @return AndroidForWorkGeneralDeviceConfiguration */ public function setWorkProfilePasswordMinimumLength($val) { $this->_propDict["workProfilePasswordMinimumLength"] = intval($val); return $this; } /** * Gets the workProfilePasswordMinLetterCharacters * Minimum # of letter characters required in work profile password. Valid values 1 to 10 * * @return int|null The workProfilePasswordMinLetterCharacters */ public function getWorkProfilePasswordMinLetterCharacters() { if (array_key_exists("workProfilePasswordMinLetterCharacters", $this->_propDict)) { return $this->_propDict["workProfilePasswordMinLetterCharacters"]; } else { return null; } } /** * Sets the workProfilePasswordMinLetterCharacters * Minimum # of letter characters required in work profile password. Valid values 1 to 10 * * @param int $val The workProfilePasswordMinLetterCharacters * * @return AndroidForWorkGeneralDeviceConfiguration */ public function setWorkProfilePasswordMinLetterCharacters($val) { $this->_propDict["workProfilePasswordMinLetterCharacters"] = intval($val); return $this; } /** * Gets the workProfilePasswordMinLowerCaseCharacters * Minimum # of lower-case characters required in work profile password. Valid values 1 to 10 * * @return int|null The workProfilePasswordMinLowerCaseCharacters */ public function getWorkProfilePasswordMinLowerCaseCharacters() { if (array_key_exists("workProfilePasswordMinLowerCaseCharacters", $this->_propDict)) { return $this->_propDict["workProfilePasswordMinLowerCaseCharacters"]; } else { return null; } } /** * Sets the workProfilePasswordMinLowerCaseCharacters * Minimum # of lower-case characters required in work profile password. Valid values 1 to 10 * * @param int $val The workProfilePasswordMinLowerCaseCharacters * * @return AndroidForWorkGeneralDeviceConfiguration */ public function setWorkProfilePasswordMinLowerCaseCharacters($val) { $this->_propDict["workProfilePasswordMinLowerCaseCharacters"] = intval($val); return $this; } /** * Gets the workProfilePasswordMinNonLetterCharacters * Minimum # of non-letter characters required in work profile password. Valid values 1 to 10 * * @return int|null The workProfilePasswordMinNonLetterCharacters */ public function getWorkProfilePasswordMinNonLetterCharacters() { if (array_key_exists("workProfilePasswordMinNonLetterCharacters", $this->_propDict)) { return $this->_propDict["workProfilePasswordMinNonLetterCharacters"]; } else { return null; } } /** * Sets the workProfilePasswordMinNonLetterCharacters * Minimum # of non-letter characters required in work profile password. Valid values 1 to 10 * * @param int $val The workProfilePasswordMinNonLetterCharacters * * @return AndroidForWorkGeneralDeviceConfiguration */ public function setWorkProfilePasswordMinNonLetterCharacters($val) { $this->_propDict["workProfilePasswordMinNonLetterCharacters"] = intval($val); return $this; } /** * Gets the workProfilePasswordMinNumericCharacters * Minimum # of numeric characters required in work profile password. Valid values 1 to 10 * * @return int|null The workProfilePasswordMinNumericCharacters */ public function getWorkProfilePasswordMinNumericCharacters() { if (array_key_exists("workProfilePasswordMinNumericCharacters", $this->_propDict)) { return $this->_propDict["workProfilePasswordMinNumericCharacters"]; } else { return null; } } /** * Sets the workProfilePasswordMinNumericCharacters * Minimum # of numeric characters required in work profile password. Valid values 1 to 10 * * @param int $val The workProfilePasswordMinNumericCharacters * * @return AndroidForWorkGeneralDeviceConfiguration */ public function setWorkProfilePasswordMinNumericCharacters($val) { $this->_propDict["workProfilePasswordMinNumericCharacters"] = intval($val); return $this; } /** * Gets the workProfilePasswordMinSymbolCharacters * Minimum # of symbols required in work profile password. Valid values 1 to 10 * * @return int|null The workProfilePasswordMinSymbolCharacters */ public function getWorkProfilePasswordMinSymbolCharacters() { if (array_key_exists("workProfilePasswordMinSymbolCharacters", $this->_propDict)) { return $this->_propDict["workProfilePasswordMinSymbolCharacters"]; } else { return null; } } /** * Sets the workProfilePasswordMinSymbolCharacters * Minimum # of symbols required in work profile password. Valid values 1 to 10 * * @param int $val The workProfilePasswordMinSymbolCharacters * * @return AndroidForWorkGeneralDeviceConfiguration */ public function setWorkProfilePasswordMinSymbolCharacters($val) { $this->_propDict["workProfilePasswordMinSymbolCharacters"] = intval($val); return $this; } /** * Gets the workProfilePasswordMinUpperCaseCharacters * Minimum # of upper-case characters required in work profile password. Valid values 1 to 10 * * @return int|null The workProfilePasswordMinUpperCaseCharacters */ public function getWorkProfilePasswordMinUpperCaseCharacters() { if (array_key_exists("workProfilePasswordMinUpperCaseCharacters", $this->_propDict)) { return $this->_propDict["workProfilePasswordMinUpperCaseCharacters"]; } else { return null; } } /** * Sets the workProfilePasswordMinUpperCaseCharacters * Minimum # of upper-case characters required in work profile password. Valid values 1 to 10 * * @param int $val The workProfilePasswordMinUpperCaseCharacters * * @return AndroidForWorkGeneralDeviceConfiguration */ public function setWorkProfilePasswordMinUpperCaseCharacters($val) { $this->_propDict["workProfilePasswordMinUpperCaseCharacters"] = intval($val); return $this; } /** * Gets the workProfilePasswordMinutesOfInactivityBeforeScreenTimeout * Minutes of inactivity before the screen times out. * * @return int|null The workProfilePasswordMinutesOfInactivityBeforeScreenTimeout */ public function getWorkProfilePasswordMinutesOfInactivityBeforeScreenTimeout() { if (array_key_exists("workProfilePasswordMinutesOfInactivityBeforeScreenTimeout", $this->_propDict)) { return $this->_propDict["workProfilePasswordMinutesOfInactivityBeforeScreenTimeout"]; } else { return null; } } /** * Sets the workProfilePasswordMinutesOfInactivityBeforeScreenTimeout * Minutes of inactivity before the screen times out. * * @param int $val The workProfilePasswordMinutesOfInactivityBeforeScreenTimeout * * @return AndroidForWorkGeneralDeviceConfiguration */ public function setWorkProfilePasswordMinutesOfInactivityBeforeScreenTimeout($val) { $this->_propDict["workProfilePasswordMinutesOfInactivityBeforeScreenTimeout"] = intval($val); return $this; } /** * Gets the workProfilePasswordPreviousPasswordBlockCount * Number of previous work profile passwords to block. Valid values 0 to 24 * * @return int|null The workProfilePasswordPreviousPasswordBlockCount */ public function getWorkProfilePasswordPreviousPasswordBlockCount() { if (array_key_exists("workProfilePasswordPreviousPasswordBlockCount", $this->_propDict)) { return $this->_propDict["workProfilePasswordPreviousPasswordBlockCount"]; } else { return null; } } /** * Sets the workProfilePasswordPreviousPasswordBlockCount * Number of previous work profile passwords to block. Valid values 0 to 24 * * @param int $val The workProfilePasswordPreviousPasswordBlockCount * * @return AndroidForWorkGeneralDeviceConfiguration */ public function setWorkProfilePasswordPreviousPasswordBlockCount($val) { $this->_propDict["workProfilePasswordPreviousPasswordBlockCount"] = intval($val); return $this; } /** * Gets the workProfilePasswordRequiredType * Type of work profile password that is required. Possible values are: deviceDefault, lowSecurityBiometric, required, atLeastNumeric, numericComplex, atLeastAlphabetic, atLeastAlphanumeric, alphanumericWithSymbols. * * @return AndroidForWorkRequiredPasswordType|null The workProfilePasswordRequiredType */ public function getWorkProfilePasswordRequiredType() { if (array_key_exists("workProfilePasswordRequiredType", $this->_propDict)) { if (is_a($this->_propDict["workProfilePasswordRequiredType"], "\Beta\Microsoft\Graph\Model\AndroidForWorkRequiredPasswordType") || is_null($this->_propDict["workProfilePasswordRequiredType"])) { return $this->_propDict["workProfilePasswordRequiredType"]; } else { $this->_propDict["workProfilePasswordRequiredType"] = new AndroidForWorkRequiredPasswordType($this->_propDict["workProfilePasswordRequiredType"]); return $this->_propDict["workProfilePasswordRequiredType"]; } } return null; } /** * Sets the workProfilePasswordRequiredType * Type of work profile password that is required. Possible values are: deviceDefault, lowSecurityBiometric, required, atLeastNumeric, numericComplex, atLeastAlphabetic, atLeastAlphanumeric, alphanumericWithSymbols. * * @param AndroidForWorkRequiredPasswordType $val The workProfilePasswordRequiredType * * @return AndroidForWorkGeneralDeviceConfiguration */ public function setWorkProfilePasswordRequiredType($val) { $this->_propDict["workProfilePasswordRequiredType"] = $val; return $this; } /** * Gets the workProfilePasswordSignInFailureCountBeforeFactoryReset * Number of sign in failures allowed before work profile is removed and all corporate data deleted. Valid values 1 to 16 * * @return int|null The workProfilePasswordSignInFailureCountBeforeFactoryReset */ public function getWorkProfilePasswordSignInFailureCountBeforeFactoryReset() { if (array_key_exists("workProfilePasswordSignInFailureCountBeforeFactoryReset", $this->_propDict)) { return $this->_propDict["workProfilePasswordSignInFailureCountBeforeFactoryReset"]; } else { return null; } } /** * Sets the workProfilePasswordSignInFailureCountBeforeFactoryReset * Number of sign in failures allowed before work profile is removed and all corporate data deleted. Valid values 1 to 16 * * @param int $val The workProfilePasswordSignInFailureCountBeforeFactoryReset * * @return AndroidForWorkGeneralDeviceConfiguration */ public function setWorkProfilePasswordSignInFailureCountBeforeFactoryReset($val) { $this->_propDict["workProfilePasswordSignInFailureCountBeforeFactoryReset"] = intval($val); return $this; } /** * Gets the workProfileRequiredPasswordComplexity * Indicates the required work profile password complexity on Android. One of: NONE, LOW, MEDIUM, HIGH. This is a new API targeted to Android 12+. Possible values are: none, low, medium, high. * * @return AndroidRequiredPasswordComplexity|null The workProfileRequiredPasswordComplexity */ public function getWorkProfileRequiredPasswordComplexity() { if (array_key_exists("workProfileRequiredPasswordComplexity", $this->_propDict)) { if (is_a($this->_propDict["workProfileRequiredPasswordComplexity"], "\Beta\Microsoft\Graph\Model\AndroidRequiredPasswordComplexity") || is_null($this->_propDict["workProfileRequiredPasswordComplexity"])) { return $this->_propDict["workProfileRequiredPasswordComplexity"]; } else { $this->_propDict["workProfileRequiredPasswordComplexity"] = new AndroidRequiredPasswordComplexity($this->_propDict["workProfileRequiredPasswordComplexity"]); return $this->_propDict["workProfileRequiredPasswordComplexity"]; } } return null; } /** * Sets the workProfileRequiredPasswordComplexity * Indicates the required work profile password complexity on Android. One of: NONE, LOW, MEDIUM, HIGH. This is a new API targeted to Android 12+. Possible values are: none, low, medium, high. * * @param AndroidRequiredPasswordComplexity $val The workProfileRequiredPasswordComplexity * * @return AndroidForWorkGeneralDeviceConfiguration */ public function setWorkProfileRequiredPasswordComplexity($val) { $this->_propDict["workProfileRequiredPasswordComplexity"] = $val; return $this; } /** * Gets the workProfileRequirePassword * Password is required or not for work profile * * @return bool|null The workProfileRequirePassword */ public function getWorkProfileRequirePassword() { if (array_key_exists("workProfileRequirePassword", $this->_propDict)) { return $this->_propDict["workProfileRequirePassword"]; } else { return null; } } /** * Sets the workProfileRequirePassword * Password is required or not for work profile * * @param bool $val The workProfileRequirePassword * * @return AndroidForWorkGeneralDeviceConfiguration */ public function setWorkProfileRequirePassword($val) { $this->_propDict["workProfileRequirePassword"] = boolval($val); return $this; } }