Share via


MicrosoftGraphAssignedLicense Class

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

Implements

public final class MicrosoftGraphAssignedLicense
implements JsonSerializable<MicrosoftGraphAssignedLicense>

Represents an assigned license.

Constructor Summary

Constructor Description
MicrosoftGraphAssignedLicense()

Creates an instance of MicrosoftGraphAssignedLicense class.

Method Summary

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

Get the additionalProperties property: assignedLicense.

List<UUID> disabledPlans()

Get the disabledPlans property: A collection of the unique identifiers for plans that have been disabled.

static MicrosoftGraphAssignedLicense fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphAssignedLicense from the JsonReader.

UUID skuId()

Get the skuId property: The unique identifier for the SKU.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphAssignedLicense withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: assignedLicense.

MicrosoftGraphAssignedLicense withDisabledPlans(List<UUID> disabledPlans)

Set the disabledPlans property: A collection of the unique identifiers for plans that have been disabled.

MicrosoftGraphAssignedLicense withSkuId(UUID skuId)

Set the skuId property: The unique identifier for the SKU.

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphAssignedLicense

public MicrosoftGraphAssignedLicense()

Creates an instance of MicrosoftGraphAssignedLicense class.

Method Details

additionalProperties

public Map<String,Object> additionalProperties()

Get the additionalProperties property: assignedLicense.

Returns:

the additionalProperties value.

disabledPlans

public List<UUID> disabledPlans()

Get the disabledPlans property: A collection of the unique identifiers for plans that have been disabled.

Returns:

the disabledPlans value.

fromJson

public static MicrosoftGraphAssignedLicense fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphAssignedLicense from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

skuId

public UUID skuId()

Get the skuId property: The unique identifier for the SKU.

Returns:

the skuId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdditionalProperties

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

Set the additionalProperties property: assignedLicense.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphAssignedLicense object itself.

withDisabledPlans

public MicrosoftGraphAssignedLicense withDisabledPlans(List<UUID> disabledPlans)

Set the disabledPlans property: A collection of the unique identifiers for plans that have been disabled.

Parameters:

disabledPlans - the disabledPlans value to set.

Returns:

the MicrosoftGraphAssignedLicense object itself.

withSkuId

public MicrosoftGraphAssignedLicense withSkuId(UUID skuId)

Set the skuId property: The unique identifier for the SKU.

Parameters:

skuId - the skuId value to set.

Returns:

the MicrosoftGraphAssignedLicense object itself.

Applies to