![JAR search and dependency download from the Maven repository](/logo.png)
io.timson.firehose.request.S3DeliveryStreamConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of firehose-mock Show documentation
Show all versions of firehose-mock Show documentation
An embedded Java mock for AWS Kinesis Firehose
package io.timson.firehose.request;
import com.amazonaws.services.kinesisfirehose.model.CompressionFormat;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.HashMap;
import java.util.Map;
public class S3DeliveryStreamConfig {
@JsonProperty("BucketARN")
private String s3BucketArn;
@JsonProperty("Prefix")
private String s3Prefix;
@JsonProperty("CompressionFormat")
private CompressionFormat compressionFormat;
private Integer bufferIntervalSeconds;
private Integer bufferSizeMb;
private Map otherProperties = new HashMap<>();
@JsonProperty("BufferingHints")
public void setBuffer(Map bufferConfig) {
this.bufferIntervalSeconds = (Integer) bufferConfig.get("IntervalInSeconds");
this.bufferSizeMb = (Integer) bufferConfig.get("SizeInMBs");
}
@JsonAnyGetter
public Map any() {
return otherProperties;
}
@JsonAnySetter
public void set(String name, Object value) {
otherProperties.put(name, value);
}
public String getS3BucketArn() {
return s3BucketArn;
}
public String getS3Prefix() {
return s3Prefix;
}
public CompressionFormat getCompressionFormat() {
return compressionFormat;
}
public Integer getBufferIntervalSeconds() {
return bufferIntervalSeconds;
}
public Integer getBufferSizeMB() {
return bufferSizeMb;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy