All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.dft.amazon.model.notifications.NotificationWrapper Maven / Gradle / Ivy

There is a newer version: 2.1.9
Show newest version
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;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy