AdministratorConfiguration Class

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

Implements

public final class AdministratorConfiguration
implements JsonSerializable<AdministratorConfiguration>

AdministratorConfiguration represents the administrative credentials that will be applied to the control plane and agent pool nodes in Kubernetes clusters.

Constructor Summary

Constructor Description
AdministratorConfiguration()

Creates an instance of AdministratorConfiguration class.

Method Summary

Modifier and Type Method and Description
String adminUsername()

Get the adminUsername property: The user name for the administrator that will be applied to the operating systems that run Kubernetes nodes.

static AdministratorConfiguration fromJson(JsonReader jsonReader)

Reads an instance of AdministratorConfiguration from the JsonReader.

List<SshPublicKey> sshPublicKeys()

Get the sshPublicKeys property: The SSH configuration for the operating systems that run the nodes in the Kubernetes cluster.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AdministratorConfiguration withAdminUsername(String adminUsername)

Set the adminUsername property: The user name for the administrator that will be applied to the operating systems that run Kubernetes nodes.

AdministratorConfiguration withSshPublicKeys(List<SshPublicKey> sshPublicKeys)

Set the sshPublicKeys property: The SSH configuration for the operating systems that run the nodes in the Kubernetes cluster.

Methods inherited from java.lang.Object

Constructor Details

AdministratorConfiguration

public AdministratorConfiguration()

Creates an instance of AdministratorConfiguration class.

Method Details

adminUsername

public String adminUsername()

Get the adminUsername property: The user name for the administrator that will be applied to the operating systems that run Kubernetes nodes. If not supplied, a user name will be chosen by the service.

Returns:

the adminUsername value.

fromJson

public static AdministratorConfiguration fromJson(JsonReader jsonReader)

Reads an instance of AdministratorConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the AdministratorConfiguration.

sshPublicKeys

public List<SshPublicKey> sshPublicKeys()

Get the sshPublicKeys property: The SSH configuration for the operating systems that run the nodes in the Kubernetes cluster. In some cases, specification of public keys may be required to produce a working environment.

Returns:

the sshPublicKeys value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdminUsername

public AdministratorConfiguration withAdminUsername(String adminUsername)

Set the adminUsername property: The user name for the administrator that will be applied to the operating systems that run Kubernetes nodes. If not supplied, a user name will be chosen by the service.

Parameters:

adminUsername - the adminUsername value to set.

Returns:

the AdministratorConfiguration object itself.

withSshPublicKeys

public AdministratorConfiguration withSshPublicKeys(List<SshPublicKey> sshPublicKeys)

Set the sshPublicKeys property: The SSH configuration for the operating systems that run the nodes in the Kubernetes cluster. In some cases, specification of public keys may be required to produce a working environment.

Parameters:

sshPublicKeys - the sshPublicKeys value to set.

Returns:

the AdministratorConfiguration object itself.

Applies to