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 StringThe field for theemailReplyTorecord component.private final StringThe field for theemailSenderrecord component.private final GatewayService.EmailRequestThe field for therequestrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionReceivedEmail(@Nullable String emailReplyTo, String emailSender, GatewayService.EmailRequest request) Creates an instance of aReceivedEmailrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable StringReturns the value of theemailReplyTorecord component.Returns the value of theemailSenderrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.request()Returns the value of therequestrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
emailReplyTo
The field for theemailReplyTorecord component. -
emailSender
The field for theemailSenderrecord component. -
request
The field for therequestrecord component.
-
-
Constructor Details
-
ReceivedEmail
public ReceivedEmail(@Nullable String emailReplyTo, String emailSender, GatewayService.EmailRequest request) Creates an instance of aReceivedEmailrecord class.- Parameters:
emailReplyTo- the value for theemailReplyTorecord componentemailSender- the value for theemailSenderrecord componentrequest- the value for therequestrecord 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 theemailReplyTorecord component.- Returns:
- the value of the
emailReplyTorecord component
-
emailSender
Returns the value of theemailSenderrecord component.- Returns:
- the value of the
emailSenderrecord component
-
request
Returns the value of therequestrecord component.- Returns:
- the value of the
requestrecord component
-