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

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

    Constructors
    Constructor
    Description
    Sku()
    Creates an instance of Sku class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the name property: The name of the sku, typically, tier + family + cores, e.g.
    Get the tier property: The tier of the particular SKU, e.g.
    void
    Validates the instance.
    Set the name property: The name of the sku, typically, tier + family + cores, e.g.
    Set the tier property: The tier of the particular SKU, e.g.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Sku

      public Sku()
      Creates an instance of Sku 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 Sku 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 Sku 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 Sku 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 Sku object itself.
    • validate

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