Record Class BlueMindVacation

java.lang.Object
java.lang.Record
org.exoplatform.bluemind.client.model.BlueMindVacation
Record Components:
enabled - whether the reply is on
start - the first instant, in epoch milliseconds, or null for none
end - the last instant, in epoch milliseconds, or null for none
subject - the reply's subject, or null
text - the plain-text body, or null
textHtml - the HTML body, or null

public record BlueMindVacation(boolean enabled, Long start, Long end, String subject, String text, String textHtml) extends Record
A mailbox's automatic reply as BlueMind stores it: the members of MailFilter.Vacation (core API javadoc 5.0.7563), read and written through _vacation. Texts are kept as the server holds them, line breaks and spaces included.
  • Constructor Details

    • BlueMindVacation

      public BlueMindVacation(boolean enabled, Long start, Long end, String subject, String text, String textHtml)
      Creates an instance of a BlueMindVacation record class.
      Parameters:
      enabled - the value for the enabled record component
      start - the value for the start record component
      end - the value for the end record component
      subject - the value for the subject record component
      text - the value for the text record component
      textHtml - the value for the textHtml record component
  • Method Details

    • 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.
    • enabled

      public boolean enabled()
      Returns the value of the enabled record component.
      Returns:
      the value of the enabled record component
    • start

      public Long start()
      Returns the value of the start record component.
      Returns:
      the value of the start record component
    • end

      public Long end()
      Returns the value of the end record component.
      Returns:
      the value of the end record component
    • subject

      public String subject()
      Returns the value of the subject record component.
      Returns:
      the value of the subject record component
    • text

      public String text()
      Returns the value of the text record component.
      Returns:
      the value of the text record component
    • textHtml

      public String textHtml()
      Returns the value of the textHtml record component.
      Returns:
      the value of the textHtml record component