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

public final class Sku extends Object
SKU of the namespace.
  • Constructor Details

    • Sku

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

    • name

      public String name()
      Get the name property: Name of this SKU.
      Returns:
      the name value.
    • withName

      public Sku withName(String name)
      Set the name property: Name of this SKU.
      Parameters:
      name - the name value to set.
      Returns:
      the Sku object itself.
    • tier

      public SkuTier tier()
      Get the tier property: The tier of this SKU.
      Returns:
      the tier value.
    • withTier

      public Sku withTier(SkuTier tier)
      Set the tier property: The tier of this SKU.
      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.