Record Class IncaMailRestClient.MsgHeader
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.incamail.impl.rest.IncaMailRestClient.MsgHeader
- Enclosing class:
IncaMailRestClient
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbcc()Returns the value of thebccrecord component.cc()Returns the value of theccrecord 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.replyTo()Returns the value of thereplyTorecord 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
-
MsgHeader
public MsgHeader(String from, List<String> to, List<String> cc, List<String> bcc, List<String> replyTo, String subject) Creates an instance of aMsgHeaderrecord class.- Parameters:
from- the value for thefromrecord componentto- the value for thetorecord componentcc- the value for theccrecord componentbcc- the value for thebccrecord componentreplyTo- the value for thereplyTorecord componentsubject- the value for thesubjectrecord 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). -
from
Returns the value of thefromrecord component.- Returns:
- the value of the
fromrecord component
-
to
-
cc
-
bcc
-
replyTo
-
subject
Returns the value of thesubjectrecord component.- Returns:
- the value of the
subjectrecord component
-