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 validusername- 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 Summary
ConstructorsConstructorDescriptionUserProfileResponse(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 aUserProfileResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theapplicationIdrecord component.Returns the value of theavatarUrlrecord component.Returns the value of thecreatedAtrecord component.Returns the value of thecurrentOrganizationrecord component.Returns the value of thedisplayNamerecord component.email()Returns the value of theemailrecord component.booleanReturns the value of theemailVerifiedrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theglobalIdentityIdrecord component.final inthashCode()Returns a hash code value for this object.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theupdatedAtrecord component.userId()Returns the value of theuserIdrecord component.username()Returns the value of theusernamerecord component.
-
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 aUserProfileResponserecord class.- Parameters:
userId- the value for theuserIdrecord componentapplicationId- the value for theapplicationIdrecord componentglobalIdentityId- the value for theglobalIdentityIdrecord componentemail- the value for theemailrecord componentemailVerified- the value for theemailVerifiedrecord componentusername- the value for theusernamerecord componentdisplayName- the value for thedisplayNamerecord componentavatarUrl- the value for theavatarUrlrecord componentstatus- the value for thestatusrecord componentcreatedAt- the value for thecreatedAtrecord componentupdatedAt- the value for theupdatedAtrecord componentcurrentOrganization- the value for thecurrentOrganizationrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
userId
Returns the value of theuserIdrecord component.- Returns:
- the value of the
userIdrecord component
-
applicationId
Returns the value of theapplicationIdrecord component.- Returns:
- the value of the
applicationIdrecord component
-
globalIdentityId
Returns the value of theglobalIdentityIdrecord component.- Returns:
- the value of the
globalIdentityIdrecord component
-
email
-
emailVerified
public boolean emailVerified()Returns the value of theemailVerifiedrecord component.- Returns:
- the value of the
emailVerifiedrecord component
-
username
-
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-
avatarUrl
Returns the value of theavatarUrlrecord component.- Returns:
- the value of the
avatarUrlrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
updatedAt
Returns the value of theupdatedAtrecord component.- Returns:
- the value of the
updatedAtrecord component
-
currentOrganization
Returns the value of thecurrentOrganizationrecord component.- Returns:
- the value of the
currentOrganizationrecord component
-