Class VirtualMachineScaleSetMigrationInfo
java.lang.Object
com.azure.resourcemanager.compute.models.VirtualMachineScaleSetMigrationInfo
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VirtualMachineScaleSetMigrationInfo>
public final class VirtualMachineScaleSetMigrationInfo
extends Object
implements com.azure.json.JsonSerializable<VirtualMachineScaleSetMigrationInfo>
Describes the Availability Set properties related to migration to Flexible Virtual Machine Scale Set.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VirtualMachineScaleSetMigrationInfo class. -
Method Summary
Modifier and TypeMethodDescriptionGet the defaultVirtualMachineScaleSetInfo property: Indicates the target Virtual Machine ScaleSet properties upon triggering a seamless migration without downtime of the VMs via the ConvertToVirtualMachineScaleSet API.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualMachineScaleSetMigrationInfo from the JsonReader.com.azure.core.management.SubResourceGet the migrateToVirtualMachineScaleSet property: Specifies the Virtual Machine Scale Set that the Availability Set is migrated to.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
-
VirtualMachineScaleSetMigrationInfo
public VirtualMachineScaleSetMigrationInfo()Creates an instance of VirtualMachineScaleSetMigrationInfo class.
-
-
Method Details
-
defaultVirtualMachineScaleSetInfo
Get the defaultVirtualMachineScaleSetInfo property: Indicates the target Virtual Machine ScaleSet properties upon triggering a seamless migration without downtime of the VMs via the ConvertToVirtualMachineScaleSet API.- Returns:
- the defaultVirtualMachineScaleSetInfo value.
-
migrateToVirtualMachineScaleSet
public com.azure.core.management.SubResource migrateToVirtualMachineScaleSet()Get the migrateToVirtualMachineScaleSet property: Specifies the Virtual Machine Scale Set that the Availability Set is migrated to.- Returns:
- the migrateToVirtualMachineScaleSet 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<VirtualMachineScaleSetMigrationInfo>- Throws:
IOException
-
fromJson
public static VirtualMachineScaleSetMigrationInfo fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VirtualMachineScaleSetMigrationInfo from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VirtualMachineScaleSetMigrationInfo 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 VirtualMachineScaleSetMigrationInfo.
-