_propDict)) { return $this->_propDict["description"]; } else { return null; } } /** * Sets the description * Description. * * @param string $val The description * * @return Profile */ public function setDescription($val) { $this->_propDict["description"] = $val; return $this; } /** * Gets the lastModifiedDateTime * Profile last modified time. * * @return \DateTime|null The lastModifiedDateTime */ public function getLastModifiedDateTime() { if (array_key_exists("lastModifiedDateTime", $this->_propDict)) { if (is_a($this->_propDict["lastModifiedDateTime"], "\DateTime") || is_null($this->_propDict["lastModifiedDateTime"])) { return $this->_propDict["lastModifiedDateTime"]; } else { $this->_propDict["lastModifiedDateTime"] = new \DateTime($this->_propDict["lastModifiedDateTime"]); return $this->_propDict["lastModifiedDateTime"]; } } return null; } /** * Sets the lastModifiedDateTime * Profile last modified time. * * @param \DateTime $val The lastModifiedDateTime * * @return Profile */ public function setLastModifiedDateTime($val) { $this->_propDict["lastModifiedDateTime"] = $val; return $this; } /** * Gets the name * Profile name. * * @return string|null The name */ public function getName() { if (array_key_exists("name", $this->_propDict)) { return $this->_propDict["name"]; } else { return null; } } /** * Sets the name * Profile name. * * @param string $val The name * * @return Profile */ public function setName($val) { $this->_propDict["name"] = $val; return $this; } /** * Gets the state * Profile state. The possible values are: enabled, disabled. * * @return Status|null The state */ public function getState() { if (array_key_exists("state", $this->_propDict)) { if (is_a($this->_propDict["state"], "\Beta\Microsoft\Graph\Networkaccess\Model\Status") || is_null($this->_propDict["state"])) { return $this->_propDict["state"]; } else { $this->_propDict["state"] = new Status($this->_propDict["state"]); return $this->_propDict["state"]; } } return null; } /** * Sets the state * Profile state. The possible values are: enabled, disabled. * * @param Status $val The state * * @return Profile */ public function setState($val) { $this->_propDict["state"] = $val; return $this; } /** * Gets the version * Profile version. * * @return string|null The version */ public function getVersion() { if (array_key_exists("version", $this->_propDict)) { return $this->_propDict["version"]; } else { return null; } } /** * Sets the version * Profile version. * * @param string $val The version * * @return Profile */ public function setVersion($val) { $this->_propDict["version"] = $val; return $this; } /** * Gets the policies * Traffic forwarding policies associated with this profile. * * @return array|null The policies */ public function getPolicies() { if (array_key_exists("policies", $this->_propDict)) { return $this->_propDict["policies"]; } else { return null; } } /** * Sets the policies * Traffic forwarding policies associated with this profile. * * @param PolicyLink[] $val The policies * * @return Profile */ public function setPolicies($val) { $this->_propDict["policies"] = $val; return $this; } }