MicrosoftGraphLicenseAssignmentState Class

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

Implements

public final class MicrosoftGraphLicenseAssignmentState
implements JsonSerializable<MicrosoftGraphLicenseAssignmentState>

licenseAssignmentState.

Constructor Summary

Constructor Description
MicrosoftGraphLicenseAssignmentState()

Creates an instance of MicrosoftGraphLicenseAssignmentState class.

Method Summary

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

Get the additionalProperties property: licenseAssignmentState.

String assignedByGroup()

Get the assignedByGroup property: The assignedByGroup property.

List<UUID> disabledPlans()

Get the disabledPlans property: The disabledPlans property.

String error()

Get the error property: The error property.

static MicrosoftGraphLicenseAssignmentState fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphLicenseAssignmentState from the JsonReader.

UUID skuId()

Get the skuId property: The skuId property.

String state()

Get the state property: The state property.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphLicenseAssignmentState withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: licenseAssignmentState.

MicrosoftGraphLicenseAssignmentState withAssignedByGroup(String assignedByGroup)

Set the assignedByGroup property: The assignedByGroup property.

MicrosoftGraphLicenseAssignmentState withDisabledPlans(List<UUID> disabledPlans)

Set the disabledPlans property: The disabledPlans property.

MicrosoftGraphLicenseAssignmentState withError(String error)

Set the error property: The error property.

MicrosoftGraphLicenseAssignmentState withSkuId(UUID skuId)

Set the skuId property: The skuId property.

MicrosoftGraphLicenseAssignmentState withState(String state)

Set the state property: The state property.

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphLicenseAssignmentState

public MicrosoftGraphLicenseAssignmentState()

Creates an instance of MicrosoftGraphLicenseAssignmentState class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: licenseAssignmentState.

Returns:

the additionalProperties value.

assignedByGroup

public String assignedByGroup()

Get the assignedByGroup property: The assignedByGroup property.

Returns:

the assignedByGroup value.

disabledPlans

public List disabledPlans()

Get the disabledPlans property: The disabledPlans property.

Returns:

the disabledPlans value.

error

public String error()

Get the error property: The error property.

Returns:

the error value.

fromJson

public static MicrosoftGraphLicenseAssignmentState fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphLicenseAssignmentState from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

skuId

public UUID skuId()

Get the skuId property: The skuId property.

Returns:

the skuId value.

state

public String state()

Get the state property: The state property.

Returns:

the state value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdditionalProperties

public MicrosoftGraphLicenseAssignmentState withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: licenseAssignmentState.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphLicenseAssignmentState object itself.

withAssignedByGroup

public MicrosoftGraphLicenseAssignmentState withAssignedByGroup(String assignedByGroup)

Set the assignedByGroup property: The assignedByGroup property.

Parameters:

assignedByGroup - the assignedByGroup value to set.

Returns:

the MicrosoftGraphLicenseAssignmentState object itself.

withDisabledPlans

public MicrosoftGraphLicenseAssignmentState withDisabledPlans(List disabledPlans)

Set the disabledPlans property: The disabledPlans property.

Parameters:

disabledPlans - the disabledPlans value to set.

Returns:

the MicrosoftGraphLicenseAssignmentState object itself.

withError

public MicrosoftGraphLicenseAssignmentState withError(String error)

Set the error property: The error property.

Parameters:

error - the error value to set.

Returns:

the MicrosoftGraphLicenseAssignmentState object itself.

withSkuId

public MicrosoftGraphLicenseAssignmentState withSkuId(UUID skuId)

Set the skuId property: The skuId property.

Parameters:

skuId - the skuId value to set.

Returns:

the MicrosoftGraphLicenseAssignmentState object itself.

withState

public MicrosoftGraphLicenseAssignmentState withState(String state)

Set the state property: The state property.

Parameters:

state - the state value to set.

Returns:

the MicrosoftGraphLicenseAssignmentState object itself.

Applies to