Record Class RegisterRequest
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
FieldsModifier and TypeFieldDescriptionprivate final @NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) @Email StringThe field for theemailrecord component.private final @NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) StringThe field for thepasswordrecord component.private final @NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) StringThe field for theusernamerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionRegisterRequest(@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 aRegisterRequestrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) @Email Stringemail()Returns the value of theemailrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) Stringpassword()Returns the value of thepasswordrecord component.toString()Returns a string representation of this record class.@NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) Stringusername()Returns the value of theusernamerecord component.
-
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 usernameThe field for theusernamerecord 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 emailThe field for theemailrecord 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 passwordThe field for thepasswordrecord 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 aRegisterRequestrecord class.
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
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 theusernamerecord component.- Returns:
- the value of the
usernamerecord 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 theemailrecord component.- Returns:
- the value of the
emailrecord 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 thepasswordrecord component.- Returns:
- the value of the
passwordrecord component
-