ruạṛ
<?php /** * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. * * UnifiedRoleAssignmentScheduleInstance 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 Microsoft\Graph\Model; /** * UnifiedRoleAssignmentScheduleInstance 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 UnifiedRoleAssignmentScheduleInstance extends UnifiedRoleScheduleInstanceBase { /** * Gets the assignmentType * Type of the assignment which can either be Assigned or Activated. Supports $filter (eq, ne). * * @return string|null The assignmentType */ public function getAssignmentType() { if (array_key_exists("assignmentType", $this->_propDict)) { return $this->_propDict["assignmentType"]; } else { return null; } } /** * Sets the assignmentType * Type of the assignment which can either be Assigned or Activated. Supports $filter (eq, ne). * * @param string $val The assignmentType * * @return UnifiedRoleAssignmentScheduleInstance */ public function setAssignmentType($val) { $this->_propDict["assignmentType"] = $val; return $this; } /** * Gets the endDateTime * The end date of the schedule instance. * * @return \DateTime|null The endDateTime */ public function getEndDateTime() { if (array_key_exists("endDateTime", $this->_propDict)) { if (is_a($this->_propDict["endDateTime"], "\DateTime") || is_null($this->_propDict["endDateTime"])) { return $this->_propDict["endDateTime"]; } else { $this->_propDict["endDateTime"] = new \DateTime($this->_propDict["endDateTime"]); return $this->_propDict["endDateTime"]; } } return null; } /** * Sets the endDateTime * The end date of the schedule instance. * * @param \DateTime $val The endDateTime * * @return UnifiedRoleAssignmentScheduleInstance */ public function setEndDateTime($val) { $this->_propDict["endDateTime"] = $val; return $this; } /** * Gets the memberType * How the assignments is inherited. It can either be Inherited, Direct, or Group. It can further imply whether the unifiedRoleAssignmentSchedule can be managed by the caller. Supports $filter (eq, ne). * * @return string|null The memberType */ public function getMemberType() { if (array_key_exists("memberType", $this->_propDict)) { return $this->_propDict["memberType"]; } else { return null; } } /** * Sets the memberType * How the assignments is inherited. It can either be Inherited, Direct, or Group. It can further imply whether the unifiedRoleAssignmentSchedule can be managed by the caller. Supports $filter (eq, ne). * * @param string $val The memberType * * @return UnifiedRoleAssignmentScheduleInstance */ public function setMemberType($val) { $this->_propDict["memberType"] = $val; return $this; } /** * Gets the roleAssignmentOriginId * The identifier of the role assignment in Microsoft Entra. Supports $filter (eq, ne). * * @return string|null The roleAssignmentOriginId */ public function getRoleAssignmentOriginId() { if (array_key_exists("roleAssignmentOriginId", $this->_propDict)) { return $this->_propDict["roleAssignmentOriginId"]; } else { return null; } } /** * Sets the roleAssignmentOriginId * The identifier of the role assignment in Microsoft Entra. Supports $filter (eq, ne). * * @param string $val The roleAssignmentOriginId * * @return UnifiedRoleAssignmentScheduleInstance */ public function setRoleAssignmentOriginId($val) { $this->_propDict["roleAssignmentOriginId"] = $val; return $this; } /** * Gets the roleAssignmentScheduleId * The identifier of the unifiedRoleAssignmentSchedule object from which this instance was created. Supports $filter (eq, ne). * * @return string|null The roleAssignmentScheduleId */ public function getRoleAssignmentScheduleId() { if (array_key_exists("roleAssignmentScheduleId", $this->_propDict)) { return $this->_propDict["roleAssignmentScheduleId"]; } else { return null; } } /** * Sets the roleAssignmentScheduleId * The identifier of the unifiedRoleAssignmentSchedule object from which this instance was created. Supports $filter (eq, ne). * * @param string $val The roleAssignmentScheduleId * * @return UnifiedRoleAssignmentScheduleInstance */ public function setRoleAssignmentScheduleId($val) { $this->_propDict["roleAssignmentScheduleId"] = $val; return $this; } /** * Gets the startDateTime * When this instance starts. * * @return \DateTime|null The startDateTime */ public function getStartDateTime() { if (array_key_exists("startDateTime", $this->_propDict)) { if (is_a($this->_propDict["startDateTime"], "\DateTime") || is_null($this->_propDict["startDateTime"])) { return $this->_propDict["startDateTime"]; } else { $this->_propDict["startDateTime"] = new \DateTime($this->_propDict["startDateTime"]); return $this->_propDict["startDateTime"]; } } return null; } /** * Sets the startDateTime * When this instance starts. * * @param \DateTime $val The startDateTime * * @return UnifiedRoleAssignmentScheduleInstance */ public function setStartDateTime($val) { $this->_propDict["startDateTime"] = $val; return $this; } /** * Gets the activatedUsing * If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand. * * @return UnifiedRoleEligibilityScheduleInstance|null The activatedUsing */ public function getActivatedUsing() { if (array_key_exists("activatedUsing", $this->_propDict)) { if (is_a($this->_propDict["activatedUsing"], "\Microsoft\Graph\Model\UnifiedRoleEligibilityScheduleInstance") || is_null($this->_propDict["activatedUsing"])) { return $this->_propDict["activatedUsing"]; } else { $this->_propDict["activatedUsing"] = new UnifiedRoleEligibilityScheduleInstance($this->_propDict["activatedUsing"]); return $this->_propDict["activatedUsing"]; } } return null; } /** * Sets the activatedUsing * If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it is null. Supports $expand. * * @param UnifiedRoleEligibilityScheduleInstance $val The activatedUsing * * @return UnifiedRoleAssignmentScheduleInstance */ public function setActivatedUsing($val) { $this->_propDict["activatedUsing"] = $val; return $this; } }
cải xoăn