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.DateTime executionDate, @Nullable org.joda.time.LocalDate expiryDate, @Nullable String contactCategoryKey, @Nullable String languageKey, boolean sendTestMail, boolean useAlternativeEmail, Map<String,MailSettings.LocalizedMailSettings> localized, FormProperties formProperties, MailSettings.AdditionalRecipients additionalRecipients, MailSettings.RecipientOptions recipientOptions)
extends Record
implements Serializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionMailSettings(String provider, String senderId, @Nullable org.joda.time.DateTime executionDate, @Nullable org.joda.time.LocalDate expiryDate, @Nullable String contactCategoryKey, @Nullable String languageKey, boolean sendTestMail, boolean useAlternativeEmail, Map<String, MailSettings.LocalizedMailSettings> localized, FormProperties formProperties, MailSettings.AdditionalRecipients additionalRecipients, MailSettings.RecipientOptions recipientOptions) Creates an instance of aMailSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadditionalRecipientsrecord component.@Nullable StringReturns the value of thecontactCategoryKeyrecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable org.joda.time.DateTimeReturns the value of theexecutionDaterecord component.@Nullable org.joda.time.LocalDateReturns the value of theexpiryDaterecord component.Returns the value of theformPropertiesrecord component.getHtmlText(String locale) getPlainText(String locale) getSubject(String locale) final inthashCode()Returns a hash code value for this object.@Nullable StringReturns the value of thelanguageKeyrecord component.Returns the value of thelocalizedrecord component.provider()Returns the value of theproviderrecord component.Returns the value of therecipientOptionsrecord component.senderId()Returns the value of thesenderIdrecord component.booleanReturns the value of thesendTestMailrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theuseAlternativeEmailrecord component.
-
Constructor Details
-
MailSettings
public MailSettings(String provider, String senderId, @Nullable @Nullable org.joda.time.DateTime executionDate, @Nullable @Nullable org.joda.time.LocalDate expiryDate, @Nullable @Nullable String contactCategoryKey, @Nullable @Nullable String languageKey, boolean sendTestMail, boolean useAlternativeEmail, Map<String, MailSettings.LocalizedMailSettings> localized, FormProperties formProperties, MailSettings.AdditionalRecipients additionalRecipients, MailSettings.RecipientOptions recipientOptions) Creates an instance of aMailSettingsrecord class.- Parameters:
provider- the value for theproviderrecord componentsenderId- the value for thesenderIdrecord componentexecutionDate- the value for theexecutionDaterecord componentexpiryDate- the value for theexpiryDaterecord componentcontactCategoryKey- the value for thecontactCategoryKeyrecord componentlanguageKey- the value for thelanguageKeyrecord componentsendTestMail- the value for thesendTestMailrecord componentuseAlternativeEmail- the value for theuseAlternativeEmailrecord componentlocalized- the value for thelocalizedrecord componentformProperties- the value for theformPropertiesrecord componentadditionalRecipients- the value for theadditionalRecipientsrecord componentrecipientOptions- the value for therecipientOptionsrecord component
-
-
Method Details
-
getHtmlText
-
getPlainText
-
getSubject
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
provider
Returns the value of theproviderrecord component.- Returns:
- the value of the
providerrecord component
-
senderId
Returns the value of thesenderIdrecord component.- Returns:
- the value of the
senderIdrecord component
-
executionDate
@Nullable public @Nullable org.joda.time.DateTime executionDate()Returns the value of theexecutionDaterecord component.- Returns:
- the value of the
executionDaterecord component
-
expiryDate
@Nullable public @Nullable org.joda.time.LocalDate expiryDate()Returns the value of theexpiryDaterecord component.- Returns:
- the value of the
expiryDaterecord component
-
contactCategoryKey
Returns the value of thecontactCategoryKeyrecord component.- Returns:
- the value of the
contactCategoryKeyrecord component
-
languageKey
Returns the value of thelanguageKeyrecord component.- Returns:
- the value of the
languageKeyrecord component
-
sendTestMail
public boolean sendTestMail()Returns the value of thesendTestMailrecord component.- Returns:
- the value of the
sendTestMailrecord component
-
useAlternativeEmail
public boolean useAlternativeEmail()Returns the value of theuseAlternativeEmailrecord component.- Returns:
- the value of the
useAlternativeEmailrecord component
-
localized
Returns the value of thelocalizedrecord component.- Returns:
- the value of the
localizedrecord component
-
formProperties
Returns the value of theformPropertiesrecord component.- Returns:
- the value of the
formPropertiesrecord component
-
additionalRecipients
Returns the value of theadditionalRecipientsrecord component.- Returns:
- the value of the
additionalRecipientsrecord component
-
recipientOptions
Returns the value of therecipientOptionsrecord component.- Returns:
- the value of the
recipientOptionsrecord component
-