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 Details

    • UserAccountCredentials

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

    • adminUsername

      public String adminUsername()
      Get the adminUsername property: Name of the administrator user account which can be used to SSH to nodes.
      Returns:
      the adminUsername value.
    • withAdminUsername

      public UserAccountCredentials withAdminUsername(String adminUsername)
      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

      public String adminUserSshPublicKey()
      Get the adminUserSshPublicKey property: SSH public key of the administrator user account.
      Returns:
      the adminUserSshPublicKey value.
    • withAdminUserSshPublicKey

      public UserAccountCredentials withAdminUserSshPublicKey(String adminUserSshPublicKey)
      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

      public String adminUserPassword()
      Get the adminUserPassword property: Password of the administrator user account.
      Returns:
      the adminUserPassword value.
    • withAdminUserPassword

      public UserAccountCredentials withAdminUserPassword(String adminUserPassword)
      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

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