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

io.aws.lambda.events.kinesis.KinesisAnalyticsStreamsInputPreprocessingEvent 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 pre-processing Kinesis Streams records through Kinesis
 * Analytics Lambda pre-processing function.
 */
@Data
@Accessors(chain = true)
public class KinesisAnalyticsStreamsInputPreprocessingEvent implements Serializable {

    private String invocationId;
    private String applicationArn;
    private String streamArn;
    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 KinesisStreamRecordMetadata kinesisStreamRecordMetadata;
        private byte[] data;

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

            private String sequenceNumber;
            private String partitionKey;
            private String shardId;
            private Long approximateArrivalTimestamp;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy