Class ResourceModelWithAllowedPropertySetSku


  • public final class ResourceModelWithAllowedPropertySetSku
    extends Sku
    The ResourceModelWithAllowedPropertySetSku model.
    • Constructor Detail

      • ResourceModelWithAllowedPropertySetSku

        public ResourceModelWithAllowedPropertySetSku()
    • Method Detail

      • withName

        public ResourceModelWithAllowedPropertySetSku 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 ResourceModelWithAllowedPropertySetSku 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 ResourceModelWithAllowedPropertySetSku 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 ResourceModelWithAllowedPropertySetSku 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 ResourceModelWithAllowedPropertySetSku 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.