Class ResourceSku
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncapacity()Get the capacity property: Gets the capacity of SKU.static ResourceSkufromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ResourceSku from the JsonReader.Get the locationInfo property: Gets a list of locations and availability zones in those locations where the SKU is available.Get the locations property: Gets the set of locations that the SKU is available.name()Get the name property: Gets the name of SKU.Get the resourceType property: Gets the type of resource the SKU applies to.Get the restrictions property: Gets the restrictions because of which SKU cannot be used.tier()Get the tier property: Gets the tier of SKU.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withCapacity(SkuCapacity capacity) Set the capacity property: Gets the capacity of SKU.withLocationInfo(List<ResourceSkuLocationInfo> locationInfo) Set the locationInfo property: Gets a list of locations and availability zones in those locations where the SKU is available.withLocations(List<String> locations) Set the locations property: Gets the set of locations that the SKU is available.Set the name property: Gets the name of SKU.withResourceType(String resourceType) Set the resourceType property: Gets the type of resource the SKU applies to.withRestrictions(List<ResourceSkuRestrictions> restrictions) Set the restrictions property: Gets the restrictions because of which SKU cannot be used.Set the tier property: Gets the tier of SKU.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
-
ResourceSku
public ResourceSku()Creates an instance of ResourceSku class.
-
-
Method Details
-
resourceType
Get the resourceType property: Gets the type of resource the SKU applies to.- Returns:
- the resourceType value.
-
withResourceType
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
Get the name property: Gets the name of SKU.- Returns:
- the name value.
-
withName
Set the name property: Gets the name of SKU.- Parameters:
name- the name value to set.- Returns:
- the ResourceSku object itself.
-
tier
Get the tier property: Gets the tier of SKU.- Returns:
- the tier value.
-
withTier
Set the tier property: Gets the tier of SKU.- Parameters:
tier- the tier value to set.- Returns:
- the ResourceSku object itself.
-
capacity
Get the capacity property: Gets the capacity of SKU.- Returns:
- the capacity value.
-
withCapacity
Set the capacity property: Gets the capacity of SKU.- Parameters:
capacity- the capacity value to set.- Returns:
- the ResourceSku object itself.
-
locations
Get the locations property: Gets the set of locations that the SKU is available.- Returns:
- the locations value.
-
withLocations
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
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
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
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
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ResourceSku>- Throws:
IOException
-
fromJson
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.
-