PurviewSensitivityLabelInfo Class

  • java.lang.Object
    • com.azure.search.documents.knowledgebases.models.PurviewSensitivityLabelInfo

Implements

public final class PurviewSensitivityLabelInfo
implements JsonSerializable<PurviewSensitivityLabelInfo>

Information about the sensitivity label applied to a document.

Method Summary

Modifier and Type Method and Description
static PurviewSensitivityLabelInfo fromJson(JsonReader jsonReader)

Reads an instance of PurviewSensitivityLabelInfo from the JsonReader.

String getColor()

Get the color property: The color that the UI should display for the label, if configured.

String getDisplayName()

Get the displayName property: The display name for the sensitivity label.

Integer getPriority()

Get the priority property: The priority in which the sensitivity label is applied.

String getSensitivityLabelId()

Get the sensitivityLabelId property: The ID of the sensitivity label.

String getToolTip()

Get the toolTip property: The tooltip that should be displayed for the label in a UI.

Boolean isEncrypted()

Get the isEncrypted property: Indicates whether the sensitivity label enforces encryption.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static PurviewSensitivityLabelInfo fromJson(JsonReader jsonReader)

Reads an instance of PurviewSensitivityLabelInfo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of PurviewSensitivityLabelInfo 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 PurviewSensitivityLabelInfo.

getColor

public String getColor()

Get the color property: The color that the UI should display for the label, if configured.

Returns:

the color value.

getDisplayName

public String getDisplayName()

Get the displayName property: The display name for the sensitivity label.

Returns:

the displayName value.

getPriority

public Integer getPriority()

Get the priority property: The priority in which the sensitivity label is applied.

Returns:

the priority value.

getSensitivityLabelId

public String getSensitivityLabelId()

Get the sensitivityLabelId property: The ID of the sensitivity label.

Returns:

the sensitivityLabelId value.

getToolTip

public String getToolTip()

Get the toolTip property: The tooltip that should be displayed for the label in a UI.

Returns:

the toolTip value.

isEncrypted

public Boolean isEncrypted()

Get the isEncrypted property: Indicates whether the sensitivity label enforces encryption.

Returns:

the isEncrypted value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to