java.lang.Object
java.lang.Record
com.irurueta.authserver.authorization.api.web.v1.generated.model.RegisterRequest
Record Components:
username - Desired username; it must contain a non-blank character.
email - E-mail address that receives the verification link; it must contain a non-blank character.
password - Chosen password; it must contain a non-blank character. Never logged.

@Generated(value="org.openapitools.codegen.languages.SpringCodegen", date="2026-11-08T20:21:45.782821081Z[Etc/UTC]", comments="Generator version: 7.27.0") public record RegisterRequest(@NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) String username, @NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) @Email String email, @NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) String password) extends Record
Registration of a new account
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final @NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) @Email String
    The field for the email record component.
    private final @NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) String
    The field for the password record component.
    private final @NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) String
    The field for the username record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    RegisterRequest(@NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) String username, @NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) @Email String email, @NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) String password)
    Creates an instance of a RegisterRequest record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) @Email String
    Returns the value of the email record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    @NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) String
    Returns the value of the password record component.
    Returns a string representation of this record class.
    @NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) String
    Returns the value of the username record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • username

      @NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) private final @NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) String username
      The field for the username record component.
    • email

      @NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) @Email private final @NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) @Email String email
      The field for the email record component.
    • password

      @NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) private final @NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) String password
      The field for the password record component.
  • Constructor Details

    • RegisterRequest

      public RegisterRequest(@NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) @NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) String username, @NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) @Email @NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) @Email String email, @NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) @NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) String password)
      Creates an instance of a RegisterRequest record class.
      Parameters:
      username - the value for the username record component
      email - the value for the email record component
      password - the value for the password record component
  • Method Details

    • toString

      public String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • username

      @NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) public @NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) String username()
      Returns the value of the username record component.
      Returns:
      the value of the username record component
    • email

      @NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) @Email public @NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) @Email String email()
      Returns the value of the email record component.
      Returns:
      the value of the email record component
    • password

      @NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) public @NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) String password()
      Returns the value of the password record component.
      Returns:
      the value of the password record component