io.aws.lambda.events.kinesis.KinesisAnalyticsInputPreprocessingResponse 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;
/**
* Response model for Kinesis Analytics Preprocessing Lambda function.
*/
@Data
@Accessors(chain = true)
public class KinesisAnalyticsInputPreprocessingResponse implements Serializable {
public enum Result {
/**
* Indicates that processing of this item succeeded.
*/
Ok,
/**
* Indicate that the processing of this item failed
*/
ProcessingFailed,
/**
* Indicates that this item should be silently dropped
*/
Dropped
}
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 Result result;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy