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 Details

    • MigrateVMToVirtualMachineScaleSetInput

      public MigrateVMToVirtualMachineScaleSetInput()
      Creates an instance of MigrateVMToVirtualMachineScaleSetInput class.
  • Method Details

    • targetZone

      public String targetZone()
      Get the targetZone property: The target zone of VM migration to Flexible Virtual Machine Scale Set.
      Returns:
      the targetZone value.
    • withTargetZone

      public MigrateVMToVirtualMachineScaleSetInput withTargetZone(String targetZone)
      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

      public Integer targetFaultDomain()
      Get the targetFaultDomain property: The target compute fault domain of VM migration to Flexible Virtual Machine Scale Set.
      Returns:
      the targetFaultDomain value.
    • withTargetFaultDomain

      public MigrateVMToVirtualMachineScaleSetInput withTargetFaultDomain(Integer targetFaultDomain)
      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

      public String targetVMSize()
      Get the targetVMSize property: The target Virtual Machine size of VM migration to Flexible Virtual Machine Scale Set.
      Returns:
      the targetVMSize value.
    • withTargetVMSize

      public MigrateVMToVirtualMachineScaleSetInput withTargetVMSize(String targetVMSize)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.