_propDict)) { if (is_a($this->_propDict["desiredRole"], "\Beta\Microsoft\Graph\Model\MultiTenantOrganizationMemberRole") || is_null($this->_propDict["desiredRole"])) { return $this->_propDict["desiredRole"]; } else { $this->_propDict["desiredRole"] = new MultiTenantOrganizationMemberRole($this->_propDict["desiredRole"]); return $this->_propDict["desiredRole"]; } } return null; } /** * Sets the desiredRole * Role of the tenant in the multitenant organization. The possible values are: owner, member, unknownFutureValue. * * @param MultiTenantOrganizationMemberRole $val The value to assign to the desiredRole * * @return MultiTenantOrganizationMemberTransitionDetails The MultiTenantOrganizationMemberTransitionDetails */ public function setDesiredRole($val) { $this->_propDict["desiredRole"] = $val; return $this; } /** * Gets the desiredState * State of the tenant in the multitenant organization currently being processed. The possible values are: pending, active, removed, unknownFutureValue. Read-only. * * @return MultiTenantOrganizationMemberState|null The desiredState */ public function getDesiredState() { if (array_key_exists("desiredState", $this->_propDict)) { if (is_a($this->_propDict["desiredState"], "\Beta\Microsoft\Graph\Model\MultiTenantOrganizationMemberState") || is_null($this->_propDict["desiredState"])) { return $this->_propDict["desiredState"]; } else { $this->_propDict["desiredState"] = new MultiTenantOrganizationMemberState($this->_propDict["desiredState"]); return $this->_propDict["desiredState"]; } } return null; } /** * Sets the desiredState * State of the tenant in the multitenant organization currently being processed. The possible values are: pending, active, removed, unknownFutureValue. Read-only. * * @param MultiTenantOrganizationMemberState $val The value to assign to the desiredState * * @return MultiTenantOrganizationMemberTransitionDetails The MultiTenantOrganizationMemberTransitionDetails */ public function setDesiredState($val) { $this->_propDict["desiredState"] = $val; return $this; } /** * Gets the details * Details that explain the processing status if any. Read-only. * * @return string|null The details */ public function getDetails() { if (array_key_exists("details", $this->_propDict)) { return $this->_propDict["details"]; } else { return null; } } /** * Sets the details * Details that explain the processing status if any. Read-only. * * @param string $val The value of the details * * @return MultiTenantOrganizationMemberTransitionDetails */ public function setDetails($val) { $this->_propDict["details"] = $val; return $this; } /** * Gets the status * Processing state of the asynchronous job. The possible values are: notStarted, running, succeeded, failed, unknownFutureValue. Read-only. * * @return MultiTenantOrganizationMemberProcessingStatus|null The status */ public function getStatus() { if (array_key_exists("status", $this->_propDict)) { if (is_a($this->_propDict["status"], "\Beta\Microsoft\Graph\Model\MultiTenantOrganizationMemberProcessingStatus") || is_null($this->_propDict["status"])) { return $this->_propDict["status"]; } else { $this->_propDict["status"] = new MultiTenantOrganizationMemberProcessingStatus($this->_propDict["status"]); return $this->_propDict["status"]; } } return null; } /** * Sets the status * Processing state of the asynchronous job. The possible values are: notStarted, running, succeeded, failed, unknownFutureValue. Read-only. * * @param MultiTenantOrganizationMemberProcessingStatus $val The value to assign to the status * * @return MultiTenantOrganizationMemberTransitionDetails The MultiTenantOrganizationMemberTransitionDetails */ public function setStatus($val) { $this->_propDict["status"] = $val; return $this; } }