Record Class MailSettings
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.address.impl.action.mail.MailSettings
- All Implemented Interfaces:
Serializable
public record MailSettings(String provider, String senderId, @Nullable org.joda.time.LocalDate expiryDate, @Nullable String contactCategoryKey, @Nullable String languageKey, @Nullable Boolean test, Map<String,MailSettings.LocalizedMailSettings> localized, MailSettings.FormProperties formProperties, @Nullable MailSettings.RecipientSettings alternateRecipients)
extends Record
implements Serializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static final record
static final record
-
Constructor Summary
ConstructorsConstructorDescriptionMailSettings
(String provider, String senderId, @Nullable org.joda.time.LocalDate expiryDate, @Nullable String contactCategoryKey, @Nullable String languageKey, @Nullable Boolean test, Map<String, MailSettings.LocalizedMailSettings> localized, MailSettings.FormProperties formProperties, @Nullable MailSettings.RecipientSettings alternateRecipients) Creates an instance of aMailSettings
record class. -
Method Summary
Modifier and TypeMethodDescription@Nullable MailSettings.RecipientSettings
Returns the value of thealternateRecipients
record component.@Nullable String
Returns the value of thecontactCategoryKey
record component.final boolean
Indicates whether some other object is "equal to" this one.@Nullable org.joda.time.LocalDate
Returns the value of theexpiryDate
record component.Returns the value of theformProperties
record component.getBcc()
getCc()
getHtmlText
(String locale) getPlainText
(String locale) getSubject
(String locale) final int
hashCode()
Returns a hash code value for this object.boolean
isTest()
@Nullable String
Returns the value of thelanguageKey
record component.Returns the value of thelocalized
record component.provider()
Returns the value of theprovider
record component.senderId()
Returns the value of thesenderId
record component.@Nullable Boolean
test()
Returns the value of thetest
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
MailSettings
public MailSettings(String provider, String senderId, @Nullable @Nullable org.joda.time.LocalDate expiryDate, @Nullable @Nullable String contactCategoryKey, @Nullable @Nullable String languageKey, @Nullable @Nullable Boolean test, Map<String, MailSettings.LocalizedMailSettings> localized, MailSettings.FormProperties formProperties, @Nullable @Nullable MailSettings.RecipientSettings alternateRecipients) Creates an instance of aMailSettings
record class.- Parameters:
provider
- the value for theprovider
record componentsenderId
- the value for thesenderId
record componentexpiryDate
- the value for theexpiryDate
record componentcontactCategoryKey
- the value for thecontactCategoryKey
record componentlanguageKey
- the value for thelanguageKey
record componenttest
- the value for thetest
record componentlocalized
- the value for thelocalized
record componentformProperties
- the value for theformProperties
record componentalternateRecipients
- the value for thealternateRecipients
record component
-
-
Method Details
-
getHtmlText
-
getPlainText
-
getSubject
-
isTest
public boolean isTest() -
getCc
-
getBcc
-
getReplyTo
-
getSingleCc
-
getBccRecipients
-
getCcRecipient
-
getAltRecipient
-
getAltRecipientUser
-
getSingleccRecipient
-
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)
. -
provider
Returns the value of theprovider
record component.- Returns:
- the value of the
provider
record component
-
senderId
Returns the value of thesenderId
record component.- Returns:
- the value of the
senderId
record component
-
expiryDate
@Nullable public @Nullable org.joda.time.LocalDate expiryDate()Returns the value of theexpiryDate
record component.- Returns:
- the value of the
expiryDate
record component
-
contactCategoryKey
Returns the value of thecontactCategoryKey
record component.- Returns:
- the value of the
contactCategoryKey
record component
-
languageKey
Returns the value of thelanguageKey
record component.- Returns:
- the value of the
languageKey
record component
-
test
Returns the value of thetest
record component.- Returns:
- the value of the
test
record component
-
localized
Returns the value of thelocalized
record component.- Returns:
- the value of the
localized
record component
-
formProperties
Returns the value of theformProperties
record component.- Returns:
- the value of the
formProperties
record component
-
alternateRecipients
Returns the value of thealternateRecipients
record component.- Returns:
- the value of the
alternateRecipients
record component
-