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

io.aws.lambda.events.kinesis.KinesisAnalyticsOutputDeliveryEvent Maven / Gradle / Ivy


package io.aws.lambda.events.kinesis;

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

import java.io.Serializable;
import java.util.Collections;
import java.util.List;

/**
 * Event model for Kinesis Analytics Lambda output delivery.
 */
@Data
@Accessors(chain = true)
public class KinesisAnalyticsOutputDeliveryEvent implements Serializable {

    private String invocationId;
    private String applicationArn;
    private List records;

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

    @Data
    @Accessors(chain = true)
    public static class Record implements Serializable {

        private String recordId;
        private LambdaDeliveryRecordMetadata lambdaDeliveryRecordMetadata;
        private byte[] data;

        @Data
        @Accessors(chain = true)
        public static class LambdaDeliveryRecordMetadata implements Serializable {

            private long retryHint;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy