Label Class
- java.
lang. Object - com.
azure. resourcemanager. security. models. Label
- com.
public final class Label
Microsoft information protection sensitivity label.
Constructor Summary
Constructor | Description |
---|---|
Label() |
Creates an instance of Label class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
UUID |
id()
Get the id property: The ID of the label. |
String |
name()
Get the name property: The display name of the label. |
Float |
order()
Get the order property: Labels are ordered by sensitivity level. |
void |
validate()
Validates the instance. |
Label |
withId(UUID id)
Set the id property: The ID of the label. |
Label |
withName(String name)
Set the name property: The display name of the label. |
Label |
withOrder(Float order)
Set the order property: Labels are ordered by sensitivity level. |
Methods inherited from java.lang.Object
Constructor Details
Label
public Label()
Creates an instance of Label class.
Method Details
id
public UUID id()
Get the id property: The ID of the label.
Returns:
name
public String name()
Get the name property: The display name of the label.
Returns:
order
public Float order()
Get the order property: Labels are ordered by sensitivity level. The higher the order of the label, the more sensitive it is.
Returns:
validate
public void validate()
Validates the instance.
withId
public Label withId(UUID id)
Set the id property: The ID of the label.
Parameters:
Returns:
withName
public Label withName(String name)
Set the name property: The display name of the label.
Parameters:
Returns:
withOrder
public Label withOrder(Float order)
Set the order property: Labels are ordered by sensitivity level. The higher the order of the label, the more sensitive it is.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for