io.github.randyridgley.cdk.datalake.constructs.DeliveryStreamProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cdk-datalake-constructs Show documentation
Show all versions of cdk-datalake-constructs Show documentation
AWS CDK Constructs that can be used to create datalakes/meshes and more
package io.github.randyridgley.cdk.datalake.constructs;
/**
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.58.0 (build f8ba112)", date = "2022-05-10T19:23:44.608Z")
@software.amazon.jsii.Jsii(module = io.github.randyridgley.cdk.datalake.constructs.$Module.class, fqn = "@randyridgley/cdk-datalake-constructs.DeliveryStreamProperties")
@software.amazon.jsii.Jsii.Proxy(DeliveryStreamProperties.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface DeliveryStreamProperties extends software.amazon.jsii.JsiiSerializable {
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull software.amazon.awscdk.services.kinesis.Stream getKinesisStream();
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull software.amazon.awscdk.services.s3.IBucket getS3Bucket();
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable io.github.randyridgley.cdk.datalake.constructs.CompressionType getCompression() {
return null;
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getS3Prefix() {
return null;
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.lambda.Function getTransformFunction() {
return null;
}
/**
* @return a {@link Builder} of {@link DeliveryStreamProperties}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link DeliveryStreamProperties}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
software.amazon.awscdk.services.kinesis.Stream kinesisStream;
software.amazon.awscdk.services.s3.IBucket s3Bucket;
io.github.randyridgley.cdk.datalake.constructs.CompressionType compression;
java.lang.String s3Prefix;
software.amazon.awscdk.services.lambda.Function transformFunction;
/**
* Sets the value of {@link DeliveryStreamProperties#getKinesisStream}
* @param kinesisStream the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder kinesisStream(software.amazon.awscdk.services.kinesis.Stream kinesisStream) {
this.kinesisStream = kinesisStream;
return this;
}
/**
* Sets the value of {@link DeliveryStreamProperties#getS3Bucket}
* @param s3Bucket the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder s3Bucket(software.amazon.awscdk.services.s3.IBucket s3Bucket) {
this.s3Bucket = s3Bucket;
return this;
}
/**
* Sets the value of {@link DeliveryStreamProperties#getCompression}
* @param compression the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder compression(io.github.randyridgley.cdk.datalake.constructs.CompressionType compression) {
this.compression = compression;
return this;
}
/**
* Sets the value of {@link DeliveryStreamProperties#getS3Prefix}
* @param s3Prefix the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder s3Prefix(java.lang.String s3Prefix) {
this.s3Prefix = s3Prefix;
return this;
}
/**
* Sets the value of {@link DeliveryStreamProperties#getTransformFunction}
* @param transformFunction the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder transformFunction(software.amazon.awscdk.services.lambda.Function transformFunction) {
this.transformFunction = transformFunction;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link DeliveryStreamProperties}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public DeliveryStreamProperties build() {
return new Jsii$Proxy(this);
}
}
/**
* An implementation for {@link DeliveryStreamProperties}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements DeliveryStreamProperties {
private final software.amazon.awscdk.services.kinesis.Stream kinesisStream;
private final software.amazon.awscdk.services.s3.IBucket s3Bucket;
private final io.github.randyridgley.cdk.datalake.constructs.CompressionType compression;
private final java.lang.String s3Prefix;
private final software.amazon.awscdk.services.lambda.Function transformFunction;
/**
* Constructor that initializes the object based on values retrieved from the JsiiObject.
* @param objRef Reference to the JSII managed object.
*/
protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
this.kinesisStream = software.amazon.jsii.Kernel.get(this, "kinesisStream", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.kinesis.Stream.class));
this.s3Bucket = software.amazon.jsii.Kernel.get(this, "s3Bucket", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.s3.IBucket.class));
this.compression = software.amazon.jsii.Kernel.get(this, "compression", software.amazon.jsii.NativeType.forClass(io.github.randyridgley.cdk.datalake.constructs.CompressionType.class));
this.s3Prefix = software.amazon.jsii.Kernel.get(this, "s3Prefix", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.transformFunction = software.amazon.jsii.Kernel.get(this, "transformFunction", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.lambda.Function.class));
}
/**
* Constructor that initializes the object based on literal property values passed by the {@link Builder}.
*/
protected Jsii$Proxy(final Builder builder) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
this.kinesisStream = java.util.Objects.requireNonNull(builder.kinesisStream, "kinesisStream is required");
this.s3Bucket = java.util.Objects.requireNonNull(builder.s3Bucket, "s3Bucket is required");
this.compression = builder.compression;
this.s3Prefix = builder.s3Prefix;
this.transformFunction = builder.transformFunction;
}
@Override
public final software.amazon.awscdk.services.kinesis.Stream getKinesisStream() {
return this.kinesisStream;
}
@Override
public final software.amazon.awscdk.services.s3.IBucket getS3Bucket() {
return this.s3Bucket;
}
@Override
public final io.github.randyridgley.cdk.datalake.constructs.CompressionType getCompression() {
return this.compression;
}
@Override
public final java.lang.String getS3Prefix() {
return this.s3Prefix;
}
@Override
public final software.amazon.awscdk.services.lambda.Function getTransformFunction() {
return this.transformFunction;
}
@Override
@software.amazon.jsii.Internal
public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() {
final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE;
final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
data.set("kinesisStream", om.valueToTree(this.getKinesisStream()));
data.set("s3Bucket", om.valueToTree(this.getS3Bucket()));
if (this.getCompression() != null) {
data.set("compression", om.valueToTree(this.getCompression()));
}
if (this.getS3Prefix() != null) {
data.set("s3Prefix", om.valueToTree(this.getS3Prefix()));
}
if (this.getTransformFunction() != null) {
data.set("transformFunction", om.valueToTree(this.getTransformFunction()));
}
final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
struct.set("fqn", om.valueToTree("@randyridgley/cdk-datalake-constructs.DeliveryStreamProperties"));
struct.set("data", data);
final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
obj.set("$jsii.struct", struct);
return obj;
}
@Override
public final boolean equals(final Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
DeliveryStreamProperties.Jsii$Proxy that = (DeliveryStreamProperties.Jsii$Proxy) o;
if (!kinesisStream.equals(that.kinesisStream)) return false;
if (!s3Bucket.equals(that.s3Bucket)) return false;
if (this.compression != null ? !this.compression.equals(that.compression) : that.compression != null) return false;
if (this.s3Prefix != null ? !this.s3Prefix.equals(that.s3Prefix) : that.s3Prefix != null) return false;
return this.transformFunction != null ? this.transformFunction.equals(that.transformFunction) : that.transformFunction == null;
}
@Override
public final int hashCode() {
int result = this.kinesisStream.hashCode();
result = 31 * result + (this.s3Bucket.hashCode());
result = 31 * result + (this.compression != null ? this.compression.hashCode() : 0);
result = 31 * result + (this.s3Prefix != null ? this.s3Prefix.hashCode() : 0);
result = 31 * result + (this.transformFunction != null ? this.transformFunction.hashCode() : 0);
return result;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy