_propDict)) { return $this->_propDict["deviceId"]; } else { return null; } } /** * Sets the deviceId * * @param string $val The value of the deviceId * * @return DeviceKey */ public function setDeviceId($val) { $this->_propDict["deviceId"] = $val; return $this; } /** * Gets the keyMaterial * * @return \GuzzleHttp\Psr7\Stream|null The keyMaterial */ public function getKeyMaterial() { if (array_key_exists("keyMaterial", $this->_propDict)) { if (is_a($this->_propDict["keyMaterial"], "\GuzzleHttp\Psr7\Stream") || is_null($this->_propDict["keyMaterial"])) { return $this->_propDict["keyMaterial"]; } else { $this->_propDict["keyMaterial"] = \GuzzleHttp\Psr7\Utils::streamFor($this->_propDict["keyMaterial"]); return $this->_propDict["keyMaterial"]; } } return null; } /** * Sets the keyMaterial * * @param \GuzzleHttp\Psr7\Stream $val The value to assign to the keyMaterial * * @return DeviceKey The DeviceKey */ public function setKeyMaterial($val) { $this->_propDict["keyMaterial"] = $val; return $this; } /** * Gets the keyType * * @return string|null The keyType */ public function getKeyType() { if (array_key_exists("keyType", $this->_propDict)) { return $this->_propDict["keyType"]; } else { return null; } } /** * Sets the keyType * * @param string $val The value of the keyType * * @return DeviceKey */ public function setKeyType($val) { $this->_propDict["keyType"] = $val; return $this; } }