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 Summary
ConstructorsConstructorDescriptionCreates an instance of SharePointSensitivityLabelInfo class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SharePointSensitivityLabelInfo from the JsonReader.getColor()Get the color property: The color that the UI should display for the label, if configured.Get the displayName property: The display name for the sensitivity label.Get the priority property: The priority in which the sensitivity label is applied.Get the sensitivityLabelId property: The ID of the sensitivity label.Get the tooltip property: The tooltip that should be displayed for the label in a UI.Get the isEncrypted property: Indicates whether the sensitivity label enforces encryption.Set the color property: The color that the UI should display for the label, if configured.setDisplayName(String displayName) Set the displayName property: The display name for the sensitivity label.setIsEncrypted(Boolean isEncrypted) Set the isEncrypted property: Indicates whether the sensitivity label enforces encryption.setPriority(Integer priority) Set the priority property: The priority in which the sensitivity label is applied.setSensitivityLabelId(String sensitivityLabelId) Set the sensitivityLabelId property: The ID of the sensitivity label.setTooltip(String tooltip) Set the tooltip property: The tooltip that should be displayed for the label in a UI.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
SharePointSensitivityLabelInfo
public SharePointSensitivityLabelInfo()Creates an instance of SharePointSensitivityLabelInfo class.
-
-
Method Details
-
getDisplayName
Get the displayName property: The display name for the sensitivity label.- Returns:
- the displayName value.
-
setDisplayName
Set the displayName property: The display name for the sensitivity label.- Parameters:
displayName- the displayName value to set.- Returns:
- the SharePointSensitivityLabelInfo object itself.
-
getSensitivityLabelId
Get the sensitivityLabelId property: The ID of the sensitivity label.- Returns:
- the sensitivityLabelId value.
-
setSensitivityLabelId
Set the sensitivityLabelId property: The ID of the sensitivity label.- Parameters:
sensitivityLabelId- the sensitivityLabelId value to set.- Returns:
- the SharePointSensitivityLabelInfo object itself.
-
getTooltip
Get the tooltip property: The tooltip that should be displayed for the label in a UI.- Returns:
- the tooltip value.
-
setTooltip
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
Get the priority property: The priority in which the sensitivity label is applied.- Returns:
- the priority value.
-
setPriority
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
Get the color property: The color that the UI should display for the label, if configured.- Returns:
- the color value.
-
setColor
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
Get the isEncrypted property: Indicates whether the sensitivity label enforces encryption.- Returns:
- the isEncrypted value.
-
setIsEncrypted
Set the isEncrypted property: Indicates whether the sensitivity label enforces encryption.- Parameters:
isEncrypted- the isEncrypted value to set.- Returns:
- the SharePointSensitivityLabelInfo object itself.
-
toJson
- Specified by:
toJsonin interfacecom.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.
-