Label Class

  • java.lang.Object
    • com.azure.resourcemanager.security.models.Label

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:

the id value.

name

public String name()

Get the name property: The display name of the label.

Returns:

the name value.

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:

the order value.

validate

public void validate()

Validates the instance.

withId

public Label withId(UUID id)

Set the id property: The ID of the label.

Parameters:

id - the id value to set.

Returns:

the Label object itself.

withName

public Label withName(String name)

Set the name property: The display name of the label.

Parameters:

name - the name value to set.

Returns:

the Label object itself.

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:

order - the order value to set.

Returns:

the Label object itself.

Applies to