Package app.portaki.sdk.email
Record Class ModuleEmailContent
java.lang.Object
java.lang.Record
app.portaki.sdk.email.ModuleEmailContent
public record ModuleEmailContent(LocalizedText subject, LocalizedText body, Optional<ModuleEmailCta> cta)
extends Record
Contenu fourni par le module pour un envoi. Texte brut uniquement ; la plateforme applique le
template HTML.
-
Constructor Summary
ConstructorsConstructorDescriptionModuleEmailContent(LocalizedText subject, LocalizedText body, Optional<ModuleEmailCta> cta) Creates an instance of aModuleEmailContentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbody()Returns the value of thebodyrecord component.cta()Returns the value of thectarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static ModuleEmailContentof(LocalizedText subject, LocalizedText body) static ModuleEmailContentof(LocalizedText subject, LocalizedText body, ModuleEmailCta cta) subject()Returns the value of thesubjectrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModuleEmailContent
Creates an instance of aModuleEmailContentrecord class.- Parameters:
subject- the value for thesubjectrecord componentbody- the value for thebodyrecord componentcta- the value for thectarecord component
-
-
Method Details
-
of
-
of
-
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). -
subject
Returns the value of thesubjectrecord component.- Returns:
- the value of the
subjectrecord component
-
body
Returns the value of thebodyrecord component.- Returns:
- the value of the
bodyrecord component
-
cta
Returns the value of thectarecord component.- Returns:
- the value of the
ctarecord component
-