Class SkuCapacity
java.lang.Object
com.azure.resourcemanager.machinelearning.models.SkuCapacity
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SkuCapacity>
public final class SkuCapacity
extends Object
implements com.azure.json.JsonSerializable<SkuCapacity>
SKU capacity information.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the defaultProperty property: Gets or sets the default capacity.static SkuCapacityfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SkuCapacity from the JsonReader.maximum()Get the maximum property: Gets or sets the maximum.minimum()Get the minimum property: Gets or sets the minimum.Get the scaleType property: Gets or sets the type of the scale.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDefaultProperty(Integer defaultProperty) Set the defaultProperty property: Gets or sets the default capacity.withMaximum(Integer maximum) Set the maximum property: Gets or sets the maximum.withMinimum(Integer minimum) Set the minimum property: Gets or sets the minimum.withScaleType(SkuScaleType scaleType) Set the scaleType property: Gets or sets the type of the scale.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
-
SkuCapacity
public SkuCapacity()Creates an instance of SkuCapacity class.
-
-
Method Details
-
minimum
Get the minimum property: Gets or sets the minimum.- Returns:
- the minimum value.
-
withMinimum
Set the minimum property: Gets or sets the minimum.- Parameters:
minimum- the minimum value to set.- Returns:
- the SkuCapacity object itself.
-
maximum
Get the maximum property: Gets or sets the maximum.- Returns:
- the maximum value.
-
withMaximum
Set the maximum property: Gets or sets the maximum.- Parameters:
maximum- the maximum value to set.- Returns:
- the SkuCapacity object itself.
-
defaultProperty
Get the defaultProperty property: Gets or sets the default capacity.- Returns:
- the defaultProperty value.
-
withDefaultProperty
Set the defaultProperty property: Gets or sets the default capacity.- Parameters:
defaultProperty- the defaultProperty value to set.- Returns:
- the SkuCapacity object itself.
-
scaleType
Get the scaleType property: Gets or sets the type of the scale.- Returns:
- the scaleType value.
-
withScaleType
Set the scaleType property: Gets or sets the type of the scale.- Parameters:
scaleType- the scaleType value to set.- Returns:
- the SkuCapacity 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<SkuCapacity>- Throws:
IOException
-
fromJson
Reads an instance of SkuCapacity from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SkuCapacity 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 SkuCapacity.
-