Package software.xdev.brevo.model
Class TemplatePreviewRequestBody
java.lang.Object
software.xdev.brevo.model.TemplatePreviewRequestBody
TemplatePreviewRequestBody
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetEmail()Email of the contact.Key-value pairs of dynamic parameters for template rendering.ID of the template to previewinthashCode()voidvoidvoidsetTemplateId(Integer templateId) templateId(Integer templateId) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_TEMPLATE_ID
- See Also:
-
JSON_PROPERTY_EMAIL
- See Also:
-
JSON_PROPERTY_PARAMS
- See Also:
-
-
Constructor Details
-
TemplatePreviewRequestBody
public TemplatePreviewRequestBody()
-
-
Method Details
-
templateId
-
getTemplateId
ID of the template to preview- Returns:
- templateId
-
setTemplateId
-
email
-
getEmail
Email of the contact.(Required if params not provided)- Returns:
-
setEmail
-
params
-
getParams
Key-value pairs of dynamic parameters for template rendering.(Required if email not provided) for example **{\"Firstname\":\"John\", \"Lastname\":\"Doe\"}**- Returns:
- params
-
setParams
-
equals
-
hashCode
public int hashCode() -
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix- prefix of the query string- Returns:
- URL query string
-