Class ResetPasswordBody


  • public final class ResetPasswordBody
    extends Object
    Body of a reset password request.
    • Constructor Detail

      • ResetPasswordBody

        public ResetPasswordBody()
    • Method Detail

      • username

        public String username()
        Get the username property: The user whose password is being reset.
        Returns:
        the username value.
      • withUsername

        public ResetPasswordBody withUsername​(String username)
        Set the username property: The user whose password is being reset.
        Parameters:
        username - the username value to set.
        Returns:
        the ResetPasswordBody object itself.
      • password

        public String password()
        Get the password property: The password.
        Returns:
        the password value.
      • withPassword

        public ResetPasswordBody withPassword​(String password)
        Set the password property: The password.
        Parameters:
        password - the password value to set.
        Returns:
        the ResetPasswordBody object itself.
      • validate

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