Interface CreateVersionRequest
public interface CreateVersionRequest
CreateVersionRequest
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceDedicated Builder -
Method Summary
Modifier and TypeMethodDescriptionstatic CreateVersionRequest.Builderbuilder()Getting builderIf this flag is set to yes, this version becomes activeComment related to the version that is being created.Key value JSON object of headers to be stored with the template.getTag()Tag of the version that is being created.Content of the template.
-
Method Details
-
getTemplate
String getTemplate()Content of the template.Field is required
- Returns:
- template
-
getTag
String getTag()Tag of the version that is being created. Must be unique to the template.Field is required
- Returns:
- tag
-
getComment
String getComment()Comment related to the version that is being created.- Returns:
- comment
-
getActive
Boolean getActive()If this flag is set to yes, this version becomes active- Returns:
- active
-
getHeaders
Collection<Pair<String,String>> getHeaders()Key value JSON object of headers to be stored with the template. Where key is the header name and value is the header value. The header namesFrom,Subject, andReply-Toare the only ones currently supported. These headers will be inserted into the MIME at the time we attempt delivery. Headers set at the message level will override headers set on the template. e.g. Setting the From header at the time of sending will override the From header saved on the template. Additionally, headers generated by templates are not reflected on the accepted event as they are not prepended to the message until the message is prepped for delivery. if a From header is not provided either in the message or template, we will default topostmaster@your-sending-domain.tld- Returns:
- headers
-
builder
Getting builder- Returns:
- New Builder instance
-