Class VirtualMachineSshCredentials


  • public final class VirtualMachineSshCredentials
    extends Object
    Admin credentials for virtual machine.
    • Constructor Detail

      • VirtualMachineSshCredentials

        public VirtualMachineSshCredentials()
    • Method Detail

      • username

        public String username()
        Get the username property: Username of admin account.
        Returns:
        the username value.
      • withUsername

        public VirtualMachineSshCredentials withUsername​(String username)
        Set the username property: Username of admin account.
        Parameters:
        username - the username value to set.
        Returns:
        the VirtualMachineSshCredentials object itself.
      • password

        public String password()
        Get the password property: Password of admin account.
        Returns:
        the password value.
      • withPassword

        public VirtualMachineSshCredentials withPassword​(String password)
        Set the password property: Password of admin account.
        Parameters:
        password - the password value to set.
        Returns:
        the VirtualMachineSshCredentials object itself.
      • publicKeyData

        public String publicKeyData()
        Get the publicKeyData property: Public key data.
        Returns:
        the publicKeyData value.
      • withPublicKeyData

        public VirtualMachineSshCredentials withPublicKeyData​(String publicKeyData)
        Set the publicKeyData property: Public key data.
        Parameters:
        publicKeyData - the publicKeyData value to set.
        Returns:
        the VirtualMachineSshCredentials object itself.
      • privateKeyData

        public String privateKeyData()
        Get the privateKeyData property: Private key data.
        Returns:
        the privateKeyData value.
      • withPrivateKeyData

        public VirtualMachineSshCredentials withPrivateKeyData​(String privateKeyData)
        Set the privateKeyData property: Private key data.
        Parameters:
        privateKeyData - the privateKeyData value to set.
        Returns:
        the VirtualMachineSshCredentials object itself.
      • validate

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