Class SshConfiguration
java.lang.Object
com.azure.resourcemanager.compute.models.SshConfiguration
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SshConfiguration>
public final class SshConfiguration
extends Object
implements com.azure.json.JsonSerializable<SshConfiguration>
SSH configuration for Linux based VMs running on Azure.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SshConfigurationfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SshConfiguration from the JsonReader.Get the publicKeys property: The list of SSH public keys used to authenticate with linux based VMs.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withPublicKeys(List<SshPublicKey> publicKeys) Set the publicKeys property: The list of SSH public keys used to authenticate with linux based VMs.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
SshConfiguration
public SshConfiguration()Creates an instance of SshConfiguration class.
-
-
Method Details
-
publicKeys
Get the publicKeys property: The list of SSH public keys used to authenticate with linux based VMs.- Returns:
- the publicKeys value.
-
withPublicKeys
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SshConfiguration>- Throws:
IOException
-
fromJson
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.
-