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
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). -
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
Returns the value of thetorecord component.- Returns:
- the value of the
torecord component
-
cc
Returns the value of theccrecord component.- Returns:
- the value of the
ccrecord component
-
bcc
Returns the value of thebccrecord component.- Returns:
- the value of the
bccrecord component
-
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
Returns the value of theheadersrecord component.- Returns:
- the value of the
headersrecord component
-
attachments
Returns the value of theattachmentsrecord component.- Returns:
- the value of the
attachmentsrecord component
-