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 record
static final record
static 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 aMailSettings
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadditionalRecipients
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.DateTime
Returns the value of theexecutionDate
record component.@Nullable org.joda.time.LocalDate
Returns the value of theexpiryDate
record component.Returns the value of theformProperties
record component.getHtmlText
(String locale) getPlainText
(String locale) getSubject
(String locale) final int
hashCode()
Returns a hash code value for this object.@Nullable String
Returns the value of thelanguageKey
record component.Returns the value of thelocalized
record component.provider()
Returns the value of theprovider
record component.Returns the value of therecipientOptions
record component.senderId()
Returns the value of thesenderId
record component.boolean
Returns the value of thesendTestMail
record component.final String
toString()
Returns a string representation of this record class.boolean
Returns the value of theuseAlternativeEmail
record 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 aMailSettings
record class.- Parameters:
provider
- the value for theprovider
record componentsenderId
- the value for thesenderId
record componentexecutionDate
- the value for theexecutionDate
record componentexpiryDate
- the value for theexpiryDate
record componentcontactCategoryKey
- the value for thecontactCategoryKey
record componentlanguageKey
- the value for thelanguageKey
record componentsendTestMail
- the value for thesendTestMail
record componentuseAlternativeEmail
- the value for theuseAlternativeEmail
record componentlocalized
- the value for thelocalized
record componentformProperties
- the value for theformProperties
record componentadditionalRecipients
- the value for theadditionalRecipients
record componentrecipientOptions
- the value for therecipientOptions
record 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 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
-
executionDate
@Nullable public @Nullable org.joda.time.DateTime executionDate()Returns the value of theexecutionDate
record component.- Returns:
- the value of the
executionDate
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
-
sendTestMail
public boolean sendTestMail()Returns the value of thesendTestMail
record component.- Returns:
- the value of the
sendTestMail
record component
-
useAlternativeEmail
public boolean useAlternativeEmail()Returns the value of theuseAlternativeEmail
record component.- Returns:
- the value of the
useAlternativeEmail
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
-
additionalRecipients
Returns the value of theadditionalRecipients
record component.- Returns:
- the value of the
additionalRecipients
record component
-
recipientOptions
Returns the value of therecipientOptions
record component.- Returns:
- the value of the
recipientOptions
record component
-