Package ch.rswk.meta.engine.test
Record Class GatewayMockService.ReceivedEmail
java.lang.Object
java.lang.Record
ch.rswk.meta.engine.test.GatewayMockService.ReceivedEmail
- Enclosing class:
GatewayMockService
public static record GatewayMockService.ReceivedEmail(@Nullable String emailReplyTo, String emailSender, GatewayService.EmailRequest request)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable String
The field for theemailReplyTo
record component.private final String
The field for theemailSender
record component.private final GatewayService.EmailRequest
The field for therequest
record component. -
Constructor Summary
ConstructorsConstructorDescriptionReceivedEmail
(@Nullable String emailReplyTo, String emailSender, GatewayService.EmailRequest request) Creates an instance of aReceivedEmail
record class. -
Method Summary
Modifier and TypeMethodDescription@Nullable String
Returns the value of theemailReplyTo
record component.Returns the value of theemailSender
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.request()
Returns the value of therequest
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
emailReplyTo
The field for theemailReplyTo
record component. -
emailSender
The field for theemailSender
record component. -
request
The field for therequest
record component.
-
-
Constructor Details
-
ReceivedEmail
public ReceivedEmail(@Nullable String emailReplyTo, String emailSender, GatewayService.EmailRequest request) Creates an instance of aReceivedEmail
record class.- Parameters:
emailReplyTo
- the value for theemailReplyTo
record componentemailSender
- the value for theemailSender
record componentrequest
- the value for therequest
record 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. All components in this record class are compared withObjects::equals(Object,Object)
. -
emailReplyTo
Returns the value of theemailReplyTo
record component.- Returns:
- the value of the
emailReplyTo
record component
-
emailSender
Returns the value of theemailSender
record component.- Returns:
- the value of the
emailSender
record component
-
request
Returns the value of therequest
record component.- Returns:
- the value of the
request
record component
-