Class ConvertToVirtualMachineScaleSetInput
java.lang.Object
com.azure.resourcemanager.compute.models.ConvertToVirtualMachineScaleSetInput
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ConvertToVirtualMachineScaleSetInput>
public final class ConvertToVirtualMachineScaleSetInput
extends Object
implements com.azure.json.JsonSerializable<ConvertToVirtualMachineScaleSetInput>
Describes the Virtual Machine Scale Set to convert from Availability Set.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ConvertToVirtualMachineScaleSetInput class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ConvertToVirtualMachineScaleSetInput from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Get the virtualMachineScaleSetName property: Specifies information about the Virtual Machine Scale Set that the Availability Set should be converted to.withVirtualMachineScaleSetName(String virtualMachineScaleSetName) Set the virtualMachineScaleSetName property: Specifies information about the Virtual Machine Scale Set that the Availability Set should be converted to.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
-
ConvertToVirtualMachineScaleSetInput
public ConvertToVirtualMachineScaleSetInput()Creates an instance of ConvertToVirtualMachineScaleSetInput class.
-
-
Method Details
-
virtualMachineScaleSetName
Get the virtualMachineScaleSetName property: Specifies information about the Virtual Machine Scale Set that the Availability Set should be converted to.- Returns:
- the virtualMachineScaleSetName value.
-
withVirtualMachineScaleSetName
public ConvertToVirtualMachineScaleSetInput withVirtualMachineScaleSetName(String virtualMachineScaleSetName) Set the virtualMachineScaleSetName property: Specifies information about the Virtual Machine Scale Set that the Availability Set should be converted to.- Parameters:
virtualMachineScaleSetName- the virtualMachineScaleSetName value to set.- Returns:
- the ConvertToVirtualMachineScaleSetInput 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<ConvertToVirtualMachineScaleSetInput>- Throws:
IOException
-
fromJson
public static ConvertToVirtualMachineScaleSetInput fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ConvertToVirtualMachineScaleSetInput from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ConvertToVirtualMachineScaleSetInput 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 ConvertToVirtualMachineScaleSetInput.
-