java.lang.Object
com.azure.resourcemanager.appplatform.models.ResourceSku
All Implemented Interfaces:
com.azure.json.JsonSerializable<ResourceSku>

public final class ResourceSku extends Object implements com.azure.json.JsonSerializable<ResourceSku>
Describes an available Azure Spring Apps SKU.
  • Constructor Details

    • ResourceSku

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

    • resourceType

      public String resourceType()
      Get the resourceType property: Gets the type of resource the SKU applies to.
      Returns:
      the resourceType value.
    • withResourceType

      public ResourceSku withResourceType(String resourceType)
      Set the resourceType property: Gets the type of resource the SKU applies to.
      Parameters:
      resourceType - the resourceType value to set.
      Returns:
      the ResourceSku object itself.
    • name

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

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

      public String tier()
      Get the tier property: Gets the tier of SKU.
      Returns:
      the tier value.
    • withTier

      public ResourceSku withTier(String tier)
      Set the tier property: Gets the tier of SKU.
      Parameters:
      tier - the tier value to set.
      Returns:
      the ResourceSku object itself.
    • capacity

      public SkuCapacity capacity()
      Get the capacity property: Gets the capacity of SKU.
      Returns:
      the capacity value.
    • withCapacity

      public ResourceSku withCapacity(SkuCapacity capacity)
      Set the capacity property: Gets the capacity of SKU.
      Parameters:
      capacity - the capacity value to set.
      Returns:
      the ResourceSku object itself.
    • locations

      public List<String> locations()
      Get the locations property: Gets the set of locations that the SKU is available.
      Returns:
      the locations value.
    • withLocations

      public ResourceSku withLocations(List<String> locations)
      Set the locations property: Gets the set of locations that the SKU is available.
      Parameters:
      locations - the locations value to set.
      Returns:
      the ResourceSku object itself.
    • locationInfo

      public List<ResourceSkuLocationInfo> locationInfo()
      Get the locationInfo property: Gets a list of locations and availability zones in those locations where the SKU is available.
      Returns:
      the locationInfo value.
    • withLocationInfo

      public ResourceSku withLocationInfo(List<ResourceSkuLocationInfo> locationInfo)
      Set the locationInfo property: Gets a list of locations and availability zones in those locations where the SKU is available.
      Parameters:
      locationInfo - the locationInfo value to set.
      Returns:
      the ResourceSku object itself.
    • restrictions

      public List<ResourceSkuRestrictions> restrictions()
      Get the restrictions property: Gets the restrictions because of which SKU cannot be used. This is empty if there are no restrictions.
      Returns:
      the restrictions value.
    • withRestrictions

      public ResourceSku withRestrictions(List<ResourceSkuRestrictions> restrictions)
      Set the restrictions property: Gets the restrictions because of which SKU cannot be used. This is empty if there are no restrictions.
      Parameters:
      restrictions - the restrictions value to set.
      Returns:
      the ResourceSku object itself.
    • validate

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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ResourceSku>
      Throws:
      IOException
    • fromJson

      public static ResourceSku fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ResourceSku from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ResourceSku if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the ResourceSku.