Class ResourceSkuLocationInfo

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

public final class ResourceSkuLocationInfo extends Object implements com.azure.json.JsonSerializable<ResourceSkuLocationInfo>
Locations and availability zones where the SKU is available.
  • Constructor Details

    • ResourceSkuLocationInfo

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

    • location

      public String location()
      Get the location property: Gets location of the SKU.
      Returns:
      the location value.
    • withLocation

      public ResourceSkuLocationInfo withLocation(String location)
      Set the location property: Gets location of the SKU.
      Parameters:
      location - the location value to set.
      Returns:
      the ResourceSkuLocationInfo object itself.
    • zones

      public List<String> zones()
      Get the zones property: Gets list of availability zones where the SKU is supported.
      Returns:
      the zones value.
    • withZones

      public ResourceSkuLocationInfo withZones(List<String> zones)
      Set the zones property: Gets list of availability zones where the SKU is supported.
      Parameters:
      zones - the zones value to set.
      Returns:
      the ResourceSkuLocationInfo object itself.
    • zoneDetails

      public List<ResourceSkuZoneDetails> zoneDetails()
      Get the zoneDetails property: Gets details of capabilities available to a SKU in specific zones.
      Returns:
      the zoneDetails value.
    • withZoneDetails

      public ResourceSkuLocationInfo withZoneDetails(List<ResourceSkuZoneDetails> zoneDetails)
      Set the zoneDetails property: Gets details of capabilities available to a SKU in specific zones.
      Parameters:
      zoneDetails - the zoneDetails value to set.
      Returns:
      the ResourceSkuLocationInfo 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<ResourceSkuLocationInfo>
      Throws:
      IOException
    • fromJson

      public static ResourceSkuLocationInfo fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ResourceSkuLocationInfo from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ResourceSkuLocationInfo 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 ResourceSkuLocationInfo.