_propDict)) { if (is_a($this->_propDict["defaultItem"], "\Beta\Microsoft\Graph\Model\GroupPolicyPresentationDropdownListItem") || is_null($this->_propDict["defaultItem"])) { return $this->_propDict["defaultItem"]; } else { $this->_propDict["defaultItem"] = new GroupPolicyPresentationDropdownListItem($this->_propDict["defaultItem"]); return $this->_propDict["defaultItem"]; } } return null; } /** * Sets the defaultItem * Localized string value identifying the default choice of the list of items. * * @param GroupPolicyPresentationDropdownListItem $val The defaultItem * * @return GroupPolicyPresentationDropdownList */ public function setDefaultItem($val) { $this->_propDict["defaultItem"] = $val; return $this; } /** * Gets the items * Represents a set of localized display names and their associated values. * * @return array|null The items */ public function getItems() { if (array_key_exists("items", $this->_propDict)) { return $this->_propDict["items"]; } else { return null; } } /** * Sets the items * Represents a set of localized display names and their associated values. * * @param GroupPolicyPresentationDropdownListItem[] $val The items * * @return GroupPolicyPresentationDropdownList */ public function setItems($val) { $this->_propDict["items"] = $val; return $this; } /** * Gets the required * Requirement to enter a value in the parameter box. The default value is false. * * @return bool|null The required */ public function getRequired() { if (array_key_exists("required", $this->_propDict)) { return $this->_propDict["required"]; } else { return null; } } /** * Sets the required * Requirement to enter a value in the parameter box. The default value is false. * * @param bool $val The required * * @return GroupPolicyPresentationDropdownList */ public function setRequired($val) { $this->_propDict["required"] = boolval($val); return $this; } }