Class DevCenterSkuInner

java.lang.Object
com.azure.resourcemanager.devcenter.models.Sku
com.azure.resourcemanager.devcenter.fluent.models.DevCenterSkuInner

public final class DevCenterSkuInner extends Sku
The resource model definition representing SKU for DevCenter resources.
  • Constructor Details

    • DevCenterSkuInner

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

    • resourceType

      public String resourceType()
      Get the resourceType property: The name of the resource type.
      Returns:
      the resourceType value.
    • locations

      public List<String> locations()
      Get the locations property: SKU supported locations.
      Returns:
      the locations value.
    • capabilities

      public List<Capability> capabilities()
      Get the capabilities property: Collection of name/value pairs to describe the SKU capabilities.
      Returns:
      the capabilities value.
    • withName

      public DevCenterSkuInner withName(String name)
      Set the name property: The name of the SKU. Ex - P3. It is typically a letter+number code.
      Overrides:
      withName in class Sku
      Parameters:
      name - the name value to set.
      Returns:
      the Sku object itself.
    • withTier

      public DevCenterSkuInner withTier(SkuTier tier)
      Set the tier property: This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.
      Overrides:
      withTier in class Sku
      Parameters:
      tier - the tier value to set.
      Returns:
      the Sku object itself.
    • withSize

      public DevCenterSkuInner withSize(String size)
      Set the size property: The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code.
      Overrides:
      withSize in class Sku
      Parameters:
      size - the size value to set.
      Returns:
      the Sku object itself.
    • withFamily

      public DevCenterSkuInner withFamily(String family)
      Set the family property: If the service has different generations of hardware, for the same SKU, then that can be captured here.
      Overrides:
      withFamily in class Sku
      Parameters:
      family - the family value to set.
      Returns:
      the Sku object itself.
    • withCapacity

      public DevCenterSkuInner withCapacity(Integer capacity)
      Set the capacity property: If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.
      Overrides:
      withCapacity in class Sku
      Parameters:
      capacity - the capacity value to set.
      Returns:
      the Sku object itself.
    • validate

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