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 Summary
ConstructorsConstructorDescriptionCreates an instance of ResourceSkuLocationInfo class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceSkuLocationInfofromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ResourceSkuLocationInfo from the JsonReader.location()Get the location property: Gets location of the SKU.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withLocation(String location) Set the location property: Gets location of the SKU.withZoneDetails(List<ResourceSkuZoneDetails> zoneDetails) Set the zoneDetails property: Gets details of capabilities available to a SKU in specific zones.Set the zones property: Gets list of availability zones where the SKU is supported.Get the zoneDetails property: Gets details of capabilities available to a SKU in specific zones.zones()Get the zones property: Gets list of availability zones where the SKU is supported.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ResourceSkuLocationInfo
public ResourceSkuLocationInfo()Creates an instance of ResourceSkuLocationInfo class.
-
-
Method Details
-
location
Get the location property: Gets location of the SKU.- Returns:
- the location value.
-
withLocation
Set the location property: Gets location of the SKU.- Parameters:
location- the location value to set.- Returns:
- the ResourceSkuLocationInfo object itself.
-
zones
Get the zones property: Gets list of availability zones where the SKU is supported.- Returns:
- the zones value.
-
withZones
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
Get the zoneDetails property: Gets details of capabilities available to a SKU in specific zones.- Returns:
- the zoneDetails value.
-
withZoneDetails
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
- Specified by:
toJsonin interfacecom.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.
-