_propDict)) { if (is_a($this->_propDict["accessType"], "\Beta\Microsoft\Graph\ExternalConnectors\Model\AccessType") || is_null($this->_propDict["accessType"])) { return $this->_propDict["accessType"]; } else { $this->_propDict["accessType"] = new AccessType($this->_propDict["accessType"]); return $this->_propDict["accessType"]; } } return null; } /** * Sets the accessType * The access granted to the identity. Possible values are: grant, deny. * * @param AccessType $val The value to assign to the accessType * * @return Acl The Acl */ public function setAccessType($val) { $this->_propDict["accessType"] = $val; return $this; } /** * Gets the identitySource * The source of identity. Possible values are azureActiveDirectory or external. * * @return IdentitySourceType|null The identitySource */ public function getIdentitySource() { if (array_key_exists("identitySource", $this->_propDict)) { if (is_a($this->_propDict["identitySource"], "\Beta\Microsoft\Graph\ExternalConnectors\Model\IdentitySourceType") || is_null($this->_propDict["identitySource"])) { return $this->_propDict["identitySource"]; } else { $this->_propDict["identitySource"] = new IdentitySourceType($this->_propDict["identitySource"]); return $this->_propDict["identitySource"]; } } return null; } /** * Sets the identitySource * The source of identity. Possible values are azureActiveDirectory or external. * * @param IdentitySourceType $val The value to assign to the identitySource * * @return Acl The Acl */ public function setIdentitySource($val) { $this->_propDict["identitySource"] = $val; return $this; } /** * Gets the type * The type of identity. Possible values are: user, group, everyone, everyoneExceptGuests if the identitySource is azureActiveDirectory and just group if the identitySource is external. * * @return AclType|null The type */ public function getType() { if (array_key_exists("type", $this->_propDict)) { if (is_a($this->_propDict["type"], "\Beta\Microsoft\Graph\ExternalConnectors\Model\AclType") || is_null($this->_propDict["type"])) { return $this->_propDict["type"]; } else { $this->_propDict["type"] = new AclType($this->_propDict["type"]); return $this->_propDict["type"]; } } return null; } /** * Sets the type * The type of identity. Possible values are: user, group, everyone, everyoneExceptGuests if the identitySource is azureActiveDirectory and just group if the identitySource is external. * * @param AclType $val The value to assign to the type * * @return Acl The Acl */ public function setType($val) { $this->_propDict["type"] = $val; return $this; } /** * Gets the value * The unique identifer of the identity. For Microsoft Entra identities, value is set to the object identifier of the user, group or tenant for types user, group and everyone (and everyoneExceptGuests) respectively. For external groups, value is set to the ID of the externalGroup. * * @return string|null The value */ public function getValue() { if (array_key_exists("value", $this->_propDict)) { return $this->_propDict["value"]; } else { return null; } } /** * Sets the value * The unique identifer of the identity. For Microsoft Entra identities, value is set to the object identifier of the user, group or tenant for types user, group and everyone (and everyoneExceptGuests) respectively. For external groups, value is set to the ID of the externalGroup. * * @param string $val The value of the value * * @return Acl */ public function setValue($val) { $this->_propDict["value"] = $val; return $this; } }