Record Class UserProfileResponse

java.lang.Object
java.lang.Record
com.chaosguide.iam.vertex.client.dto.UserProfileResponse
Record Components:
email - nullable primary EMAIL projection; users without email are valid
username - nullable primary USERNAME projection

public record UserProfileResponse(String userId, String applicationId, String globalIdentityId, String email, boolean emailVerified, String username, String displayName, String avatarUrl, String status, String createdAt, String updatedAt, AccountOrganizationResponse currentOrganization) extends Record
Response shape returned by GET /api/v1/auth/me/profile.

Authorization roles and permissions belong to AccountPermissionSummaryResponse, not the profile. Nullable profile values are preserved as returned by IAM.

  • Constructor Details

    • UserProfileResponse

      public UserProfileResponse(String userId, String applicationId, String globalIdentityId, String email, boolean emailVerified, String username, String displayName, String avatarUrl, String status, String createdAt, String updatedAt, AccountOrganizationResponse currentOrganization)
      Creates an instance of a UserProfileResponse record class.
      Parameters:
      userId - the value for the userId record component
      applicationId - the value for the applicationId record component
      globalIdentityId - the value for the globalIdentityId record component
      email - the value for the email record component
      emailVerified - the value for the emailVerified record component
      username - the value for the username record component
      displayName - the value for the displayName record component
      avatarUrl - the value for the avatarUrl record component
      status - the value for the status record component
      createdAt - the value for the createdAt record component
      updatedAt - the value for the updatedAt record component
      currentOrganization - the value for the currentOrganization 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      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.
    • userId

      public String userId()
      Returns the value of the userId record component.
      Returns:
      the value of the userId record component
    • applicationId

      public String applicationId()
      Returns the value of the applicationId record component.
      Returns:
      the value of the applicationId record component
    • globalIdentityId

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

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

      public boolean emailVerified()
      Returns the value of the emailVerified record component.
      Returns:
      the value of the emailVerified record component
    • username

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

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

      public String avatarUrl()
      Returns the value of the avatarUrl record component.
      Returns:
      the value of the avatarUrl record component
    • status

      public String status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • createdAt

      public String createdAt()
      Returns the value of the createdAt record component.
      Returns:
      the value of the createdAt record component
    • updatedAt

      public String updatedAt()
      Returns the value of the updatedAt record component.
      Returns:
      the value of the updatedAt record component
    • currentOrganization

      public AccountOrganizationResponse currentOrganization()
      Returns the value of the currentOrganization record component.
      Returns:
      the value of the currentOrganization record component