Class SshGenerateKeyPairInputParameters
java.lang.Object
com.azure.resourcemanager.compute.models.SshGenerateKeyPairInputParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SshGenerateKeyPairInputParameters>
public final class SshGenerateKeyPairInputParameters
extends Object
implements com.azure.json.JsonSerializable<SshGenerateKeyPairInputParameters>
Parameters for GenerateSshKeyPair.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of SshGenerateKeyPairInputParameters class. -
Method Summary
Modifier and TypeMethodDescriptionGet the encryptionType property: The encryption type of the SSH keys to be generated.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SshGenerateKeyPairInputParameters from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withEncryptionType(SshEncryptionTypes encryptionType) Set the encryptionType property: The encryption type of the SSH keys to be generated.Methods inherited from class 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
-
SshGenerateKeyPairInputParameters
public SshGenerateKeyPairInputParameters()Creates an instance of SshGenerateKeyPairInputParameters class.
-
-
Method Details
-
encryptionType
Get the encryptionType property: The encryption type of the SSH keys to be generated. See SshEncryptionTypes for possible set of values. If not provided, will default to RSA.- Returns:
- the encryptionType value.
-
withEncryptionType
Set the encryptionType property: The encryption type of the SSH keys to be generated. See SshEncryptionTypes for possible set of values. If not provided, will default to RSA.- Parameters:
encryptionType- the encryptionType value to set.- Returns:
- the SshGenerateKeyPairInputParameters 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<SshGenerateKeyPairInputParameters>- Throws:
IOException
-
fromJson
public static SshGenerateKeyPairInputParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of SshGenerateKeyPairInputParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SshGenerateKeyPairInputParameters 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 SshGenerateKeyPairInputParameters.
-