com.mailgun.model.templates.TemplateWithVersions Maven / Gradle / Ivy
package com.mailgun.model.templates;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Builder;
import lombok.Value;
import lombok.extern.jackson.Jacksonized;
import java.time.ZonedDateTime;
import java.util.List;
import static com.mailgun.util.Constants.ENGLISH;
import static com.mailgun.util.Constants.RFC_2822_DATE_TIME_PATTERN_TIME_ZONE_NAME;
/**
*
* Template with versions.
*
*
* @see Templates
*/
@Value
@Jacksonized
@Builder
@JsonIgnoreProperties(ignoreUnknown = true)
public class TemplateWithVersions {
/**
*
* Template id.
*
*/
String id;
/**
*
* Name of the template.
*
*/
String name;
/**
*
* Template description.
*
*/
String description;
/**
*
* Template creation time.
*
* {@link ZonedDateTime}
*/
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = RFC_2822_DATE_TIME_PATTERN_TIME_ZONE_NAME, locale = ENGLISH)
ZonedDateTime createdAt;
String createdBy;
/**
*
* List of {@link TemplateVersions}.
*
*/
List versions;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy