argos/dmp-backend/notification-service/notification/src/main/java/gr/cite/notification/model/persist/notificationtemplate/FieldInfoPersist.java

55 lines
878 B
Java

package gr.cite.notification.model.persist.notificationtemplate;
import gr.cite.notification.common.types.notification.DataType;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
public class FieldInfoPersist {
@NotNull
@NotEmpty
private String key;
@NotNull
@NotEmpty
private DataType type;
@NotNull
@NotEmpty
private String value;
public FieldInfoPersist(String key, DataType type, String value) {
this.key = key;
this.type = type;
this.value = value;
}
public FieldInfoPersist() {
}
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public DataType getType() {
return type;
}
public void setType(DataType type) {
this.type = type;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
}