io.aws.lambda.events.kinesis.KinesisAnalyticsOutputDeliveryResponse 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 Lambda Output delivery.
*/
@Data
@Accessors(chain = true)
public class KinesisAnalyticsOutputDeliveryResponse implements Serializable {
public enum Result {
/**
* Indicates that record has been delivered successfully.
*/
Ok,
/**
* Indicates that the delivery of the record failed.
*/
DeliveryFailed
}
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