io.github.dft.amazon.model.notifications.NotificationWrapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of amazon-sp-api Show documentation
Show all versions of amazon-sp-api Show documentation
Amazon SP API using JDK 11
package io.github.dft.amazon.model.notifications;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.github.dft.amazon.common.DateDeserializer;
import io.github.dft.amazon.common.DateSerializer;
import io.github.dft.amazon.common.LocalDateTimeDeserializer;
import io.github.dft.amazon.common.LocalDateTimeSerializer;
import lombok.Data;
import java.time.LocalDateTime;
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class NotificationWrapper {
private String id;
private String version;
@JsonProperty("detail-type")
private String detailType;
private String source;
private String account;
private String region;
private Detail detail;
@JsonSerialize(using = LocalDateTimeSerializer.class)
@JsonDeserialize(using = LocalDateTimeDeserializer.class)
private LocalDateTime time;
}