Class UserProfile

java.lang.Object
com.azure.resourcemanager.workloads.models.UserProfile

public final class UserProfile extends Object
User profile to configure on a compute resources such as VM, VMSS.
  • Constructor Details

    • UserProfile

      public UserProfile()
  • Method Details

    • username

      public String username()
      Get the username property: User name.
      Returns:
      the username value.
    • withUsername

      public UserProfile withUsername(String username)
      Set the username property: User name.
      Parameters:
      username - the username value to set.
      Returns:
      the UserProfile object itself.
    • sshPublicKey

      public String sshPublicKey()
      Get the sshPublicKey property: SSH public key data.
      Returns:
      the sshPublicKey value.
    • withSshPublicKey

      public UserProfile withSshPublicKey(String sshPublicKey)
      Set the sshPublicKey property: SSH public key data.
      Parameters:
      sshPublicKey - the sshPublicKey value to set.
      Returns:
      the UserProfile object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.