_propDict)) { return $this->_propDict["catalogId"]; } else { return null; } } /** * Sets the catalogId * Product id corresponding to the usage right. * * @param string $val The catalogId * * @return UsageRight */ public function setCatalogId($val) { $this->_propDict["catalogId"] = $val; return $this; } /** * Gets the serviceIdentifier * Identifier of the service corresponding to the usage right. * * @return string|null The serviceIdentifier */ public function getServiceIdentifier() { if (array_key_exists("serviceIdentifier", $this->_propDict)) { return $this->_propDict["serviceIdentifier"]; } else { return null; } } /** * Sets the serviceIdentifier * Identifier of the service corresponding to the usage right. * * @param string $val The serviceIdentifier * * @return UsageRight */ public function setServiceIdentifier($val) { $this->_propDict["serviceIdentifier"] = $val; return $this; } /** * Gets the state * The state of the usage right. Possible values are: active, inactive, warning, suspended. * * @return UsageRightState|null The state */ public function getState() { if (array_key_exists("state", $this->_propDict)) { if (is_a($this->_propDict["state"], "\Beta\Microsoft\Graph\Model\UsageRightState") || is_null($this->_propDict["state"])) { return $this->_propDict["state"]; } else { $this->_propDict["state"] = new UsageRightState($this->_propDict["state"]); return $this->_propDict["state"]; } } return null; } /** * Sets the state * The state of the usage right. Possible values are: active, inactive, warning, suspended. * * @param UsageRightState $val The state * * @return UsageRight */ public function setState($val) { $this->_propDict["state"] = $val; return $this; } }