Class Sku


  • public final class Sku
    extends Object
    Billing information related properties of a server.
    • Constructor Detail

      • Sku

        public Sku()
    • Method Detail

      • name

        public String name()
        Get the name property: The name of the sku, e.g. Standard_D32s_v3.
        Returns:
        the name value.
      • withName

        public Sku withName​(String name)
        Set the name property: The name of the sku, e.g. Standard_D32s_v3.
        Parameters:
        name - the name value to set.
        Returns:
        the Sku object itself.
      • tier

        public SkuTier tier()
        Get the tier property: The tier of the particular SKU, e.g. GeneralPurpose.
        Returns:
        the tier value.
      • withTier

        public Sku withTier​(SkuTier tier)
        Set the tier property: The tier of the particular SKU, e.g. GeneralPurpose.
        Parameters:
        tier - the tier value to set.
        Returns:
        the Sku object itself.
      • validate

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