com.geotab.model.entity.notification.EmailTemplate Maven / Gradle / Ivy
package com.geotab.model.entity.notification;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.geotab.model.entity.reporttemplate.ReportTemplate;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.SuperBuilder;
/**
* Stores custom email notifications.
*/
@Getter @Setter
@NoArgsConstructor
@SuperBuilder(builderMethodName = "emailTemplateBuilder")
@JsonIgnoreProperties({ "exceptionsDetailTemplateSqlId" })
public class EmailTemplate extends NotificationBinaryFile {
/**
* The email body.
*/
private String body;
/**
* Report template.
*/
private ReportTemplate exceptionsDetailTemplate;
/**
* Subject line of email.
*/
private String subject;
{
setFileType(MediaFileType.NOTIFICATION_EMAIL_TEMPLATE);
setType(NotificationBinaryFileType.EMAIL_TEMPLATE);
}
}