Class DefaultVirtualMachineScaleSetInfo
java.lang.Object
com.azure.resourcemanager.compute.models.DefaultVirtualMachineScaleSetInfo
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DefaultVirtualMachineScaleSetInfo>
public final class DefaultVirtualMachineScaleSetInfo
extends Object
implements com.azure.json.JsonSerializable<DefaultVirtualMachineScaleSetInfo>
Indicates the target Virtual Machine ScaleSet properties upon triggering a seamless migration without downtime of the
VMs via the ConvertToVirtualMachineScaleSet API.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DefaultVirtualMachineScaleSetInfo class. -
Method Summary
Modifier and TypeMethodDescriptionGet the constrainedMaximumCapacity property: Indicates if the the maximum capacity of the default migrated Virtual Machine Scale Set after its migration will be constrained to a limited number of VMs.com.azure.core.management.SubResourceGet the defaultVirtualMachineScaleSet property: The default Virtual Machine ScaleSet Uri that the Availability Set will be moved to upon triggering a seamless migration via the ConvertToVirtualMachineScaleSet API.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DefaultVirtualMachineScaleSetInfo from the JsonReader.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
-
DefaultVirtualMachineScaleSetInfo
public DefaultVirtualMachineScaleSetInfo()Creates an instance of DefaultVirtualMachineScaleSetInfo class.
-
-
Method Details
-
constrainedMaximumCapacity
Get the constrainedMaximumCapacity property: Indicates if the the maximum capacity of the default migrated Virtual Machine Scale Set after its migration will be constrained to a limited number of VMs.- Returns:
- the constrainedMaximumCapacity value.
-
defaultVirtualMachineScaleSet
public com.azure.core.management.SubResource defaultVirtualMachineScaleSet()Get the defaultVirtualMachineScaleSet property: The default Virtual Machine ScaleSet Uri that the Availability Set will be moved to upon triggering a seamless migration via the ConvertToVirtualMachineScaleSet API.- Returns:
- the defaultVirtualMachineScaleSet 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<DefaultVirtualMachineScaleSetInfo>- Throws:
IOException
-
fromJson
public static DefaultVirtualMachineScaleSetInfo fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DefaultVirtualMachineScaleSetInfo from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DefaultVirtualMachineScaleSetInfo 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 DefaultVirtualMachineScaleSetInfo.
-