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>
Auth setting for SSH auth.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthType()Get the authType property: The type of the auth setting.static AcceleratorSshSettingfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AcceleratorSshSetting from the JsonReader.hostKey()Get the hostKey property: Public SSH Key of git repository.Get the hostKeyAlgorithm property: SSH Key algorithm of git repository.Get the privateKey property: Private SSH Key algorithm of git repository.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withHostKey(String hostKey) Set the hostKey property: Public SSH Key of git repository.withHostKeyAlgorithm(String hostKeyAlgorithm) Set the hostKeyAlgorithm property: SSH Key algorithm of git repository.withPrivateKey(String privateKey) Set the privateKey property: Private SSH Key algorithm of git repository.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
-
AcceleratorSshSetting
public AcceleratorSshSetting()Creates an instance of AcceleratorSshSetting class.
-
-
Method Details
-
authType
Get the authType property: The type of the auth setting.- Overrides:
authTypein classAcceleratorAuthSetting- Returns:
- the authType value.
-
hostKey
Get the hostKey property: Public SSH Key of git repository.- Returns:
- the hostKey value.
-
withHostKey
Set the hostKey property: Public SSH Key of git repository.- Parameters:
hostKey- the hostKey value to set.- Returns:
- the AcceleratorSshSetting object itself.
-
hostKeyAlgorithm
Get the hostKeyAlgorithm property: SSH Key algorithm of git repository.- Returns:
- the hostKeyAlgorithm value.
-
withHostKeyAlgorithm
Set the hostKeyAlgorithm property: SSH Key algorithm of git repository.- Parameters:
hostKeyAlgorithm- the hostKeyAlgorithm value to set.- Returns:
- the AcceleratorSshSetting object itself.
-
privateKey
Get the privateKey property: Private SSH Key algorithm of git repository.- Returns:
- the privateKey value.
-
withPrivateKey
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:
validatein classAcceleratorAuthSetting- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AcceleratorAuthSetting>- Overrides:
toJsonin classAcceleratorAuthSetting- 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.
-