SshConfiguration Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.SshConfiguration

Implements

public final class SshConfiguration
implements JsonSerializable<SshConfiguration>

SSH configuration for Linux based VMs running on Azure.

Constructor Summary

Constructor Description
SshConfiguration()

Creates an instance of SshConfiguration class.

Method Summary

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

Reads an instance of SshConfiguration from the JsonReader.

List<SshPublicKey> 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.

SshConfiguration withPublicKeys(List<SshPublicKey> 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

SshConfiguration

public SshConfiguration()

Creates an instance of SshConfiguration class.

Method Details

fromJson

public static SshConfiguration fromJson(JsonReader jsonReader)

Reads an instance of SshConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

publicKeys

public List publicKeys()

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

Returns:

the publicKeys value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withPublicKeys

public SshConfiguration withPublicKeys(List publicKeys)

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

Parameters:

publicKeys - the publicKeys value to set.

Returns:

the SshConfiguration object itself.

Applies to