Record Class IncaMailRestClient.Message
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.incamail.impl.rest.IncaMailRestClient.Message
- Enclosing class:
IncaMailRestClient
public static record IncaMailRestClient.Message(IncaMailRestClient.MsgProperties props, IncaMailRestClient.MsgHeader header, List<IncaMailRestClient.MsgBody> bodies, List<IncaMailRestClient.MsgAttachment> attachments)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionMessage(IncaMailRestClient.MsgProperties props, IncaMailRestClient.MsgHeader header, List<IncaMailRestClient.MsgBody> bodies, List<IncaMailRestClient.MsgAttachment> attachments) Creates an instance of aMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattachmentsrecord component.bodies()Returns the value of thebodiesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.header()Returns the value of theheaderrecord component.props()Returns the value of thepropsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Message
public Message(IncaMailRestClient.MsgProperties props, IncaMailRestClient.MsgHeader header, List<IncaMailRestClient.MsgBody> bodies, List<IncaMailRestClient.MsgAttachment> attachments) Creates an instance of aMessagerecord class.- Parameters:
props- the value for thepropsrecord componentheader- the value for theheaderrecord componentbodies- the value for thebodiesrecord 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). -
props
Returns the value of thepropsrecord component.- Returns:
- the value of the
propsrecord component
-
header
Returns the value of theheaderrecord component.- Returns:
- the value of the
headerrecord component
-
bodies
Returns the value of thebodiesrecord component.- Returns:
- the value of the
bodiesrecord component
-
attachments
Returns the value of theattachmentsrecord component.- Returns:
- the value of the
attachmentsrecord component
-