Share via


MicrosoftGraphAssignedLabel Class

  • java.lang.Object
    • com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphAssignedLabel

Implements

public final class MicrosoftGraphAssignedLabel
implements JsonSerializable<MicrosoftGraphAssignedLabel>

Represents an assigned label.

Constructor Summary

Constructor Description
MicrosoftGraphAssignedLabel()

Creates an instance of MicrosoftGraphAssignedLabel class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> additionalProperties()

Get the additionalProperties property: assignedLabel.

String displayName()

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

static MicrosoftGraphAssignedLabel fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphAssignedLabel from the JsonReader.

String labelId()

Get the labelId property: The unique identifier of the label.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphAssignedLabel withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: assignedLabel.

MicrosoftGraphAssignedLabel withDisplayName(String displayName)

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

MicrosoftGraphAssignedLabel withLabelId(String labelId)

Set the labelId property: The unique identifier of the label.

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphAssignedLabel

public MicrosoftGraphAssignedLabel()

Creates an instance of MicrosoftGraphAssignedLabel class.

Method Details

additionalProperties

public Map<String,Object> additionalProperties()

Get the additionalProperties property: assignedLabel.

Returns:

the additionalProperties value.

displayName

public String displayName()

Get the displayName property: The display name of the label. Read-only.

Returns:

the displayName value.

fromJson

public static MicrosoftGraphAssignedLabel fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphAssignedLabel from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

labelId

public String labelId()

Get the labelId property: The unique identifier of the label.

Returns:

the labelId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdditionalProperties

public MicrosoftGraphAssignedLabel withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: assignedLabel.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphAssignedLabel object itself.

withDisplayName

public MicrosoftGraphAssignedLabel withDisplayName(String displayName)

Set the displayName property: The display name of the label. Read-only.

Parameters:

displayName - the displayName value to set.

Returns:

the MicrosoftGraphAssignedLabel object itself.

withLabelId

public MicrosoftGraphAssignedLabel withLabelId(String labelId)

Set the labelId property: The unique identifier of the label.

Parameters:

labelId - the labelId value to set.

Returns:

the MicrosoftGraphAssignedLabel object itself.

Applies to