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

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

Go to download

The Mailgun SDK for Java enables Java developers to work with Mailgun API efficiently.

The newest version!
package com.mailgun.model.templates;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Builder;
import lombok.Value;
import lombok.extern.jackson.Jacksonized;

import java.time.ZonedDateTime;

import static com.mailgun.util.Constants.ENGLISH;
import static com.mailgun.util.Constants.RFC_2822_DATE_TIME_PATTERN_TIME_ZONE_NAME;

/**
 * 

* Template versions. *

* * @see Templates */ @Value @Jacksonized @Builder @JsonInclude(JsonInclude.Include.NON_NULL) @JsonIgnoreProperties(ignoreUnknown = true) public class TemplateVersions { /** *

* Template version id. *

*/ String id; /** *

* Flag whether the version is active. *

*/ Boolean active; /** *

* The tag of the template version. *

*/ String tag; /** *

* The template engine to use to render the template. *

*/ String engine; String mjml; /** *

* Template version creation time. *

* {@link ZonedDateTime} */ @JsonFormat(pattern = RFC_2822_DATE_TIME_PATTERN_TIME_ZONE_NAME, locale = ENGLISH) ZonedDateTime createdAt; /** *

* (Optional) Version comment. * Valid only if new version is being created (template parameter is provided); *

*/ String comment; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy