Class VMScaleSetScaleOutInput
java.lang.Object
com.azure.resourcemanager.compute.models.VMScaleSetScaleOutInput
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VMScaleSetScaleOutInput>
public final class VMScaleSetScaleOutInput
extends Object
implements com.azure.json.JsonSerializable<VMScaleSetScaleOutInput>
The input for ScaleOut.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VMScaleSetScaleOutInput class. -
Method Summary
Modifier and TypeMethodDescriptionlongcapacity()Get the capacity property: Specifies the number of virtual machines in the scale set.static VMScaleSetScaleOutInputfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VMScaleSetScaleOutInput from the JsonReader.Get the properties property: The input properties for ScaleOut.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withCapacity(long capacity) Set the capacity property: Specifies the number of virtual machines in the scale set.withProperties(VMScaleSetScaleOutInputProperties properties) Set the properties property: The input properties for ScaleOut.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
-
VMScaleSetScaleOutInput
public VMScaleSetScaleOutInput()Creates an instance of VMScaleSetScaleOutInput class.
-
-
Method Details
-
capacity
public long capacity()Get the capacity property: Specifies the number of virtual machines in the scale set.- Returns:
- the capacity value.
-
withCapacity
Set the capacity property: Specifies the number of virtual machines in the scale set.- Parameters:
capacity- the capacity value to set.- Returns:
- the VMScaleSetScaleOutInput object itself.
-
properties
Get the properties property: The input properties for ScaleOut.- Returns:
- the properties value.
-
withProperties
Set the properties property: The input properties for ScaleOut.- Parameters:
properties- the properties value to set.- Returns:
- the VMScaleSetScaleOutInput 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<VMScaleSetScaleOutInput>- Throws:
IOException
-
fromJson
public static VMScaleSetScaleOutInput fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VMScaleSetScaleOutInput from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VMScaleSetScaleOutInput if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the VMScaleSetScaleOutInput.
-