Class SensitivityLabelProperties
java.lang.Object
com.azure.resourcemanager.sql.fluent.models.SensitivityLabelProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SensitivityLabelProperties>
public final class SensitivityLabelProperties
extends Object
implements com.azure.json.JsonSerializable<SensitivityLabelProperties>
Properties of a sensitivity label.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of SensitivityLabelProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the columnName property: The column name.static SensitivityLabelPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SensitivityLabelProperties from the JsonReader.Get the informationType property: The information type.Get the informationTypeId property: The information type ID.Get the isDisabled property: Is sensitivity recommendation disabled.labelId()Get the labelId property: The label ID.Get the labelName property: The label name.rank()Get the rank property: The rank property.Get the schemaName property: The schema name.Get the tableName property: The table name.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withInformationType(String informationType) Set the informationType property: The information type.withInformationTypeId(String informationTypeId) Set the informationTypeId property: The information type ID.withLabelId(String labelId) Set the labelId property: The label ID.withLabelName(String labelName) Set the labelName property: The label name.withRank(SensitivityLabelRank rank) Set the rank property: The rank property.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
-
SensitivityLabelProperties
public SensitivityLabelProperties()Creates an instance of SensitivityLabelProperties class.
-
-
Method Details
-
schemaName
Get the schemaName property: The schema name.- Returns:
- the schemaName value.
-
tableName
-
columnName
Get the columnName property: The column name.- Returns:
- the columnName value.
-
labelName
-
withLabelName
Set the labelName property: The label name.- Parameters:
labelName- the labelName value to set.- Returns:
- the SensitivityLabelProperties object itself.
-
labelId
-
withLabelId
Set the labelId property: The label ID.- Parameters:
labelId- the labelId value to set.- Returns:
- the SensitivityLabelProperties object itself.
-
informationType
Get the informationType property: The information type.- Returns:
- the informationType value.
-
withInformationType
Set the informationType property: The information type.- Parameters:
informationType- the informationType value to set.- Returns:
- the SensitivityLabelProperties object itself.
-
informationTypeId
Get the informationTypeId property: The information type ID.- Returns:
- the informationTypeId value.
-
withInformationTypeId
Set the informationTypeId property: The information type ID.- Parameters:
informationTypeId- the informationTypeId value to set.- Returns:
- the SensitivityLabelProperties object itself.
-
isDisabled
Get the isDisabled property: Is sensitivity recommendation disabled. Applicable for recommended sensitivity label only. Specifies whether the sensitivity recommendation on this column is disabled (dismissed) or not.- Returns:
- the isDisabled value.
-
rank
Get the rank property: The rank property.- Returns:
- the rank value.
-
withRank
Set the rank property: The rank property.- Parameters:
rank- the rank value to set.- Returns:
- the SensitivityLabelProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SensitivityLabelProperties>- Throws:
IOException
-
fromJson
public static SensitivityLabelProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of SensitivityLabelProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SensitivityLabelProperties 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 SensitivityLabelProperties.
-