Package org.techbd.service.http
Record Class GitHubUsersService.AuthorizedUser
java.lang.Object
java.lang.Record
org.techbd.service.http.GitHubUsersService.AuthorizedUser
- Enclosing class:
GitHubUsersService
-
Constructor Summary
ConstructorDescriptionAuthorizedUser
(String name, String emailPrimary, String profilePicUrl, String gitHubId, String tenantId, Map<String, GitHubUsersService.Resource> resources) Creates an instance of aAuthorizedUser
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theemailPrimary
record component.final boolean
Indicates whether some other object is "equal to" this one.gitHubId()
Returns the value of thegitHubId
record component.final int
hashCode()
Returns a hash code value for this object.boolean
name()
Returns the value of thename
record component.Returns the value of theprofilePicUrl
record component.Returns the value of theresources
record component.tenantId()
Returns the value of thetenantId
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
AuthorizedUser
public AuthorizedUser(String name, String emailPrimary, String profilePicUrl, String gitHubId, String tenantId, Map<String, GitHubUsersService.Resource> resources) Creates an instance of aAuthorizedUser
record class.- Parameters:
name
- the value for thename
record componentemailPrimary
- the value for theemailPrimary
record componentprofilePicUrl
- the value for theprofilePicUrl
record componentgitHubId
- the value for thegitHubId
record componenttenantId
- the value for thetenantId
record componentresources
- the value for theresources
record component
-
-
Method Details
-
isUserHasActuatorAccess
public boolean isUserHasActuatorAccess() -
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)
. -
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
emailPrimary
Returns the value of theemailPrimary
record component.- Returns:
- the value of the
emailPrimary
record component
-
profilePicUrl
Returns the value of theprofilePicUrl
record component.- Returns:
- the value of the
profilePicUrl
record component
-
gitHubId
Returns the value of thegitHubId
record component.- Returns:
- the value of the
gitHubId
record component
-
tenantId
Returns the value of thetenantId
record component.- Returns:
- the value of the
tenantId
record component
-
resources
Returns the value of theresources
record component.- Returns:
- the value of the
resources
record component
-