All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mailgun.model.templates.TemplateVersionRequest Maven / Gradle / Ivy

package com.mailgun.model.templates;

import com.mailgun.enums.YesNo;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;

/**
 * 

* Template new version request. *

* * @see Templates */ @Getter @ToString @EqualsAndHashCode @Builder public class TemplateVersionRequest { /** *

* 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) Template engine. *

*

* The only engine currently supported is handlebars. *

*/ String engine; /** *

* (Optional) Comments relating to the stored version. *

*/ String comment; /** *

* (Optional) If this flag is set to YES, this version becomes active. *

*/ String active; public static class TemplateVersionRequestBuilder { /** *

* (Optional) If this flag is set to TRUE, this version becomes active. *

* * @param active flag whether the version is active * @return Returns a reference to this object so that method calls can be chained together. */ public TemplateVersionRequest.TemplateVersionRequestBuilder active(boolean active) { if (active) { this.active = YesNo.YES.getValue(); } return this; } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy