com.mailgun.model.templates.TemplateWithVersion Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mailgun-java Show documentation
Show all versions of mailgun-java Show documentation
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 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 with version.
*
*
* @see Templates
*/
@Value
@Jacksonized
@Builder
@JsonIgnoreProperties(ignoreUnknown = true)
public class TemplateWithVersion {
/**
*
* 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;
/**
*
* {@link TemplateVersion}.
*
*/
TemplateVersion version;
}