Package edu.suffolk.litlab.efsp.db.model
Record Class MessageInfo
java.lang.Object
java.lang.Record
edu.suffolk.litlab.efsp.db.model.MessageInfo
-
Constructor Summary
ConstructorsConstructorDescriptionMessageInfo(com.fasterxml.jackson.databind.JsonNode node) MessageInfo(UUID serverId, String fromEmail, String subjectLine, String emailResponseTemplate, String confirmationSubjectLine, String emailConfirmation) MessageInfo(UUID serverId, String fromEmail, String sendgridApiKey, String subjectLine, String emailResponseTemplate, String confirmationSubjectLine, String emailConfirmation) MessageInfo(UUID serverId, String fromEmail, Optional<SensitiveInfo<String>> sendgridApiKey, String subjectLine, String emailResponseTemplate, String confirmationSubjectLine, String emailConfirmation) Creates an instance of aMessageInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconfirmationSubjectLinerecord component.Returns the value of theemailConfirmationrecord component.Returns the value of theemailResponseTemplaterecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefromEmailrecord component.final inthashCode()Returns a hash code value for this object.overlayOn(MessageInfo newInfo) Returns the value of thesendgridApiKeyrecord component.serverId()Returns the value of theserverIdrecord component.Returns the value of thesubjectLinerecord component.final StringtoString()Returns a string representation of this record class.
-
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 aMessageInforecord class.- Parameters:
serverId- the value for theserverIdrecord componentfromEmail- the value for thefromEmailrecord componentsendgridApiKey- the value for thesendgridApiKeyrecord componentsubjectLine- the value for thesubjectLinerecord componentemailResponseTemplate- the value for theemailResponseTemplaterecord componentconfirmationSubjectLine- the value for theconfirmationSubjectLinerecord componentemailConfirmation- the value for theemailConfirmationrecord component
-
MessageInfo
-
MessageInfo
-
MessageInfo
public MessageInfo(com.fasterxml.jackson.databind.JsonNode node)
-
-
Method Details
-
overlayOn
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
serverId
Returns the value of theserverIdrecord component.- Returns:
- the value of the
serverIdrecord component
-
fromEmail
Returns the value of thefromEmailrecord component.- Returns:
- the value of the
fromEmailrecord component
-
sendgridApiKey
Returns the value of thesendgridApiKeyrecord component.- Returns:
- the value of the
sendgridApiKeyrecord component
-
subjectLine
Returns the value of thesubjectLinerecord component.- Returns:
- the value of the
subjectLinerecord component
-
emailResponseTemplate
Returns the value of theemailResponseTemplaterecord component.- Returns:
- the value of the
emailResponseTemplaterecord component
-
confirmationSubjectLine
Returns the value of theconfirmationSubjectLinerecord component.- Returns:
- the value of the
confirmationSubjectLinerecord component
-
emailConfirmation
Returns the value of theemailConfirmationrecord component.- Returns:
- the value of the
emailConfirmationrecord component
-