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:
  • 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 a MailSettings record class.
      Parameters:
      provider - the value for the provider record component
      senderId - the value for the senderId 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
      test - the value for the test record component
      localized - the value for the localized record component
      formProperties - the value for the formProperties record component
      alternateRecipients - the value for the alternateRecipients record component
  • Method Details

    • getHtmlText

      public String getHtmlText(String locale)
    • getPlainText

      public String getPlainText(String locale)
    • getSubject

      public String getSubject(String locale)
    • isTest

      public boolean isTest()
    • getCc

      public String getCc()
    • getBcc

      public String getBcc()
    • getReplyTo

      public String getReplyTo()
    • getSingleCc

      public String getSingleCc()
    • getBccRecipients

      public List<String> getBccRecipients()
    • getCcRecipient

      public List<String> getCcRecipient()
    • getAltRecipient

      public String getAltRecipient()
    • getAltRecipientUser

      public String getAltRecipientUser()
    • getSingleccRecipient

      public List<String> getSingleccRecipient()
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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
    • 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
    • test

      @Nullable public @Nullable Boolean test()
      Returns the value of the test record component.
      Returns:
      the value of the test record component
    • localized

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

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

      @Nullable public @Nullable MailSettings.RecipientSettings alternateRecipients()
      Returns the value of the alternateRecipients record component.
      Returns:
      the value of the alternateRecipients record component