Label Class

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

Implements

public final class Label
implements JsonSerializable<Label>

Microsoft information protection sensitivity label.

Method Summary

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

Reads an instance of Label from the JsonReader.

String 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.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Method Details

fromJson

public static Label fromJson(JsonReader jsonReader)

Reads an instance of Label from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String 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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to