_propDict)) { if (is_a($this->_propDict["membershipKind"], "\Microsoft\Graph\Model\ConditionalAccessExternalTenantsMembershipKind") || is_null($this->_propDict["membershipKind"])) { return $this->_propDict["membershipKind"]; } else { $this->_propDict["membershipKind"] = new ConditionalAccessExternalTenantsMembershipKind($this->_propDict["membershipKind"]); return $this->_propDict["membershipKind"]; } } return null; } /** * Sets the membershipKind * The membership kind. Possible values are: all, enumerated, unknownFutureValue. The enumerated member references an conditionalAccessEnumeratedExternalTenants object. * * @param ConditionalAccessExternalTenantsMembershipKind $val The value to assign to the membershipKind * * @return ConditionalAccessExternalTenants The ConditionalAccessExternalTenants */ public function setMembershipKind($val) { $this->_propDict["membershipKind"] = $val; return $this; } }