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:
  • 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 a MailSettings record class.
      Parameters:
      provider - the value for the provider record component
      senderId - the value for the senderId record component
      executionDate - the value for the executionDate record component
      expiryDate - the value for the expiryDate record component
      contactCategoryKey - the value for the contactCategoryKey record component
      languageKey - the value for the languageKey record component
      sendTestMail - the value for the sendTestMail record component
      useAlternativeEmail - the value for the useAlternativeEmail record component
      localized - the value for the localized record component
      formProperties - the value for the formProperties record component
      additionalRecipients - the value for the additionalRecipients record component
      recipientOptions - the value for the recipientOptions record component
  • Method Details

    • getHtmlText

      public String getHtmlText(String locale)
    • getPlainText

      public String getPlainText(String locale)
    • getSubject

      public String getSubject(String locale)
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • provider

      public String provider()
      Returns the value of the provider record component.
      Returns:
      the value of the provider record component
    • senderId

      public String senderId()
      Returns the value of the senderId record component.
      Returns:
      the value of the senderId record component
    • executionDate

      @Nullable public @Nullable org.joda.time.DateTime executionDate()
      Returns the value of the executionDate record component.
      Returns:
      the value of the executionDate record component
    • expiryDate

      @Nullable public @Nullable org.joda.time.LocalDate expiryDate()
      Returns the value of the expiryDate record component.
      Returns:
      the value of the expiryDate record component
    • contactCategoryKey

      @Nullable public @Nullable String contactCategoryKey()
      Returns the value of the contactCategoryKey record component.
      Returns:
      the value of the contactCategoryKey record component
    • languageKey

      @Nullable public @Nullable String languageKey()
      Returns the value of the languageKey record component.
      Returns:
      the value of the languageKey record component
    • sendTestMail

      public boolean sendTestMail()
      Returns the value of the sendTestMail record component.
      Returns:
      the value of the sendTestMail record component
    • useAlternativeEmail

      public boolean useAlternativeEmail()
      Returns the value of the useAlternativeEmail record component.
      Returns:
      the value of the useAlternativeEmail record component
    • localized

      Returns the value of the localized record component.
      Returns:
      the value of the localized record component
    • formProperties

      public FormProperties formProperties()
      Returns the value of the formProperties record component.
      Returns:
      the value of the formProperties record component
    • additionalRecipients

      public MailSettings.AdditionalRecipients additionalRecipients()
      Returns the value of the additionalRecipients record component.
      Returns:
      the value of the additionalRecipients record component
    • recipientOptions

      public MailSettings.RecipientOptions recipientOptions()
      Returns the value of the recipientOptions record component.
      Returns:
      the value of the recipientOptions record component