Sdílet prostřednictvím


MicrosoftGraphSubscribedSku Class

public final class MicrosoftGraphSubscribedSku
extends MicrosoftGraphEntity

subscribedSku.

Constructor Summary

Constructor Description
MicrosoftGraphSubscribedSku()

Creates an instance of MicrosoftGraphSubscribedSku class.

Method Summary

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

Get the additionalProperties property: subscribedSku.

String appliesTo()

Get the appliesTo property: For example, 'User' or 'Company'.

String capabilityStatus()

Get the capabilityStatus property: Possible values are: Enabled, Warning, Suspended, Deleted, LockedOut.

Integer consumedUnits()

Get the consumedUnits property: The number of licenses that have been assigned.

static MicrosoftGraphSubscribedSku fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphSubscribedSku from the JsonReader.

MicrosoftGraphLicenseUnitsDetail prepaidUnits()

Get the prepaidUnits property: licenseUnitsDetail.

List<MicrosoftGraphServicePlanInfo> servicePlans()

Get the servicePlans property: Information about the service plans that are available with the SKU.

UUID skuId()

Get the skuId property: The 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.

MicrosoftGraphSubscribedSku withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: subscribedSku.

MicrosoftGraphSubscribedSku withAppliesTo(String appliesTo)

Set the appliesTo property: For example, 'User' or 'Company'.

MicrosoftGraphSubscribedSku withCapabilityStatus(String capabilityStatus)

Set the capabilityStatus property: Possible values are: Enabled, Warning, Suspended, Deleted, LockedOut.

MicrosoftGraphSubscribedSku withConsumedUnits(Integer consumedUnits)

Set the consumedUnits property: The number of licenses that have been assigned.

MicrosoftGraphSubscribedSku withId(String id)

Set the id property: Read-only.

MicrosoftGraphSubscribedSku withPrepaidUnits(MicrosoftGraphLicenseUnitsDetail prepaidUnits)

Set the prepaidUnits property: licenseUnitsDetail.

MicrosoftGraphSubscribedSku withServicePlans(List<MicrosoftGraphServicePlanInfo> servicePlans)

Set the servicePlans property: Information about the service plans that are available with the SKU.

MicrosoftGraphSubscribedSku withSkuId(UUID skuId)

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

MicrosoftGraphSubscribedSku withSkuPartNumber(String skuPartNumber)

Set the skuPartNumber property: The skuPartNumber property.

Methods inherited from MicrosoftGraphEntity

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphSubscribedSku

public MicrosoftGraphSubscribedSku()

Creates an instance of MicrosoftGraphSubscribedSku class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: subscribedSku.

Overrides:

MicrosoftGraphSubscribedSku.additionalProperties()

Returns:

the additionalProperties value.

appliesTo

public String appliesTo()

Get the appliesTo property: For example, 'User' or 'Company'.

Returns:

the appliesTo value.

capabilityStatus

public String capabilityStatus()

Get the capabilityStatus property: Possible values are: Enabled, Warning, Suspended, Deleted, LockedOut.

Returns:

the capabilityStatus value.

consumedUnits

public Integer consumedUnits()

Get the consumedUnits property: The number of licenses that have been assigned.

Returns:

the consumedUnits value.

fromJson

public static MicrosoftGraphSubscribedSku fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphSubscribedSku from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

prepaidUnits

public MicrosoftGraphLicenseUnitsDetail prepaidUnits()

Get the prepaidUnits property: licenseUnitsDetail.

Returns:

the prepaidUnits value.

servicePlans

public List servicePlans()

Get the servicePlans property: Information about the service plans that are available with the SKU. Not nullable.

Returns:

the servicePlans value.

skuId

public UUID skuId()

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

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:

MicrosoftGraphSubscribedSku.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphSubscribedSku.validate()

withAdditionalProperties

public MicrosoftGraphSubscribedSku withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: subscribedSku.

Overrides:

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

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphSubscribedSku object itself.

withAppliesTo

public MicrosoftGraphSubscribedSku withAppliesTo(String appliesTo)

Set the appliesTo property: For example, 'User' or 'Company'.

Parameters:

appliesTo - the appliesTo value to set.

Returns:

the MicrosoftGraphSubscribedSku object itself.

withCapabilityStatus

public MicrosoftGraphSubscribedSku withCapabilityStatus(String capabilityStatus)

Set the capabilityStatus property: Possible values are: Enabled, Warning, Suspended, Deleted, LockedOut.

Parameters:

capabilityStatus - the capabilityStatus value to set.

Returns:

the MicrosoftGraphSubscribedSku object itself.

withConsumedUnits

public MicrosoftGraphSubscribedSku withConsumedUnits(Integer consumedUnits)

Set the consumedUnits property: The number of licenses that have been assigned.

Parameters:

consumedUnits - the consumedUnits value to set.

Returns:

the MicrosoftGraphSubscribedSku object itself.

withId

public MicrosoftGraphSubscribedSku withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphSubscribedSku.withId(String id)

Parameters:

id

withPrepaidUnits

public MicrosoftGraphSubscribedSku withPrepaidUnits(MicrosoftGraphLicenseUnitsDetail prepaidUnits)

Set the prepaidUnits property: licenseUnitsDetail.

Parameters:

prepaidUnits - the prepaidUnits value to set.

Returns:

the MicrosoftGraphSubscribedSku object itself.

withServicePlans

public MicrosoftGraphSubscribedSku withServicePlans(List servicePlans)

Set the servicePlans property: Information about the service plans that are available with the SKU. Not nullable.

Parameters:

servicePlans - the servicePlans value to set.

Returns:

the MicrosoftGraphSubscribedSku object itself.

withSkuId

public MicrosoftGraphSubscribedSku withSkuId(UUID skuId)

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

Parameters:

skuId - the skuId value to set.

Returns:

the MicrosoftGraphSubscribedSku object itself.

withSkuPartNumber

public MicrosoftGraphSubscribedSku withSkuPartNumber(String skuPartNumber)

Set the skuPartNumber property: The skuPartNumber property.

Parameters:

skuPartNumber - the skuPartNumber value to set.

Returns:

the MicrosoftGraphSubscribedSku object itself.

Applies to