Share via


MicrosoftGraphLicenseDetails Class

public final class MicrosoftGraphLicenseDetails
extends MicrosoftGraphEntity

Represents a license details.

Constructor Summary

Constructor Description
MicrosoftGraphLicenseDetails()

Creates an instance of MicrosoftGraphLicenseDetails class.

Method Summary

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

Get the additionalProperties property: licenseDetails.

static MicrosoftGraphLicenseDetails fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphLicenseDetails from the JsonReader.

List<MicrosoftGraphServicePlanInfo> servicePlans()

Get the servicePlans property: Information about the service plans assigned with the license.

UUID skuId()

Get the skuId property: Unique identifier (GUID) for the service SKU.

String skuPartNumber()

Get the skuPartNumber property: The skuPartNumber property.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphLicenseDetails withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: licenseDetails.

MicrosoftGraphLicenseDetails withId(String id)

Set the id property: Read-only.

MicrosoftGraphLicenseDetails withServicePlans(List<MicrosoftGraphServicePlanInfo> servicePlans)

Set the servicePlans property: Information about the service plans assigned with the license.

MicrosoftGraphLicenseDetails withSkuId(UUID skuId)

Set the skuId property: Unique identifier (GUID) for the service SKU.

MicrosoftGraphLicenseDetails withSkuPartNumber(String skuPartNumber)

Set the skuPartNumber property: The skuPartNumber property.

Methods inherited from MicrosoftGraphEntity

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphLicenseDetails

public MicrosoftGraphLicenseDetails()

Creates an instance of MicrosoftGraphLicenseDetails class.

Method Details

additionalProperties

public Map<String,Object> additionalProperties()

Get the additionalProperties property: licenseDetails.

Overrides:

MicrosoftGraphLicenseDetails.additionalProperties()

Returns:

the additionalProperties value.

fromJson

public static MicrosoftGraphLicenseDetails fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphLicenseDetails from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

servicePlans

public List<MicrosoftGraphServicePlanInfo> servicePlans()

Get the servicePlans property: Information about the service plans assigned with the license. Read-only, Not nullable.

Returns:

the servicePlans value.

skuId

public UUID skuId()

Get the skuId property: Unique identifier (GUID) for the service SKU. Equal to the skuId property on the related SubscribedSku object. Read-only.

Returns:

the skuId value.

skuPartNumber

public String skuPartNumber()

Get the skuPartNumber property: The skuPartNumber property.

Returns:

the skuPartNumber value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphLicenseDetails.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphLicenseDetails.validate()

withAdditionalProperties

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

Set the additionalProperties property: licenseDetails.

Overrides:

MicrosoftGraphLicenseDetails.withAdditionalProperties(Map<String,Object> additionalProperties)

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphLicenseDetails object itself.

withId

public MicrosoftGraphLicenseDetails withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphLicenseDetails.withId(String id)

Parameters:

id

withServicePlans

public MicrosoftGraphLicenseDetails withServicePlans(List<MicrosoftGraphServicePlanInfo> servicePlans)

Set the servicePlans property: Information about the service plans assigned with the license. Read-only, Not nullable.

Parameters:

servicePlans - the servicePlans value to set.

Returns:

the MicrosoftGraphLicenseDetails object itself.

withSkuId

public MicrosoftGraphLicenseDetails withSkuId(UUID skuId)

Set the skuId property: Unique identifier (GUID) for the service SKU. Equal to the skuId property on the related SubscribedSku object. Read-only.

Parameters:

skuId - the skuId value to set.

Returns:

the MicrosoftGraphLicenseDetails object itself.

withSkuPartNumber

public MicrosoftGraphLicenseDetails withSkuPartNumber(String skuPartNumber)

Set the skuPartNumber property: The skuPartNumber property.

Parameters:

skuPartNumber - the skuPartNumber value to set.

Returns:

the MicrosoftGraphLicenseDetails object itself.

Applies to