Class MicrosoftGraphSubscribedSku

java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphSubscribedSku

public final class MicrosoftGraphSubscribedSku extends MicrosoftGraphEntity
subscribedSku.
  • Constructor Details

    • MicrosoftGraphSubscribedSku

      public MicrosoftGraphSubscribedSku()
      Creates an instance of MicrosoftGraphSubscribedSku class.
  • Method Details

    • appliesTo

      public String appliesTo()
      Get the appliesTo property: For example, 'User' or 'Company'.
      Returns:
      the appliesTo value.
    • 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.
    • capabilityStatus

      public String capabilityStatus()
      Get the capabilityStatus property: Possible values are: Enabled, Warning, Suspended, Deleted, LockedOut.
      Returns:
      the capabilityStatus value.
    • 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.
    • consumedUnits

      public Integer consumedUnits()
      Get the consumedUnits property: The number of licenses that have been assigned.
      Returns:
      the consumedUnits value.
    • 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.
    • prepaidUnits

      public MicrosoftGraphLicenseUnitsDetail prepaidUnits()
      Get the prepaidUnits property: licenseUnitsDetail.
      Returns:
      the prepaidUnits value.
    • withPrepaidUnits

      public MicrosoftGraphSubscribedSku withPrepaidUnits(MicrosoftGraphLicenseUnitsDetail prepaidUnits)
      Set the prepaidUnits property: licenseUnitsDetail.
      Parameters:
      prepaidUnits - the prepaidUnits value to set.
      Returns:
      the MicrosoftGraphSubscribedSku object itself.
    • servicePlans

      public List<MicrosoftGraphServicePlanInfo> servicePlans()
      Get the servicePlans property: Information about the service plans that are available with the SKU. Not nullable.
      Returns:
      the servicePlans value.
    • withServicePlans

      public MicrosoftGraphSubscribedSku withServicePlans(List<MicrosoftGraphServicePlanInfo> 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.
    • skuId

      public UUID skuId()
      Get the skuId property: The unique identifier (GUID) for the service SKU.
      Returns:
      the skuId value.
    • 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.
    • skuPartNumber

      public String skuPartNumber()
      Get the skuPartNumber property: The skuPartNumber property.
      Returns:
      the skuPartNumber value.
    • 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.
    • additionalProperties

      public Map<String,Object> additionalProperties()
      Get the additionalProperties property: subscribedSku.
      Overrides:
      additionalProperties in class MicrosoftGraphEntity
      Returns:
      the additionalProperties value.
    • withAdditionalProperties

      public MicrosoftGraphSubscribedSku withAdditionalProperties(Map<String,Object> additionalProperties)
      Set the additionalProperties property: subscribedSku.
      Overrides:
      withAdditionalProperties in class MicrosoftGraphEntity
      Parameters:
      additionalProperties - the additionalProperties value to set.
      Returns:
      the MicrosoftGraphSubscribedSku object itself.
    • withId

      public MicrosoftGraphSubscribedSku withId(String id)
      Set the id property: Read-only.
      Overrides:
      withId in class MicrosoftGraphEntity
      Parameters:
      id - the id value to set.
      Returns:
      the MicrosoftGraphEntity object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class MicrosoftGraphEntity
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.