KeySetUser Class

  • java.lang.Object
    • com.azure.resourcemanager.networkcloud.models.KeySetUser

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 KeySetUser class.

Method Summary

Modifier and Type Method and Description
String azureUsername()

Get the azureUsername property: The user name that will be used for access.

String description()

Get the description property: The free-form description for this user.

static KeySetUser fromJson(JsonReader jsonReader)

Reads an instance of KeySetUser from the JsonReader.

SshPublicKey sshPublicKey()

Get the sshPublicKey property: The SSH public key that will be provisioned for user access.

JsonWriter toJson(JsonWriter jsonWriter)
String userPrincipalName()

Get the userPrincipalName property: The user principal name (email format) used to validate this user's group membership.

void validate()

Validates the instance.

KeySetUser withAzureUsername(String azureUsername)

Set the azureUsername property: The user name that will be used for access.

KeySetUser withDescription(String description)

Set the description property: The free-form description for this user.

KeySetUser withSshPublicKey(SshPublicKey sshPublicKey)

Set the sshPublicKey property: The SSH public key that will be provisioned for user access.

KeySetUser withUserPrincipalName(String userPrincipalName)

Set the userPrincipalName property: The user principal name (email format) used to validate this user's group membership.

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:

the azureUsername value.

description

public String description()

Get the description property: The free-form description for this user.

Returns:

the description value.

fromJson

public static KeySetUser fromJson(JsonReader jsonReader)

Reads an instance of KeySetUser from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of KeySetUser if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

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:

the sshPublicKey value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

userPrincipalName

public String userPrincipalName()

Get the userPrincipalName property: The user principal name (email format) used to validate this user's group membership.

Returns:

the userPrincipalName value.

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:

azureUsername - the azureUsername value to set.

Returns:

the KeySetUser object itself.

withDescription

public KeySetUser withDescription(String description)

Set the description property: The free-form description for this user.

Parameters:

description - the description value to set.

Returns:

the KeySetUser object itself.

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:

sshPublicKey - the sshPublicKey value to set.

Returns:

the KeySetUser object itself.

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:

userPrincipalName - the userPrincipalName value to set.

Returns:

the KeySetUser object itself.

Applies to