Class SharePointSensitivityLabelInfo

java.lang.Object
com.azure.search.documents.knowledgebases.models.SharePointSensitivityLabelInfo
All Implemented Interfaces:
com.azure.json.JsonSerializable<SharePointSensitivityLabelInfo>

public final class SharePointSensitivityLabelInfo extends Object implements com.azure.json.JsonSerializable<SharePointSensitivityLabelInfo>
Information about the sensitivity label applied to a SharePoint document.
  • Constructor Details

    • SharePointSensitivityLabelInfo

      public SharePointSensitivityLabelInfo()
      Creates an instance of SharePointSensitivityLabelInfo class.
  • Method Details

    • getDisplayName

      public String getDisplayName()
      Get the displayName property: The display name for the sensitivity label.
      Returns:
      the displayName value.
    • setDisplayName

      public SharePointSensitivityLabelInfo setDisplayName(String displayName)
      Set the displayName property: The display name for the sensitivity label.
      Parameters:
      displayName - the displayName value to set.
      Returns:
      the SharePointSensitivityLabelInfo object itself.
    • getSensitivityLabelId

      public String getSensitivityLabelId()
      Get the sensitivityLabelId property: The ID of the sensitivity label.
      Returns:
      the sensitivityLabelId value.
    • setSensitivityLabelId

      public SharePointSensitivityLabelInfo setSensitivityLabelId(String sensitivityLabelId)
      Set the sensitivityLabelId property: The ID of the sensitivity label.
      Parameters:
      sensitivityLabelId - the sensitivityLabelId value to set.
      Returns:
      the SharePointSensitivityLabelInfo object itself.
    • getTooltip

      public String getTooltip()
      Get the tooltip property: The tooltip that should be displayed for the label in a UI.
      Returns:
      the tooltip value.
    • setTooltip

      public SharePointSensitivityLabelInfo setTooltip(String tooltip)
      Set the tooltip property: The tooltip that should be displayed for the label in a UI.
      Parameters:
      tooltip - the tooltip value to set.
      Returns:
      the SharePointSensitivityLabelInfo object itself.
    • getPriority

      public Integer getPriority()
      Get the priority property: The priority in which the sensitivity label is applied.
      Returns:
      the priority value.
    • setPriority

      public SharePointSensitivityLabelInfo setPriority(Integer priority)
      Set the priority property: The priority in which the sensitivity label is applied.
      Parameters:
      priority - the priority value to set.
      Returns:
      the SharePointSensitivityLabelInfo object itself.
    • getColor

      public String getColor()
      Get the color property: The color that the UI should display for the label, if configured.
      Returns:
      the color value.
    • setColor

      public SharePointSensitivityLabelInfo setColor(String color)
      Set the color property: The color that the UI should display for the label, if configured.
      Parameters:
      color - the color value to set.
      Returns:
      the SharePointSensitivityLabelInfo object itself.
    • isEncrypted

      public Boolean isEncrypted()
      Get the isEncrypted property: Indicates whether the sensitivity label enforces encryption.
      Returns:
      the isEncrypted value.
    • setIsEncrypted

      public SharePointSensitivityLabelInfo setIsEncrypted(Boolean isEncrypted)
      Set the isEncrypted property: Indicates whether the sensitivity label enforces encryption.
      Parameters:
      isEncrypted - the isEncrypted value to set.
      Returns:
      the SharePointSensitivityLabelInfo object itself.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<SharePointSensitivityLabelInfo>
      Throws:
      IOException
    • fromJson

      public static SharePointSensitivityLabelInfo fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of SharePointSensitivityLabelInfo from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of SharePointSensitivityLabelInfo if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the SharePointSensitivityLabelInfo.