Record Class OutlookMail
java.lang.Object
java.lang.Record
ch.tocco.nice2.messaging.mail.api.OutlookMail
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattachments
record component.bcc()
Returns the value of thebcc
record component.body()
Returns the value of thebody
record component.cc()
Returns the value of thecc
record component.Returns the value of thedateTimeCreated
record component.final boolean
Indicates whether some other object is "equal to" this one.from()
Returns the value of thefrom
record component.final int
hashCode()
Returns a hash code value for this object.headers()
Returns the value of theheaders
record component.Returns the value of themessageId
record component.subject()
Returns the value of thesubject
record component.to()
Returns the value of theto
record component.final String
toString()
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 aOutlookMail
record class.- Parameters:
messageId
- the value for themessageId
record componentfrom
- the value for thefrom
record componentto
- the value for theto
record componentcc
- the value for thecc
record componentbcc
- the value for thebcc
record componentsubject
- the value for thesubject
record componentbody
- the value for thebody
record componentdateTimeCreated
- the value for thedateTimeCreated
record componentheaders
- the value for theheaders
record componentattachments
- the value for theattachments
record 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 themessageId
record component.- Returns:
- the value of the
messageId
record component
-
from
Returns the value of thefrom
record component.- Returns:
- the value of the
from
record component
-
to
Returns the value of theto
record component.- Returns:
- the value of the
to
record component
-
cc
Returns the value of thecc
record component.- Returns:
- the value of the
cc
record component
-
bcc
Returns the value of thebcc
record component.- Returns:
- the value of the
bcc
record component
-
subject
Returns the value of thesubject
record component.- Returns:
- the value of the
subject
record component
-
body
Returns the value of thebody
record component.- Returns:
- the value of the
body
record component
-
dateTimeCreated
Returns the value of thedateTimeCreated
record component.- Returns:
- the value of the
dateTimeCreated
record component
-
headers
Returns the value of theheaders
record component.- Returns:
- the value of the
headers
record component
-
attachments
Returns the value of theattachments
record component.- Returns:
- the value of the
attachments
record component
-