Record Class MessageInfo

java.lang.Object
java.lang.Record
edu.suffolk.litlab.efsp.db.model.MessageInfo

public record MessageInfo(UUID serverId, String fromEmail, Optional<SensitiveInfo<String>> sendgridApiKey, String subjectLine, String emailResponseTemplate, String confirmationSubjectLine, String emailConfirmation) extends Record
  • Constructor Details

    • MessageInfo

      public MessageInfo(UUID serverId, String fromEmail, Optional<SensitiveInfo<String>> sendgridApiKey, String subjectLine, String emailResponseTemplate, String confirmationSubjectLine, String emailConfirmation)
      Creates an instance of a MessageInfo record class.
      Parameters:
      serverId - the value for the serverId record component
      fromEmail - the value for the fromEmail record component
      sendgridApiKey - the value for the sendgridApiKey record component
      subjectLine - the value for the subjectLine record component
      emailResponseTemplate - the value for the emailResponseTemplate record component
      confirmationSubjectLine - the value for the confirmationSubjectLine record component
      emailConfirmation - the value for the emailConfirmation record component
    • MessageInfo

      public MessageInfo(UUID serverId, String fromEmail, String sendgridApiKey, String subjectLine, String emailResponseTemplate, String confirmationSubjectLine, String emailConfirmation)
    • MessageInfo

      public MessageInfo(UUID serverId, String fromEmail, String subjectLine, String emailResponseTemplate, String confirmationSubjectLine, String emailConfirmation)
    • MessageInfo

      public MessageInfo(com.fasterxml.jackson.databind.JsonNode node)
  • Method Details

    • overlayOn

      public MessageInfo overlayOn(MessageInfo newInfo)
    • 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.
    • serverId

      public UUID serverId()
      Returns the value of the serverId record component.
      Returns:
      the value of the serverId record component
    • fromEmail

      public String fromEmail()
      Returns the value of the fromEmail record component.
      Returns:
      the value of the fromEmail record component
    • sendgridApiKey

      public Optional<SensitiveInfo<String>> sendgridApiKey()
      Returns the value of the sendgridApiKey record component.
      Returns:
      the value of the sendgridApiKey record component
    • subjectLine

      public String subjectLine()
      Returns the value of the subjectLine record component.
      Returns:
      the value of the subjectLine record component
    • emailResponseTemplate

      public String emailResponseTemplate()
      Returns the value of the emailResponseTemplate record component.
      Returns:
      the value of the emailResponseTemplate record component
    • confirmationSubjectLine

      public String confirmationSubjectLine()
      Returns the value of the confirmationSubjectLine record component.
      Returns:
      the value of the confirmationSubjectLine record component
    • emailConfirmation

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