VirtualMachineProfile Class
- java.
lang. Object - com.
azure. resourcemanager. labservices. models. VirtualMachineProfile
- com.
Implements
public final class VirtualMachineProfile
implements JsonSerializable<VirtualMachineProfile>
The base virtual machine configuration for a lab.
Constructor Summary
| Constructor | Description |
|---|---|
| VirtualMachineProfile() |
Creates an instance of Virtual |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Virtual |
additionalCapabilities()
Get the additional |
| Credentials |
adminUser()
Get the admin |
|
Create |
createOption()
Get the create |
|
static
Virtual |
fromJson(JsonReader jsonReader)
Reads an instance of Virtual |
|
Image |
imageReference()
Get the image |
| Credentials |
nonAdminUser()
Get the non |
|
Os |
osType()
Get the os |
| Sku |
sku()
Get the sku property: The SKU for the lab. |
|
Json |
toJson(JsonWriter jsonWriter) |
| Duration |
usageQuota()
Get the usage |
|
Enable |
useSharedPassword()
Get the use |
| void |
validate()
Validates the instance. |
|
Virtual |
withAdditionalCapabilities(VirtualMachineAdditionalCapabilities additionalCapabilities)
Set the additional |
|
Virtual |
withAdminUser(Credentials adminUser)
Set the admin |
|
Virtual |
withCreateOption(CreateOption createOption)
Set the create |
|
Virtual |
withImageReference(ImageReference imageReference)
Set the image |
|
Virtual |
withNonAdminUser(Credentials nonAdminUser)
Set the non |
|
Virtual |
withSku(Sku sku)
Set the sku property: The SKU for the lab. |
|
Virtual |
withUsageQuota(Duration usageQuota)
Set the usage |
|
Virtual |
withUseSharedPassword(EnableState useSharedPassword)
Set the use |
Methods inherited from java.lang.Object
Constructor Details
VirtualMachineProfile
public VirtualMachineProfile()
Creates an instance of VirtualMachineProfile class.
Method Details
additionalCapabilities
public VirtualMachineAdditionalCapabilities additionalCapabilities()
Get the additionalCapabilities property: Additional VM capabilities.
Returns:
adminUser
public Credentials adminUser()
Get the adminUser property: Credentials for the admin user on the VM.
Returns:
createOption
public CreateOption createOption()
Get the createOption property: Indicates what lab virtual machines are created from.
Returns:
fromJson
public static VirtualMachineProfile fromJson(JsonReader jsonReader)
Reads an instance of VirtualMachineProfile from the JsonReader.
Parameters:
Returns:
Throws:
imageReference
public ImageReference imageReference()
Get the imageReference property: The image configuration for lab virtual machines.
Returns:
nonAdminUser
public Credentials nonAdminUser()
Get the nonAdminUser property: Credentials for the non-admin user on the VM, if one exists.
Returns:
osType
public OsType osType()
Get the osType property: The OS type of the image.
Returns:
sku
public Sku sku()
Get the sku property: The SKU for the lab. Defines the type of virtual machines used in the lab.
Returns:
toJson
usageQuota
public Duration usageQuota()
Get the usageQuota property: The initial quota alloted to each lab user. Must be a time span between 0 and 9999 hours.
Returns:
useSharedPassword
public EnableState useSharedPassword()
Get the useSharedPassword property: Enabling this option will use the same password for all user VMs.
Returns:
validate
public void validate()
Validates the instance.
withAdditionalCapabilities
public VirtualMachineProfile withAdditionalCapabilities(VirtualMachineAdditionalCapabilities additionalCapabilities)
Set the additionalCapabilities property: Additional VM capabilities.
Parameters:
Returns:
withAdminUser
public VirtualMachineProfile withAdminUser(Credentials adminUser)
Set the adminUser property: Credentials for the admin user on the VM.
Parameters:
Returns:
withCreateOption
public VirtualMachineProfile withCreateOption(CreateOption createOption)
Set the createOption property: Indicates what lab virtual machines are created from.
Parameters:
Returns:
withImageReference
public VirtualMachineProfile withImageReference(ImageReference imageReference)
Set the imageReference property: The image configuration for lab virtual machines.
Parameters:
Returns:
withNonAdminUser
public VirtualMachineProfile withNonAdminUser(Credentials nonAdminUser)
Set the nonAdminUser property: Credentials for the non-admin user on the VM, if one exists.
Parameters:
Returns:
withSku
public VirtualMachineProfile withSku(Sku sku)
Set the sku property: The SKU for the lab. Defines the type of virtual machines used in the lab.
Parameters:
Returns:
withUsageQuota
public VirtualMachineProfile withUsageQuota(Duration usageQuota)
Set the usageQuota property: The initial quota alloted to each lab user. Must be a time span between 0 and 9999 hours.
Parameters:
Returns:
withUseSharedPassword
public VirtualMachineProfile withUseSharedPassword(EnableState useSharedPassword)
Set the useSharedPassword property: Enabling this option will use the same password for all user VMs.
Parameters:
Returns: