VirtualMachineSshCredentials Class

  • java.lang.Object
    • com.azure.resourcemanager.machinelearningservices.models.VirtualMachineSshCredentials

public final class VirtualMachineSshCredentials

Admin credentials for virtual machine.

Constructor Summary

Constructor Description
VirtualMachineSshCredentials()

Method Summary

Modifier and Type Method and Description
String password()

Get the password property: Password of admin account.

String privateKeyData()

Get the privateKeyData property: Private key data.

String publicKeyData()

Get the publicKeyData property: Public key data.

String username()

Get the username property: Username of admin account.

void validate()

Validates the instance.

VirtualMachineSshCredentials withPassword(String password)

Set the password property: Password of admin account.

VirtualMachineSshCredentials withPrivateKeyData(String privateKeyData)

Set the privateKeyData property: Private key data.

VirtualMachineSshCredentials withPublicKeyData(String publicKeyData)

Set the publicKeyData property: Public key data.

VirtualMachineSshCredentials withUsername(String username)

Set the username property: Username of admin account.

Methods inherited from java.lang.Object

Constructor Details

VirtualMachineSshCredentials

public VirtualMachineSshCredentials()

Method Details

password

public String password()

Get the password property: Password of admin account.

Returns:

the password value.

privateKeyData

public String privateKeyData()

Get the privateKeyData property: Private key data.

Returns:

the privateKeyData value.

publicKeyData

public String publicKeyData()

Get the publicKeyData property: Public key data.

Returns:

the publicKeyData value.

username

public String username()

Get the username property: Username of admin account.

Returns:

the username value.

validate

public void validate()

Validates the instance.

withPassword

public VirtualMachineSshCredentials withPassword(String password)

Set the password property: Password of admin account.

Parameters:

password - the password value to set.

Returns:

the VirtualMachineSshCredentials object itself.

withPrivateKeyData

public VirtualMachineSshCredentials withPrivateKeyData(String privateKeyData)

Set the privateKeyData property: Private key data.

Parameters:

privateKeyData - the privateKeyData value to set.

Returns:

the VirtualMachineSshCredentials object itself.

withPublicKeyData

public VirtualMachineSshCredentials withPublicKeyData(String publicKeyData)

Set the publicKeyData property: Public key data.

Parameters:

publicKeyData - the publicKeyData value to set.

Returns:

the VirtualMachineSshCredentials object itself.

withUsername

public VirtualMachineSshCredentials withUsername(String username)

Set the username property: Username of admin account.

Parameters:

username - the username value to set.

Returns:

the VirtualMachineSshCredentials object itself.

Applies to