Record Class OutlookMail
java.lang.Object
java.lang.Record
ch.tocco.nice2.messaging.mail.api.OutlookMail
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattachmentsrecord component.bcc()Returns the value of thebccrecord component.body()Returns the value of thebodyrecord component.cc()Returns the value of theccrecord component.Returns the value of thedateTimeCreatedrecord component.final booleanIndicates whether some other object is "equal to" this one.from()Returns the value of thefromrecord component.final inthashCode()Returns a hash code value for this object.headers()Returns the value of theheadersrecord component.Returns the value of themessageIdrecord 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
-
OutlookMail
public OutlookMail(String messageId, String from, List<String> to, List<String> cc, List<String> bcc, String subject, String body, String dateTimeCreated, List<String> headers, List<OutlookMail.OutlookAttachment> attachments) Creates an instance of aOutlookMailrecord class.- Parameters:
messageId- the value for themessageIdrecord componentfrom- the value for thefromrecord componentto- the value for thetorecord componentcc- the value for theccrecord componentbcc- the value for thebccrecord componentsubject- the value for thesubjectrecord componentbody- the value for thebodyrecord componentdateTimeCreated- the value for thedateTimeCreatedrecord componentheaders- the value for theheadersrecord componentattachments- the value for theattachmentsrecord 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). -
messageId
Returns the value of themessageIdrecord component.- Returns:
- the value of the
messageIdrecord component
-
from
Returns the value of thefromrecord component.- Returns:
- the value of the
fromrecord component
-
to
-
cc
-
bcc
-
subject
Returns the value of thesubjectrecord component.- Returns:
- the value of the
subjectrecord component
-
body
Returns the value of thebodyrecord component.- Returns:
- the value of the
bodyrecord component
-
dateTimeCreated
Returns the value of thedateTimeCreatedrecord component.- Returns:
- the value of the
dateTimeCreatedrecord component
-
headers
-
attachments
Returns the value of theattachmentsrecord component.- Returns:
- the value of the
attachmentsrecord component
-