Record Class Identity
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe provider that holds the identity. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for theemailrecord component.private final @NotNull @Valid UUIDThe field for theidrecord component.private final @Valid InstantThe field for thelastLoginAtrecord component.private final @NotNull @Valid InstantThe field for thelinkedAtrecord component.private final @NotNull Identity.ProviderEnumThe field for theproviderrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionemail()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 @Valid UUIDid()Returns the value of theidrecord component.@Valid InstantReturns the value of thelastLoginAtrecord component.@NotNull @Valid InstantlinkedAt()Returns the value of thelinkedAtrecord component.@NotNull Identity.ProviderEnumprovider()Returns the value of theproviderrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
id
The field for theidrecord component. -
provider
The field for theproviderrecord component. -
email
The field for theemailrecord component. -
linkedAt
The field for thelinkedAtrecord component. -
lastLoginAt
The field for thelastLoginAtrecord 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 aIdentityrecord class.- Parameters:
id- the value for theidrecord componentprovider- the value for theproviderrecord componentemail- the value for theemailrecord componentlinkedAt- the value for thelinkedAtrecord componentlastLoginAt- the value for thelastLoginAtrecord component
-
-
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
provider
Returns the value of theproviderrecord component.- Returns:
- the value of the
providerrecord component
-
email
Returns the value of theemailrecord component.- Returns:
- the value of the
emailrecord component
-
linkedAt
Returns the value of thelinkedAtrecord component.- Returns:
- the value of the
linkedAtrecord component
-
lastLoginAt
Returns the value of thelastLoginAtrecord component.- Returns:
- the value of the
lastLoginAtrecord component
-