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

io.aws.lambda.events.ScheduledEvent Maven / Gradle / Ivy


package io.aws.lambda.events;

import lombok.Data;
import lombok.experimental.Accessors;
import org.jetbrains.annotations.NotNull;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Collections;
import java.util.List;
import java.util.Map;

/**
 * represents a scheduled event
 */
@Data
@Accessors(chain = true)
public class ScheduledEvent implements Serializable {

    private String id;
    private String account;
    private String region;
    private String detailType;
    private String source;
    private LocalDateTime time;
    private List resources;
    private Map detail;

    public @NotNull List getResources() {
        return resources == null ? Collections.emptyList() : resources;
    }

    public @NotNull Map getDetail() {
        return detail == null ? Collections.emptyMap() : detail;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy