com.mailgun.model.templates.TemplateRequest Maven / Gradle / Ivy
Show all versions of mailgun-java Show documentation
package com.mailgun.model.templates;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;
/**
*
* Template request.
*
*
* @see Templates
*/
@Getter
@ToString
@EqualsAndHashCode
@Builder
public class TemplateRequest {
/**
*
* Name of the template being created.
*
*
* The name can contain alpha characters, digits and next symbols: .-_~
*
*/
String name;
/**
*
* Description of the template being created.
*
*/
String description;
/**
*
* (Optional) Content of the template.
*
*/
String template;
/**
*
* (Optional) Initial tag of the created version. If template parameter is provided and tag is missing default value initial is used.
*
*
* The tag can contain alpha characters, digits and next symbols: .-_~
*
*/
String tag;
/**
*
* (Optional) The template engine to use to render the template.
* Valid only if template parameter is provided.
*
*
* Currently the API supports only one engine: handlebars
.
*
*/
String engine;
/**
*
* (Optional) Version comment.
* Valid only if new version is being created (template parameter is provided);
*
*/
String comment;
}