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

60 lines
2.6 KiB
PHP

<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* CustomExtensionCallbackConfiguration 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;
/**
* CustomExtensionCallbackConfiguration 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 CustomExtensionCallbackConfiguration extends Entity
{
/**
* Gets the timeoutDuration
* The maximum duration in ISO 8601 format that Azure AD will wait for a resume action for the callout it sent to the logic app. The valid range for custom extensions in lifecycle workflows is five minutes to three hours. The valid range for custom extensions in entitlement management is between 5 minutes and 14 days. For example, PT3H refers to three hours, P3D refers to three days, PT10M refers to ten minutes.
*
* @return \DateInterval|null The timeoutDuration
*/
public function getTimeoutDuration()
{
if (array_key_exists("timeoutDuration", $this->_propDict)) {
if (is_a($this->_propDict["timeoutDuration"], "\DateInterval") || is_null($this->_propDict["timeoutDuration"])) {
return $this->_propDict["timeoutDuration"];
} else {
$this->_propDict["timeoutDuration"] = new \DateInterval($this->_propDict["timeoutDuration"]);
return $this->_propDict["timeoutDuration"];
}
}
return null;
}
/**
* Sets the timeoutDuration
* The maximum duration in ISO 8601 format that Azure AD will wait for a resume action for the callout it sent to the logic app. The valid range for custom extensions in lifecycle workflows is five minutes to three hours. The valid range for custom extensions in entitlement management is between 5 minutes and 14 days. For example, PT3H refers to three hours, P3D refers to three days, PT10M refers to ten minutes.
*
* @param \DateInterval $val The value to assign to the timeoutDuration
*
* @return CustomExtensionCallbackConfiguration The CustomExtensionCallbackConfiguration
*/
public function setTimeoutDuration($val)
{
$this->_propDict["timeoutDuration"] = $val;
return $this;
}
}