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
  • Constructor Details

    • SubscribedSku

      public SubscribedSku()
      Instantiates a new SubscribedSku 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

      @Nullable public String getAccountId()
      Gets the accountId property value. The unique ID of the account this SKU belongs to.
      Returns:
      a String
    • getAccountName

      @Nullable public String getAccountName()
      Gets the accountName property value. The name of the account this SKU belongs to.
      Returns:
      a String
    • getAppliesTo

      @Nullable public 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

      @Nullable public 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

      @Nullable public Integer 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 interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class Entity
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getPrepaidUnits

      @Nullable public LicenseUnitsDetail getPrepaidUnits()
      Gets the prepaidUnits property value. Information about the number and status of prepaid licenses.
      Returns:
      a LicenseUnitsDetail
    • getServicePlans

      @Nullable public List<ServicePlanInfo> getServicePlans()
      Gets the servicePlans property value. Information about the service plans that are available with the SKU. Not nullable.
      Returns:
      a List<ServicePlanInfo>
    • getSkuId

      @Nullable public UUID getSkuId()
      Gets the skuId property value. The unique identifier (GUID) for the service SKU.
      Returns:
      a UUID
    • getSkuPartNumber

      @Nullable public String 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

      @Nullable public List<String> getSubscriptionIds()
      Gets the subscriptionIds property value. A list of all subscription IDs associated with this SKU.
      Returns:
      a List<String>
    • serialize

      public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer)
      Serializes information the current object
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class Entity
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setAccountId

      public void setAccountId(@Nullable String value)
      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

      public void setAccountName(@Nullable String value)
      Sets the accountName property value. The name of the account this SKU belongs to.
      Parameters:
      value - Value to set for the accountName property.
    • setAppliesTo

      public void setAppliesTo(@Nullable String value)
      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

      public void setCapabilityStatus(@Nullable String value)
      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

      public void setConsumedUnits(@Nullable Integer value)
      Sets the consumedUnits property value. The number of licenses that have been assigned.
      Parameters:
      value - Value to set for the consumedUnits property.
    • setPrepaidUnits

      public void setPrepaidUnits(@Nullable LicenseUnitsDetail value)
      Sets the prepaidUnits property value. Information about the number and status of prepaid licenses.
      Parameters:
      value - Value to set for the prepaidUnits property.
    • setServicePlans

      public void setServicePlans(@Nullable List<ServicePlanInfo> value)
      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

      public void setSkuId(@Nullable UUID value)
      Sets the skuId property value. The unique identifier (GUID) for the service SKU.
      Parameters:
      value - Value to set for the skuId property.
    • setSkuPartNumber

      public void setSkuPartNumber(@Nullable String value)
      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

      public void setSubscriptionIds(@Nullable List<String> value)
      Sets the subscriptionIds property value. A list of all subscription IDs associated with this SKU.
      Parameters:
      value - Value to set for the subscriptionIds property.