java.lang.Object
java.lang.Record
com.irurueta.authserver.authorization.api.web.v1.generated.model.Identity
Record Components:
id - Identifier of the link.
provider - The provider that holds the identity.
email - E-mail address the provider reported when the identity was last used, if any.
linkedAt - When the identity was linked to the account.
lastLoginAt - When the identity was last used to sign in, or null when it has not been used since it was linked.

@Generated(value="org.openapitools.codegen.languages.SpringCodegen", date="2026-11-08T20:21:45.782821081Z[Etc/UTC]", comments="Generator version: 7.27.0") public record Identity(@NotNull @Valid UUID id, @NotNull Identity.ProviderEnum provider, String email, @NotNull @Valid Instant linkedAt, @Valid Instant lastLoginAt) extends Record
An identity of an external provider linked to the account
  • Field Details

    • id

      @NotNull @Valid private final @NotNull @Valid UUID id
      The field for the id record component.
    • provider

      @NotNull private final @NotNull Identity.ProviderEnum provider
      The field for the provider record component.
    • email

      @Nullable private final String email
      The field for the email record component.
    • linkedAt

      @DateTimeFormat(iso=DATE_TIME) @NotNull @Valid private final @NotNull @Valid Instant linkedAt
      The field for the linkedAt record component.
    • lastLoginAt

      @DateTimeFormat(iso=DATE_TIME) @Valid @Nullable private final @Valid Instant lastLoginAt
      The field for the lastLoginAt record component.
  • Constructor Details

    • Identity

      public Identity(@NotNull @Valid @NotNull @Valid UUID id, @NotNull @NotNull Identity.ProviderEnum provider, @Nullable String email, @DateTimeFormat(iso=DATE_TIME) @NotNull @Valid @NotNull @Valid Instant linkedAt, @DateTimeFormat(iso=DATE_TIME) @Valid @Nullable @Valid Instant lastLoginAt)
      Creates an instance of a Identity record class.
      Parameters:
      id - the value for the id record component
      provider - the value for the provider record component
      email - the value for the email record component
      linkedAt - the value for the linkedAt record component
      lastLoginAt - the value for the lastLoginAt record component
  • Method Details

    • toString

      public final 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.
    • id

      @NotNull @Valid public @NotNull @Valid UUID id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • provider

      @NotNull public @NotNull Identity.ProviderEnum provider()
      Returns the value of the provider record component.
      Returns:
      the value of the provider record component
    • email

      @Nullable public String email()
      Returns the value of the email record component.
      Returns:
      the value of the email record component
    • linkedAt

      @DateTimeFormat(iso=DATE_TIME) @NotNull @Valid public @NotNull @Valid Instant linkedAt()
      Returns the value of the linkedAt record component.
      Returns:
      the value of the linkedAt record component
    • lastLoginAt

      @DateTimeFormat(iso=DATE_TIME) @Valid @Nullable public @Valid Instant lastLoginAt()
      Returns the value of the lastLoginAt record component.
      Returns:
      the value of the lastLoginAt record component