<?php
/**
* Copyright (c) Microsoft Corporation.  All Rights Reserved.  Licensed under the MIT License.  See License in the project root for license information.
* 
* EntitlementManagementSettings 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;

/**
* EntitlementManagementSettings 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 EntitlementManagementSettings extends Entity
{
    /**
    * Gets the daysUntilExternalUserDeletedAfterBlocked
    * If externalUserLifecycleAction is BlockSignInAndDelete, the number of days after an external user is blocked from sign in before their account is deleted.
    *
    * @return int|null The daysUntilExternalUserDeletedAfterBlocked
    */
    public function getDaysUntilExternalUserDeletedAfterBlocked()
    {
        if (array_key_exists("daysUntilExternalUserDeletedAfterBlocked", $this->_propDict)) {
            return $this->_propDict["daysUntilExternalUserDeletedAfterBlocked"];
        } else {
            return null;
        }
    }

    /**
    * Sets the daysUntilExternalUserDeletedAfterBlocked
    * If externalUserLifecycleAction is BlockSignInAndDelete, the number of days after an external user is blocked from sign in before their account is deleted.
    *
    * @param int $val The daysUntilExternalUserDeletedAfterBlocked
    *
    * @return EntitlementManagementSettings
    */
    public function setDaysUntilExternalUserDeletedAfterBlocked($val)
    {
        $this->_propDict["daysUntilExternalUserDeletedAfterBlocked"] = intval($val);
        return $this;
    }

    /**
    * Gets the externalUserLifecycleAction
    * Automatic action that the service should take when an external user's last access package assignment is removed. The possible values are: none, blockSignIn, blockSignInAndDelete, unknownFutureValue.
    *
    * @return string|null The externalUserLifecycleAction
    */
    public function getExternalUserLifecycleAction()
    {
        if (array_key_exists("externalUserLifecycleAction", $this->_propDict)) {
            return $this->_propDict["externalUserLifecycleAction"];
        } else {
            return null;
        }
    }

    /**
    * Sets the externalUserLifecycleAction
    * Automatic action that the service should take when an external user's last access package assignment is removed. The possible values are: none, blockSignIn, blockSignInAndDelete, unknownFutureValue.
    *
    * @param string $val The externalUserLifecycleAction
    *
    * @return EntitlementManagementSettings
    */
    public function setExternalUserLifecycleAction($val)
    {
        $this->_propDict["externalUserLifecycleAction"] = $val;
        return $this;
    }

}
