Record Class AuthAccountUpdate
java.lang.Object
java.lang.Record
com.cloudforge.core.manager.auth.AuthAccountUpdate
- Record Components:
email-nullto leave unchangeddisplayName- local-only concept, ignored byCognitoAuthBackend;nullto leave unchangedrole-nullto leave unchangedenabled- Cognito-only (account enable/disable); ignored byLocalH2AuthBackend;nullto leave unchangednewPassword- local-only password reset; ignored byCognitoAuthBackend;nullto leave unchangedlinkedAccountId-nullto leave unchanged; non-null sets/replaces the cross-backend link — seeAuthAccount.linkedAccountId()
public record AuthAccountUpdate(String email, String displayName, String role, Boolean enabled, String newPassword, String linkedAccountId)
extends Record
Partial update for
AuthBackend.updateAccount(String, AuthAccountUpdate) — every field is null/unset unless
the caller means to change it (no "clear this field" sentinel is needed; every field here is
meaningful when present and skipped when absent, matching the semantics of the
Map<String,Object> body-based updates this replaced).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedisplayNamerecord component.email()Returns the value of theemailrecord component.enabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelinkedAccountIdrecord component.Returns the value of thenewPasswordrecord component.role()Returns the value of therolerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AuthAccountUpdate
public AuthAccountUpdate(String email, String displayName, String role, Boolean enabled, String newPassword, String linkedAccountId) Creates an instance of aAuthAccountUpdaterecord class.- Parameters:
email- the value for theemailrecord componentdisplayName- the value for thedisplayNamerecord componentrole- the value for therolerecord componentenabled- the value for theenabledrecord componentnewPassword- the value for thenewPasswordrecord componentlinkedAccountId- the value for thelinkedAccountIdrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
email
-
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-
role
-
enabled
-
newPassword
Returns the value of thenewPasswordrecord component.- Returns:
- the value of the
newPasswordrecord component
-
linkedAccountId
Returns the value of thelinkedAccountIdrecord component.- Returns:
- the value of the
linkedAccountIdrecord component
-