ContainerServiceSshConfiguration Class

  • java.lang.Object
    • com.azure.resourcemanager.containerservice.models.ContainerServiceSshConfiguration

Implements

public final class ContainerServiceSshConfiguration
implements JsonSerializable<ContainerServiceSshConfiguration>

SSH configuration for Linux-based VMs running on Azure.

Constructor Summary

Constructor Description
ContainerServiceSshConfiguration()

Creates an instance of ContainerServiceSshConfiguration class.

Method Summary

Modifier and Type Method and Description
static ContainerServiceSshConfiguration fromJson(JsonReader jsonReader)

Reads an instance of ContainerServiceSshConfiguration from the JsonReader.

List<ContainerServiceSshPublicKey> publicKeys()

Get the publicKeys property: The list of SSH public keys used to authenticate with Linux-based VMs.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ContainerServiceSshConfiguration withPublicKeys(List<ContainerServiceSshPublicKey> publicKeys)

Set the publicKeys property: The list of SSH public keys used to authenticate with Linux-based VMs.

Methods inherited from java.lang.Object

Constructor Details

ContainerServiceSshConfiguration

public ContainerServiceSshConfiguration()

Creates an instance of ContainerServiceSshConfiguration class.

Method Details

fromJson

public static ContainerServiceSshConfiguration fromJson(JsonReader jsonReader)

Reads an instance of ContainerServiceSshConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ContainerServiceSshConfiguration 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.

publicKeys

public List publicKeys()

Get the publicKeys property: The list of SSH public keys used to authenticate with Linux-based VMs. A maximum of 1 key may be specified.

Returns:

the publicKeys value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withPublicKeys

public ContainerServiceSshConfiguration withPublicKeys(List publicKeys)

Set the publicKeys property: The list of SSH public keys used to authenticate with Linux-based VMs. A maximum of 1 key may be specified.

Parameters:

publicKeys - the publicKeys value to set.

Returns:

the ContainerServiceSshConfiguration object itself.

Applies to