SensitivityLabel Class
- java.
lang. Object - com.
azure. resourcemanager. security. models. SensitivityLabel
- com.
Implements
public final class SensitivityLabel
implements JsonSerializable<SensitivityLabel>
The sensitivity label.
Constructor Summary
| Constructor | Description |
|---|---|
| SensitivityLabel() |
Creates an instance of Sensitivity |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
description()
Get the description property: The description of the sensitivity label. |
| String |
displayName()
Get the display |
| Boolean |
enabled()
Get the enabled property: Indicates whether the label is enabled or not. |
|
static
Sensitivity |
fromJson(JsonReader jsonReader)
Reads an instance of Sensitivity |
| Integer |
order()
Get the order property: The order of the sensitivity label. |
| Rank |
rank()
Get the rank property: The rank of the sensitivity label. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Sensitivity |
withDescription(String description)
Set the description property: The description of the sensitivity label. |
|
Sensitivity |
withDisplayName(String displayName)
Set the display |
|
Sensitivity |
withEnabled(Boolean enabled)
Set the enabled property: Indicates whether the label is enabled or not. |
|
Sensitivity |
withOrder(Integer order)
Set the order property: The order of the sensitivity label. |
|
Sensitivity |
withRank(Rank rank)
Set the rank property: The rank of the sensitivity label. |
Methods inherited from java.lang.Object
Constructor Details
SensitivityLabel
public SensitivityLabel()
Creates an instance of SensitivityLabel class.
Method Details
description
public String description()
Get the description property: The description of the sensitivity label.
Returns:
displayName
public String displayName()
Get the displayName property: The name of the sensitivity label.
Returns:
enabled
public Boolean enabled()
Get the enabled property: Indicates whether the label is enabled or not.
Returns:
fromJson
public static SensitivityLabel fromJson(JsonReader jsonReader)
Reads an instance of SensitivityLabel from the JsonReader.
Parameters:
Returns:
Throws:
order
public Integer order()
Get the order property: The order of the sensitivity label.
Returns:
rank
public Rank rank()
Get the rank property: The rank of the sensitivity label.
Returns:
toJson
validate
public void validate()
Validates the instance.
withDescription
public SensitivityLabel withDescription(String description)
Set the description property: The description of the sensitivity label.
Parameters:
Returns:
withDisplayName
public SensitivityLabel withDisplayName(String displayName)
Set the displayName property: The name of the sensitivity label.
Parameters:
Returns:
withEnabled
public SensitivityLabel withEnabled(Boolean enabled)
Set the enabled property: Indicates whether the label is enabled or not.
Parameters:
Returns:
withOrder
public SensitivityLabel withOrder(Integer order)
Set the order property: The order of the sensitivity label.
Parameters:
Returns:
withRank
public SensitivityLabel withRank(Rank rank)
Set the rank property: The rank of the sensitivity label.
Parameters:
Returns: