java.lang.Object
com.azure.resourcemanager.postgresqlflexibleserver.models.ServerSku

public final class ServerSku extends Object
Sku information related properties of a server.
  • Constructor Details

    • ServerSku

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

    • name

      public String name()
      Get the name property: The name of the sku, typically, tier + family + cores, e.g. Standard_D4s_v3.
      Returns:
      the name value.
    • withName

      public ServerSku withName(String name)
      Set the name property: The name of the sku, typically, tier + family + cores, e.g. Standard_D4s_v3.
      Parameters:
      name - the name value to set.
      Returns:
      the ServerSku object itself.
    • tier

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

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

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