Record Class AuthAccountUpdate

java.lang.Object
java.lang.Record
com.cloudforge.core.manager.auth.AuthAccountUpdate
Record Components:
email - null to leave unchanged
displayName - local-only concept, ignored by CognitoAuthBackend; null to leave unchanged
role - null to leave unchanged
enabled - Cognito-only (account enable/disable); ignored by LocalH2AuthBackend; null to leave unchanged
newPassword - local-only password reset; ignored by CognitoAuthBackend; null to leave unchanged
linkedAccountId - null to leave unchanged; non-null sets/replaces the cross-backend link — see AuthAccount.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 Details

    • AuthAccountUpdate

      public AuthAccountUpdate(String email, String displayName, String role, Boolean enabled, String newPassword, String linkedAccountId)
      Creates an instance of a AuthAccountUpdate record class.
      Parameters:
      email - the value for the email record component
      displayName - the value for the displayName record component
      role - the value for the role record component
      enabled - the value for the enabled record component
      newPassword - the value for the newPassword record component
      linkedAccountId - the value for the linkedAccountId 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.
    • email

      public String email()
      Returns the value of the email record component.
      Returns:
      the value of the email record component
    • displayName

      public String displayName()
      Returns the value of the displayName record component.
      Returns:
      the value of the displayName record component
    • role

      public String role()
      Returns the value of the role record component.
      Returns:
      the value of the role record component
    • enabled

      public Boolean enabled()
      Returns the value of the enabled record component.
      Returns:
      the value of the enabled record component
    • newPassword

      public String newPassword()
      Returns the value of the newPassword record component.
      Returns:
      the value of the newPassword record component
    • linkedAccountId

      public String linkedAccountId()
      Returns the value of the linkedAccountId record component.
      Returns:
      the value of the linkedAccountId record component