Class UserAccountCredentials
java.lang.Object
com.azure.resourcemanager.machinelearning.models.UserAccountCredentials
- All Implemented Interfaces:
com.azure.json.JsonSerializable<UserAccountCredentials>
public final class UserAccountCredentials
extends Object
implements com.azure.json.JsonSerializable<UserAccountCredentials>
Settings for user account that gets created on each on the nodes of a compute.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of UserAccountCredentials class. -
Method Summary
Modifier and TypeMethodDescriptionGet the adminUsername property: Name of the administrator user account which can be used to SSH to nodes.Get the adminUserPassword property: Password of the administrator user account.Get the adminUserSshPublicKey property: SSH public key of the administrator user account.static UserAccountCredentialsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of UserAccountCredentials from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAdminUsername(String adminUsername) Set the adminUsername property: Name of the administrator user account which can be used to SSH to nodes.withAdminUserPassword(String adminUserPassword) Set the adminUserPassword property: Password of the administrator user account.withAdminUserSshPublicKey(String adminUserSshPublicKey) Set the adminUserSshPublicKey property: SSH public key of the administrator user account.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
-
UserAccountCredentials
public UserAccountCredentials()Creates an instance of UserAccountCredentials class.
-
-
Method Details
-
adminUsername
Get the adminUsername property: Name of the administrator user account which can be used to SSH to nodes.- Returns:
- the adminUsername value.
-
withAdminUsername
Set the adminUsername property: Name of the administrator user account which can be used to SSH to nodes.- Parameters:
adminUsername- the adminUsername value to set.- Returns:
- the UserAccountCredentials object itself.
-
adminUserSshPublicKey
Get the adminUserSshPublicKey property: SSH public key of the administrator user account.- Returns:
- the adminUserSshPublicKey value.
-
withAdminUserSshPublicKey
Set the adminUserSshPublicKey property: SSH public key of the administrator user account.- Parameters:
adminUserSshPublicKey- the adminUserSshPublicKey value to set.- Returns:
- the UserAccountCredentials object itself.
-
adminUserPassword
Get the adminUserPassword property: Password of the administrator user account.- Returns:
- the adminUserPassword value.
-
withAdminUserPassword
Set the adminUserPassword property: Password of the administrator user account.- Parameters:
adminUserPassword- the adminUserPassword value to set.- Returns:
- the UserAccountCredentials 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<UserAccountCredentials>- Throws:
IOException
-
fromJson
public static UserAccountCredentials fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of UserAccountCredentials from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of UserAccountCredentials if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the UserAccountCredentials.
-