Class VirtualMachineSshCredentials
- java.lang.Object
-
- com.azure.resourcemanager.machinelearning.models.VirtualMachineSshCredentials
-
public final class VirtualMachineSshCredentials extends Object
Admin credentials for virtual machine.
-
-
Constructor Summary
Constructors Constructor Description VirtualMachineSshCredentials()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
username
public String username()
Get the username property: Username of admin account.- Returns:
- the username value.
-
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.
-
password
public String password()
Get the password property: Password of admin account.- Returns:
- the password value.
-
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.
-
publicKeyData
public String publicKeyData()
Get the publicKeyData property: Public key data.- Returns:
- the publicKeyData value.
-
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.
-
privateKeyData
public String privateKeyData()
Get the privateKeyData property: Private key data.- Returns:
- the privateKeyData value.
-
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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-