_propDict)) { if (is_a($this->_propDict["assignmentMethod"], "\Microsoft\Graph\Model\SensitivityLabelAssignmentMethod") || is_null($this->_propDict["assignmentMethod"])) { return $this->_propDict["assignmentMethod"]; } else { $this->_propDict["assignmentMethod"] = new SensitivityLabelAssignmentMethod($this->_propDict["assignmentMethod"]); return $this->_propDict["assignmentMethod"]; } } return null; } /** * Sets the assignmentMethod * Indicates whether the label assignment is done automatically, as a standard, or a privileged operation. The possible values are: standard, privileged, auto, unknownFutureValue. * * @param SensitivityLabelAssignmentMethod $val The value to assign to the assignmentMethod * * @return SensitivityLabelAssignment The SensitivityLabelAssignment */ public function setAssignmentMethod($val) { $this->_propDict["assignmentMethod"] = $val; return $this; } /** * Gets the sensitivityLabelId * The unique identifier for the sensitivity label assigned to the file. * * @return string|null The sensitivityLabelId */ public function getSensitivityLabelId() { if (array_key_exists("sensitivityLabelId", $this->_propDict)) { return $this->_propDict["sensitivityLabelId"]; } else { return null; } } /** * Sets the sensitivityLabelId * The unique identifier for the sensitivity label assigned to the file. * * @param string $val The value of the sensitivityLabelId * * @return SensitivityLabelAssignment */ public function setSensitivityLabelId($val) { $this->_propDict["sensitivityLabelId"] = $val; return $this; } /** * Gets the tenantId * The unique identifier for the tenant that hosts the file when this label is applied. * * @return string|null The tenantId */ public function getTenantId() { if (array_key_exists("tenantId", $this->_propDict)) { return $this->_propDict["tenantId"]; } else { return null; } } /** * Sets the tenantId * The unique identifier for the tenant that hosts the file when this label is applied. * * @param string $val The value of the tenantId * * @return SensitivityLabelAssignment */ public function setTenantId($val) { $this->_propDict["tenantId"] = $val; return $this; } }