Class VirtualMachineProfile
java.lang.Object
com.azure.resourcemanager.labservices.models.VirtualMachineProfile
The base virtual machine configuration for a lab.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the additionalCapabilities property: Additional VM capabilities.Get the adminUser property: Credentials for the admin user on the VM.Get the createOption property: Indicates what lab virtual machines are created from.Get the imageReference property: The image configuration for lab virtual machines.Get the nonAdminUser property: Credentials for the non-admin user on the VM, if one exists.osType()
Get the osType property: The OS type of the image.sku()
Get the sku property: The SKU for the lab.Get the usageQuota property: The initial quota alloted to each lab user.Get the useSharedPassword property: Enabling this option will use the same password for all user VMs.void
validate()
Validates the instance.withAdditionalCapabilities
(VirtualMachineAdditionalCapabilities additionalCapabilities) Set the additionalCapabilities property: Additional VM capabilities.withAdminUser
(Credentials adminUser) Set the adminUser property: Credentials for the admin user on the VM.withCreateOption
(CreateOption createOption) Set the createOption property: Indicates what lab virtual machines are created from.withImageReference
(ImageReference imageReference) Set the imageReference property: The image configuration for lab virtual machines.withNonAdminUser
(Credentials nonAdminUser) Set the nonAdminUser property: Credentials for the non-admin user on the VM, if one exists.Set the sku property: The SKU for the lab.withUsageQuota
(Duration usageQuota) Set the usageQuota property: The initial quota alloted to each lab user.withUseSharedPassword
(EnableState useSharedPassword) Set the useSharedPassword property: Enabling this option will use the same password for all user VMs.
-
Constructor Details
-
VirtualMachineProfile
public VirtualMachineProfile()
-
-
Method Details
-
createOption
Get the createOption property: Indicates what lab virtual machines are created from.- Returns:
- the createOption value.
-
withCreateOption
Set the createOption property: Indicates what lab virtual machines are created from.- Parameters:
createOption
- the createOption value to set.- Returns:
- the VirtualMachineProfile object itself.
-
imageReference
Get the imageReference property: The image configuration for lab virtual machines.- Returns:
- the imageReference value.
-
withImageReference
Set the imageReference property: The image configuration for lab virtual machines.- Parameters:
imageReference
- the imageReference value to set.- Returns:
- the VirtualMachineProfile object itself.
-
osType
Get the osType property: The OS type of the image.- Returns:
- the osType value.
-
sku
Get the sku property: The SKU for the lab. Defines the type of virtual machines used in the lab.- Returns:
- the sku value.
-
withSku
Set the sku property: The SKU for the lab. Defines the type of virtual machines used in the lab.- Parameters:
sku
- the sku value to set.- Returns:
- the VirtualMachineProfile object itself.
-
additionalCapabilities
Get the additionalCapabilities property: Additional VM capabilities.- Returns:
- the additionalCapabilities value.
-
withAdditionalCapabilities
public VirtualMachineProfile withAdditionalCapabilities(VirtualMachineAdditionalCapabilities additionalCapabilities) Set the additionalCapabilities property: Additional VM capabilities.- Parameters:
additionalCapabilities
- the additionalCapabilities value to set.- Returns:
- the VirtualMachineProfile object itself.
-
usageQuota
Get the usageQuota property: The initial quota alloted to each lab user. Must be a time span between 0 and 9999 hours.- Returns:
- the usageQuota value.
-
withUsageQuota
Set the usageQuota property: The initial quota alloted to each lab user. Must be a time span between 0 and 9999 hours.- Parameters:
usageQuota
- the usageQuota value to set.- Returns:
- the VirtualMachineProfile object itself.
-
adminUser
Get the adminUser property: Credentials for the admin user on the VM.- Returns:
- the adminUser value.
-
withAdminUser
Set the adminUser property: Credentials for the admin user on the VM.- Parameters:
adminUser
- the adminUser value to set.- Returns:
- the VirtualMachineProfile object itself.
-
nonAdminUser
Get the nonAdminUser property: Credentials for the non-admin user on the VM, if one exists.- Returns:
- the nonAdminUser value.
-
withNonAdminUser
Set the nonAdminUser property: Credentials for the non-admin user on the VM, if one exists.- Parameters:
nonAdminUser
- the nonAdminUser value to set.- Returns:
- the VirtualMachineProfile object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-