Class MigrateVMToVirtualMachineScaleSetInput
java.lang.Object
com.azure.resourcemanager.compute.models.MigrateVMToVirtualMachineScaleSetInput
- All Implemented Interfaces:
com.azure.json.JsonSerializable<MigrateVMToVirtualMachineScaleSetInput>
public final class MigrateVMToVirtualMachineScaleSetInput
extends Object
implements com.azure.json.JsonSerializable<MigrateVMToVirtualMachineScaleSetInput>
The input of virtual machine migration from Availability Set to Flexible Virtual Machine Scale Set.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MigrateVMToVirtualMachineScaleSetInput class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of MigrateVMToVirtualMachineScaleSetInput from the JsonReader.Get the targetFaultDomain property: The target compute fault domain of VM migration to Flexible Virtual Machine Scale Set.Get the targetVMSize property: The target Virtual Machine size of VM migration to Flexible Virtual Machine Scale Set.Get the targetZone property: The target zone of VM migration to Flexible Virtual Machine Scale Set.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withTargetFaultDomain(Integer targetFaultDomain) Set the targetFaultDomain property: The target compute fault domain of VM migration to Flexible Virtual Machine Scale Set.withTargetVMSize(String targetVMSize) Set the targetVMSize property: The target Virtual Machine size of VM migration to Flexible Virtual Machine Scale Set.withTargetZone(String targetZone) Set the targetZone property: The target zone of VM migration to Flexible Virtual Machine Scale Set.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
-
MigrateVMToVirtualMachineScaleSetInput
public MigrateVMToVirtualMachineScaleSetInput()Creates an instance of MigrateVMToVirtualMachineScaleSetInput class.
-
-
Method Details
-
targetZone
Get the targetZone property: The target zone of VM migration to Flexible Virtual Machine Scale Set.- Returns:
- the targetZone value.
-
withTargetZone
Set the targetZone property: The target zone of VM migration to Flexible Virtual Machine Scale Set.- Parameters:
targetZone- the targetZone value to set.- Returns:
- the MigrateVMToVirtualMachineScaleSetInput object itself.
-
targetFaultDomain
Get the targetFaultDomain property: The target compute fault domain of VM migration to Flexible Virtual Machine Scale Set.- Returns:
- the targetFaultDomain value.
-
withTargetFaultDomain
Set the targetFaultDomain property: The target compute fault domain of VM migration to Flexible Virtual Machine Scale Set.- Parameters:
targetFaultDomain- the targetFaultDomain value to set.- Returns:
- the MigrateVMToVirtualMachineScaleSetInput object itself.
-
targetVMSize
Get the targetVMSize property: The target Virtual Machine size of VM migration to Flexible Virtual Machine Scale Set.- Returns:
- the targetVMSize value.
-
withTargetVMSize
Set the targetVMSize property: The target Virtual Machine size of VM migration to Flexible Virtual Machine Scale Set.- Parameters:
targetVMSize- the targetVMSize value to set.- Returns:
- the MigrateVMToVirtualMachineScaleSetInput 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<MigrateVMToVirtualMachineScaleSetInput>- Throws:
IOException
-
fromJson
public static MigrateVMToVirtualMachineScaleSetInput fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of MigrateVMToVirtualMachineScaleSetInput from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of MigrateVMToVirtualMachineScaleSetInput 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 MigrateVMToVirtualMachineScaleSetInput.
-