Package com.adobe.testing.s3mock.dto
Record Class CanonicalUser
java.lang.Object
java.lang.Record
com.adobe.testing.s3mock.dto.CanonicalUser
- All Implemented Interfaces:
Grantee
-
Field Summary
Fields inherited from interface com.adobe.testing.s3mock.dto.Grantee
ALL_USERS_URI, AUTHENTICATED_USERS_URI, LOG_DELIVERY_URI -
Constructor Summary
ConstructorsConstructorDescriptionCanonicalUser(String id, String displayName, String emailAddress, URI uri) Creates an instance of aCanonicalUserrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedisplayNamerecord component.Returns the value of theemailAddressrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.final StringtoString()Returns a string representation of this record class.uri()Returns the value of theurirecord component.
-
Constructor Details
-
CanonicalUser
Creates an instance of aCanonicalUserrecord class.- Parameters:
id- the value for theidrecord componentdisplayName- the value for thedisplayNamerecord componentemailAddress- the value for theemailAddressrecord componenturi- the value for theurirecord component
-
-
Method Details
-
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). -
id
Returns the value of theidrecord component. -
displayName
Returns the value of thedisplayNamerecord component.- Specified by:
displayNamein interfaceGrantee- Returns:
- the value of the
displayNamerecord component
-
emailAddress
Returns the value of theemailAddressrecord component.- Specified by:
emailAddressin interfaceGrantee- Returns:
- the value of the
emailAddressrecord component
-
uri
Returns the value of theurirecord component.
-