Package com.microsoft.graph.models
Class SubscribedSku
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.SubscribedSku
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder
,com.microsoft.kiota.serialization.Parsable
,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class SubscribedSku
extends Entity
implements com.microsoft.kiota.serialization.Parsable
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SubscribedSku
createFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the accountId property value.Gets the accountName property value.Gets the appliesTo property value.Gets the capabilityStatus property value.Gets the consumedUnits property value.The deserialization information for the current modelGets the prepaidUnits property value.Gets the servicePlans property value.getSkuId()
Gets the skuId property value.Gets the skuPartNumber property value.Gets the subscriptionIds property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
setAccountId
(String value) Sets the accountId property value.void
setAccountName
(String value) Sets the accountName property value.void
setAppliesTo
(String value) Sets the appliesTo property value.void
setCapabilityStatus
(String value) Sets the capabilityStatus property value.void
setConsumedUnits
(Integer value) Sets the consumedUnits property value.void
Sets the prepaidUnits property value.void
setServicePlans
(List<ServicePlanInfo> value) Sets the servicePlans property value.void
Sets the skuId property value.void
setSkuPartNumber
(String value) Sets the skuPartNumber property value.void
setSubscriptionIds
(List<String> value) Sets the subscriptionIds property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
SubscribedSku
public SubscribedSku()Instantiates a newSubscribedSku
and sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static SubscribedSku createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator value- Parameters:
parseNode
- The parse node to use to read the discriminator value and create the object- Returns:
- a
SubscribedSku
-
getAccountId
Gets the accountId property value. The unique ID of the account this SKU belongs to.- Returns:
- a
String
-
getAccountName
Gets the accountName property value. The name of the account this SKU belongs to.- Returns:
- a
String
-
getAppliesTo
Gets the appliesTo property value. The target class for this SKU. Only SKUs with target class User are assignable. Possible values are: User, Company.- Returns:
- a
String
-
getCapabilityStatus
Gets the capabilityStatus property value. Enabled indicates that the prepaidUnits property has at least one unit that is enabled. LockedOut indicates that the customer canceled their subscription. Possible values are: Enabled, Warning, Suspended, Deleted, LockedOut.- Returns:
- a
String
-
getConsumedUnits
Gets the consumedUnits property value. The number of licenses that have been assigned.- Returns:
- a
Integer
-
getFieldDeserializers
@Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()The deserialization information for the current model- Specified by:
getFieldDeserializers
in interfacecom.microsoft.kiota.serialization.Parsable
- Overrides:
getFieldDeserializers
in classEntity
- Returns:
- a
Map<String,
Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getPrepaidUnits
Gets the prepaidUnits property value. Information about the number and status of prepaid licenses.- Returns:
- a
LicenseUnitsDetail
-
getServicePlans
Gets the servicePlans property value. Information about the service plans that are available with the SKU. Not nullable.- Returns:
- a
List<ServicePlanInfo>
-
getSkuId
Gets the skuId property value. The unique identifier (GUID) for the service SKU.- Returns:
- a
UUID
-
getSkuPartNumber
Gets the skuPartNumber property value. The SKU part number; for example: AAD_PREMIUM or RMSBASIC. To get a list of commercial subscriptions that an organization has acquired, see List subscribedSkus.- Returns:
- a
String
-
getSubscriptionIds
Gets the subscriptionIds property value. A list of all subscription IDs associated with this SKU. -
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object -
setAccountId
Sets the accountId property value. The unique ID of the account this SKU belongs to.- Parameters:
value
- Value to set for the accountId property.
-
setAccountName
Sets the accountName property value. The name of the account this SKU belongs to.- Parameters:
value
- Value to set for the accountName property.
-
setAppliesTo
Sets the appliesTo property value. The target class for this SKU. Only SKUs with target class User are assignable. Possible values are: User, Company.- Parameters:
value
- Value to set for the appliesTo property.
-
setCapabilityStatus
Sets the capabilityStatus property value. Enabled indicates that the prepaidUnits property has at least one unit that is enabled. LockedOut indicates that the customer canceled their subscription. Possible values are: Enabled, Warning, Suspended, Deleted, LockedOut.- Parameters:
value
- Value to set for the capabilityStatus property.
-
setConsumedUnits
Sets the consumedUnits property value. The number of licenses that have been assigned.- Parameters:
value
- Value to set for the consumedUnits property.
-
setPrepaidUnits
Sets the prepaidUnits property value. Information about the number and status of prepaid licenses.- Parameters:
value
- Value to set for the prepaidUnits property.
-
setServicePlans
Sets the servicePlans property value. Information about the service plans that are available with the SKU. Not nullable.- Parameters:
value
- Value to set for the servicePlans property.
-
setSkuId
Sets the skuId property value. The unique identifier (GUID) for the service SKU.- Parameters:
value
- Value to set for the skuId property.
-
setSkuPartNumber
Sets the skuPartNumber property value. The SKU part number; for example: AAD_PREMIUM or RMSBASIC. To get a list of commercial subscriptions that an organization has acquired, see List subscribedSkus.- Parameters:
value
- Value to set for the skuPartNumber property.
-
setSubscriptionIds
Sets the subscriptionIds property value. A list of all subscription IDs associated with this SKU.- Parameters:
value
- Value to set for the subscriptionIds property.
-