KeySetUser Class
- java.
lang. Object - com.
azure. resourcemanager. networkcloud. models. KeySetUser
- com.
Implements
public final class KeySetUser
implements JsonSerializable<KeySetUser>
KeySetUser represents the properties of the user in the key set.
Constructor Summary
| Constructor | Description |
|---|---|
| KeySetUser() |
Creates an instance of Key |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
azureUsername()
Get the azure |
| String |
description()
Get the description property: The free-form description for this user. |
|
static
Key |
fromJson(JsonReader jsonReader)
Reads an instance of Key |
|
Ssh |
sshPublicKey()
Get the ssh |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
userPrincipalName()
Get the user |
| void |
validate()
Validates the instance. |
|
Key |
withAzureUsername(String azureUsername)
Set the azure |
|
Key |
withDescription(String description)
Set the description property: The free-form description for this user. |
|
Key |
withSshPublicKey(SshPublicKey sshPublicKey)
Set the ssh |
|
Key |
withUserPrincipalName(String userPrincipalName)
Set the user |
Methods inherited from java.lang.Object
Constructor Details
KeySetUser
public KeySetUser()
Creates an instance of KeySetUser class.
Method Details
azureUsername
public String azureUsername()
Get the azureUsername property: The user name that will be used for access.
Returns:
description
public String description()
Get the description property: The free-form description for this user.
Returns:
fromJson
public static KeySetUser fromJson(JsonReader jsonReader)
Reads an instance of KeySetUser from the JsonReader.
Parameters:
Returns:
Throws:
sshPublicKey
public SshPublicKey sshPublicKey()
Get the sshPublicKey property: The SSH public key that will be provisioned for user access. The user is expected to have the corresponding SSH private key for logging in.
Returns:
toJson
userPrincipalName
public String userPrincipalName()
Get the userPrincipalName property: The user principal name (email format) used to validate this user's group membership.
Returns:
validate
public void validate()
Validates the instance.
withAzureUsername
public KeySetUser withAzureUsername(String azureUsername)
Set the azureUsername property: The user name that will be used for access.
Parameters:
Returns:
withDescription
public KeySetUser withDescription(String description)
Set the description property: The free-form description for this user.
Parameters:
Returns:
withSshPublicKey
public KeySetUser withSshPublicKey(SshPublicKey sshPublicKey)
Set the sshPublicKey property: The SSH public key that will be provisioned for user access. The user is expected to have the corresponding SSH private key for logging in.
Parameters:
Returns:
withUserPrincipalName
public KeySetUser withUserPrincipalName(String userPrincipalName)
Set the userPrincipalName property: The user principal name (email format) used to validate this user's group membership.
Parameters:
Returns: