Class ResourceSkuCapacity
java.lang.Object
com.azure.resourcemanager.compute.models.ResourceSkuCapacity
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ResourceSkuCapacity>
public final class ResourceSkuCapacity
extends Object
implements com.azure.json.JsonSerializable<ResourceSkuCapacity>
Describes scaling information of a SKU.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the defaultProperty property: The default capacity.static ResourceSkuCapacityfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ResourceSkuCapacity from the JsonReader.maximum()Get the maximum property: The maximum capacity that can be set.minimum()Get the minimum property: The minimum capacity.Get the scaleType property: The scale type applicable to the sku.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Methods inherited from class 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
-
ResourceSkuCapacity
public ResourceSkuCapacity()Creates an instance of ResourceSkuCapacity class.
-
-
Method Details
-
minimum
-
maximum
Get the maximum property: The maximum capacity that can be set.- Returns:
- the maximum value.
-
defaultProperty
Get the defaultProperty property: The default capacity.- Returns:
- the defaultProperty value.
-
scaleType
Get the scaleType property: The scale type applicable to the sku.- Returns:
- the scaleType value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ResourceSkuCapacity>- Throws:
IOException
-
fromJson
Reads an instance of ResourceSkuCapacity from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ResourceSkuCapacity 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 ResourceSkuCapacity.
-