Class VirtualMachineScaleSetHardwareProfile
java.lang.Object
com.azure.resourcemanager.compute.models.VirtualMachineScaleSetHardwareProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VirtualMachineScaleSetHardwareProfile>
public final class VirtualMachineScaleSetHardwareProfile
extends Object
implements com.azure.json.JsonSerializable<VirtualMachineScaleSetHardwareProfile>
Specifies the hardware settings for the virtual machine scale set.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VirtualMachineScaleSetHardwareProfile class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualMachineScaleSetHardwareProfile from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Get the vmSizeProperties property: Specifies the properties for customizing the size of the virtual machine.withVmSizeProperties(VMSizeProperties vmSizeProperties) Set the vmSizeProperties property: Specifies the properties for customizing the size of the virtual machine.Methods inherited from class java.lang.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
-
VirtualMachineScaleSetHardwareProfile
public VirtualMachineScaleSetHardwareProfile()Creates an instance of VirtualMachineScaleSetHardwareProfile class.
-
-
Method Details
-
vmSizeProperties
Get the vmSizeProperties property: Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2021-11-01. Please follow the instructions in [VM Customization](https://aka.ms/vmcustomization) for more details.- Returns:
- the vmSizeProperties value.
-
withVmSizeProperties
public VirtualMachineScaleSetHardwareProfile withVmSizeProperties(VMSizeProperties vmSizeProperties) Set the vmSizeProperties property: Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2021-11-01. Please follow the instructions in [VM Customization](https://aka.ms/vmcustomization) for more details.- Parameters:
vmSizeProperties- the vmSizeProperties value to set.- Returns:
- the VirtualMachineScaleSetHardwareProfile 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<VirtualMachineScaleSetHardwareProfile>- Throws:
IOException
-
fromJson
public static VirtualMachineScaleSetHardwareProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VirtualMachineScaleSetHardwareProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VirtualMachineScaleSetHardwareProfile 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 VirtualMachineScaleSetHardwareProfile.
-