Class UserProfile
java.lang.Object
com.azure.resourcemanager.workloads.models.UserProfile
User profile to configure on a compute resources such as VM, VMSS.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the sshPublicKey property: SSH public key data.username()
Get the username property: User name.void
validate()
Validates the instance.withSshPublicKey
(String sshPublicKey) Set the sshPublicKey property: SSH public key data.withUsername
(String username) Set the username property: User name.
-
Constructor Details
-
UserProfile
public UserProfile()
-
-
Method Details
-
username
Get the username property: User name.- Returns:
- the username value.
-
withUsername
Set the username property: User name.- Parameters:
username
- the username value to set.- Returns:
- the UserProfile object itself.
-
sshPublicKey
Get the sshPublicKey property: SSH public key data.- Returns:
- the sshPublicKey value.
-
withSshPublicKey
Set the sshPublicKey property: SSH public key data.- Parameters:
sshPublicKey
- the sshPublicKey value to set.- Returns:
- the UserProfile object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-