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 Details

    • SshGenerateKeyPairInputParameters

      public SshGenerateKeyPairInputParameters()
      Creates an instance of SshGenerateKeyPairInputParameters class.
  • Method Details

    • encryptionType

      public SshEncryptionTypes 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

      public SshGenerateKeyPairInputParameters withEncryptionType(SshEncryptionTypes encryptionType)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.