public final class OSProfile extends Object
Constructor and Description |
---|
OSProfile() |
Modifier and Type | Method and Description |
---|---|
String |
adminPassword()
Get the adminPassword property: Specifies the password of the administrator account.
|
String |
adminUsername()
Get the adminUsername property: Specifies the name of the administrator account.
|
Boolean |
allowExtensionOperations()
Get the allowExtensionOperations property: Specifies whether extension operations should be allowed on the
virtual machine.
|
String |
computerName()
Get the computerName property: Specifies the host OS name of the virtual machine.
|
String |
customData()
Get the customData property: Specifies a base-64 encoded string of custom data.
|
LinuxConfiguration |
linuxConfiguration()
Get the linuxConfiguration property: Specifies the Linux operating system settings on the virtual machine.
|
Boolean |
requireGuestProvisionSignal()
Get the requireGuestProvisionSignal property: Specifies whether the guest provision signal is required to infer
provision success of the virtual machine.
|
List<VaultSecretGroup> |
secrets()
Get the secrets property: Specifies set of certificates that should be installed onto the virtual machine.
|
void |
validate()
Validates the instance.
|
WindowsConfiguration |
windowsConfiguration()
Get the windowsConfiguration property: Specifies Windows operating system settings on the virtual machine.
|
OSProfile |
withAdminPassword(String adminPassword)
Set the adminPassword property: Specifies the password of the administrator account.
|
OSProfile |
withAdminUsername(String adminUsername)
Set the adminUsername property: Specifies the name of the administrator account.
|
OSProfile |
withAllowExtensionOperations(Boolean allowExtensionOperations)
Set the allowExtensionOperations property: Specifies whether extension operations should be allowed on the
virtual machine.
|
OSProfile |
withComputerName(String computerName)
Set the computerName property: Specifies the host OS name of the virtual machine.
|
OSProfile |
withCustomData(String customData)
Set the customData property: Specifies a base-64 encoded string of custom data.
|
OSProfile |
withLinuxConfiguration(LinuxConfiguration linuxConfiguration)
Set the linuxConfiguration property: Specifies the Linux operating system settings on the virtual machine.
|
OSProfile |
withRequireGuestProvisionSignal(Boolean requireGuestProvisionSignal)
Set the requireGuestProvisionSignal property: Specifies whether the guest provision signal is required to infer
provision success of the virtual machine.
|
OSProfile |
withSecrets(List<VaultSecretGroup> secrets)
Set the secrets property: Specifies set of certificates that should be installed onto the virtual machine.
|
OSProfile |
withWindowsConfiguration(WindowsConfiguration windowsConfiguration)
Set the windowsConfiguration property: Specifies Windows operating system settings on the virtual machine.
|
public String computerName()
public OSProfile withComputerName(String computerName)
computerName
- the computerName value to set.public String adminUsername()
public OSProfile withAdminUsername(String adminUsername)
adminUsername
- the adminUsername value to set.public String adminPassword()
public OSProfile withAdminPassword(String adminPassword)
adminPassword
- the adminPassword value to set.public String customData()
public OSProfile withCustomData(String customData)
customData
- the customData value to set.public WindowsConfiguration windowsConfiguration()
public OSProfile withWindowsConfiguration(WindowsConfiguration windowsConfiguration)
windowsConfiguration
- the windowsConfiguration value to set.public LinuxConfiguration linuxConfiguration()
public OSProfile withLinuxConfiguration(LinuxConfiguration linuxConfiguration)
linuxConfiguration
- the linuxConfiguration value to set.public List<VaultSecretGroup> secrets()
public OSProfile withSecrets(List<VaultSecretGroup> secrets)
secrets
- the secrets value to set.public Boolean allowExtensionOperations()
public OSProfile withAllowExtensionOperations(Boolean allowExtensionOperations)
allowExtensionOperations
- the allowExtensionOperations value to set.public Boolean requireGuestProvisionSignal()
public OSProfile withRequireGuestProvisionSignal(Boolean requireGuestProvisionSignal)
requireGuestProvisionSignal
- the requireGuestProvisionSignal value to set.public void validate()
IllegalArgumentException
- thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.