Class VirtualMachineConfiguration
java.lang.Object
com.azure.resourcemanager.workloads.models.VirtualMachineConfiguration
Defines the virtual machine configuration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the imageReference property: The image reference.Get the osProfile property: The OS profile.void
validate()
Validates the instance.vmSize()
Get the vmSize property: The virtual machine size.withImageReference
(ImageReference imageReference) Set the imageReference property: The image reference.withOsProfile
(OSProfile osProfile) Set the osProfile property: The OS profile.withVmSize
(String vmSize) Set the vmSize property: The virtual machine size.
-
Constructor Details
-
VirtualMachineConfiguration
public VirtualMachineConfiguration()
-
-
Method Details
-
vmSize
Get the vmSize property: The virtual machine size.- Returns:
- the vmSize value.
-
withVmSize
Set the vmSize property: The virtual machine size.- Parameters:
vmSize
- the vmSize value to set.- Returns:
- the VirtualMachineConfiguration object itself.
-
imageReference
Get the imageReference property: The image reference.- Returns:
- the imageReference value.
-
withImageReference
Set the imageReference property: The image reference.- Parameters:
imageReference
- the imageReference value to set.- Returns:
- the VirtualMachineConfiguration object itself.
-
osProfile
Get the osProfile property: The OS profile.- Returns:
- the osProfile value.
-
withOsProfile
Set the osProfile property: The OS profile.- Parameters:
osProfile
- the osProfile value to set.- Returns:
- the VirtualMachineConfiguration object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-