Record Class EmailEnvelope
java.lang.Object
java.lang.Record
io.leandev.appfuse.notification.channel.EmailEnvelope
- Record Components:
to- 正本收件人位址cc- 副本收件人位址(可為空,不可為 null)subject- 主旨htmlBody- HTML 內文deliveryId- opaque 技術遞送識別;同一 Outbox 列重試時保持不變,供 provider idempotency; 舊呼叫端可為 null
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncc()Returns the value of theccrecord component.Returns the value of thedeliveryIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.htmlBody()Returns the value of thehtmlBodyrecord component.subject()Returns the value of thesubjectrecord component.to()Returns the value of thetorecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EmailEnvelope
public EmailEnvelope(String to, List<String> cc, String subject, String htmlBody, String deliveryId) Creates an instance of aEmailEnveloperecord class.- Parameters:
to- the value for thetorecord componentcc- the value for theccrecord componentsubject- the value for thesubjectrecord componenthtmlBody- the value for thehtmlBodyrecord componentdeliveryId- the value for thedeliveryIdrecord component
-
EmailEnvelope
-
-
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). -
to
-
cc
-
subject
-
htmlBody
-
deliveryId
Returns the value of thedeliveryIdrecord component.- Returns:
- the value of the
deliveryIdrecord component
-