Class AcceleratorSshSetting

java.lang.Object
com.azure.resourcemanager.appplatform.models.AcceleratorAuthSetting
com.azure.resourcemanager.appplatform.models.AcceleratorSshSetting
All Implemented Interfaces:
com.azure.json.JsonSerializable<AcceleratorAuthSetting>

public final class AcceleratorSshSetting extends AcceleratorAuthSetting
Auth setting for SSH auth.
  • Constructor Details

    • AcceleratorSshSetting

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

    • authType

      public String authType()
      Get the authType property: The type of the auth setting.
      Overrides:
      authType in class AcceleratorAuthSetting
      Returns:
      the authType value.
    • hostKey

      public String hostKey()
      Get the hostKey property: Public SSH Key of git repository.
      Returns:
      the hostKey value.
    • withHostKey

      public AcceleratorSshSetting withHostKey(String hostKey)
      Set the hostKey property: Public SSH Key of git repository.
      Parameters:
      hostKey - the hostKey value to set.
      Returns:
      the AcceleratorSshSetting object itself.
    • hostKeyAlgorithm

      public String hostKeyAlgorithm()
      Get the hostKeyAlgorithm property: SSH Key algorithm of git repository.
      Returns:
      the hostKeyAlgorithm value.
    • withHostKeyAlgorithm

      public AcceleratorSshSetting withHostKeyAlgorithm(String hostKeyAlgorithm)
      Set the hostKeyAlgorithm property: SSH Key algorithm of git repository.
      Parameters:
      hostKeyAlgorithm - the hostKeyAlgorithm value to set.
      Returns:
      the AcceleratorSshSetting object itself.
    • privateKey

      public String privateKey()
      Get the privateKey property: Private SSH Key algorithm of git repository.
      Returns:
      the privateKey value.
    • withPrivateKey

      public AcceleratorSshSetting withPrivateKey(String privateKey)
      Set the privateKey property: Private SSH Key algorithm of git repository.
      Parameters:
      privateKey - the privateKey value to set.
      Returns:
      the AcceleratorSshSetting object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class AcceleratorAuthSetting
      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<AcceleratorAuthSetting>
      Overrides:
      toJson in class AcceleratorAuthSetting
      Throws:
      IOException
    • fromJson

      public static AcceleratorSshSetting fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of AcceleratorSshSetting from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of AcceleratorSshSetting 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 AcceleratorSshSetting.