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

io.github.randyridgley.cdk.datalake.constructs.DataSetProperties Maven / Gradle / Ivy

There is a newer version: 0.0.64
Show newest version
package io.github.randyridgley.cdk.datalake.constructs;

/**
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.42.0 (build 5f6b62c)", date = "2021-11-05T12:40:41.632Z")
@software.amazon.jsii.Jsii(module = io.github.randyridgley.cdk.datalake.constructs.$Module.class, fqn = "@randyridgley/cdk-datalake-constructs.DataSetProperties")
@software.amazon.jsii.Jsii.Proxy(DataSetProperties.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public interface DataSetProperties extends software.amazon.jsii.JsiiSerializable {

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    @org.jetbrains.annotations.NotNull io.github.randyridgley.cdk.datalake.constructs.DataProduct getDataProduct();

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    @org.jetbrains.annotations.NotNull io.github.randyridgley.cdk.datalake.constructs.LakeType getLakeType();

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.s3.Bucket getLogBucket();

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    @org.jetbrains.annotations.NotNull io.github.randyridgley.cdk.datalake.constructs.Pipeline getPipeline();

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    @org.jetbrains.annotations.NotNull io.github.randyridgley.cdk.datalake.constructs.Stage getStage();

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    default @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.kms.Key getEncryptionKey() {
        return null;
    }

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    default @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.s3.BucketProps getS3BucketProps() {
        return null;
    }

    /**
     * @return a {@link Builder} of {@link DataSetProperties}
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    static Builder builder() {
        return new Builder();
    }
    /**
     * A builder for {@link DataSetProperties}
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    public static final class Builder implements software.amazon.jsii.Builder {
        private io.github.randyridgley.cdk.datalake.constructs.DataProduct dataProduct;
        private io.github.randyridgley.cdk.datalake.constructs.LakeType lakeType;
        private software.amazon.awscdk.services.s3.Bucket logBucket;
        private io.github.randyridgley.cdk.datalake.constructs.Pipeline pipeline;
        private io.github.randyridgley.cdk.datalake.constructs.Stage stage;
        private software.amazon.awscdk.services.kms.Key encryptionKey;
        private software.amazon.awscdk.services.s3.BucketProps s3BucketProps;

        /**
         * Sets the value of {@link DataSetProperties#getDataProduct}
         * @param dataProduct the value to be set. This parameter is required.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        public Builder dataProduct(io.github.randyridgley.cdk.datalake.constructs.DataProduct dataProduct) {
            this.dataProduct = dataProduct;
            return this;
        }

        /**
         * Sets the value of {@link DataSetProperties#getLakeType}
         * @param lakeType the value to be set. This parameter is required.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        public Builder lakeType(io.github.randyridgley.cdk.datalake.constructs.LakeType lakeType) {
            this.lakeType = lakeType;
            return this;
        }

        /**
         * Sets the value of {@link DataSetProperties#getLogBucket}
         * @param logBucket the value to be set. This parameter is required.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        public Builder logBucket(software.amazon.awscdk.services.s3.Bucket logBucket) {
            this.logBucket = logBucket;
            return this;
        }

        /**
         * Sets the value of {@link DataSetProperties#getPipeline}
         * @param pipeline the value to be set. This parameter is required.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        public Builder pipeline(io.github.randyridgley.cdk.datalake.constructs.Pipeline pipeline) {
            this.pipeline = pipeline;
            return this;
        }

        /**
         * Sets the value of {@link DataSetProperties#getStage}
         * @param stage the value to be set. This parameter is required.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        public Builder stage(io.github.randyridgley.cdk.datalake.constructs.Stage stage) {
            this.stage = stage;
            return this;
        }

        /**
         * Sets the value of {@link DataSetProperties#getEncryptionKey}
         * @param encryptionKey the value to be set.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        public Builder encryptionKey(software.amazon.awscdk.services.kms.Key encryptionKey) {
            this.encryptionKey = encryptionKey;
            return this;
        }

        /**
         * Sets the value of {@link DataSetProperties#getS3BucketProps}
         * @param s3BucketProps the value to be set.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        public Builder s3BucketProps(software.amazon.awscdk.services.s3.BucketProps s3BucketProps) {
            this.s3BucketProps = s3BucketProps;
            return this;
        }

        /**
         * Builds the configured instance.
         * @return a new instance of {@link DataSetProperties}
         * @throws NullPointerException if any required attribute was not provided
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        @Override
        public DataSetProperties build() {
            return new Jsii$Proxy(dataProduct, lakeType, logBucket, pipeline, stage, encryptionKey, s3BucketProps);
        }
    }

    /**
     * An implementation for {@link DataSetProperties}
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    @software.amazon.jsii.Internal
    final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements DataSetProperties {
        private final io.github.randyridgley.cdk.datalake.constructs.DataProduct dataProduct;
        private final io.github.randyridgley.cdk.datalake.constructs.LakeType lakeType;
        private final software.amazon.awscdk.services.s3.Bucket logBucket;
        private final io.github.randyridgley.cdk.datalake.constructs.Pipeline pipeline;
        private final io.github.randyridgley.cdk.datalake.constructs.Stage stage;
        private final software.amazon.awscdk.services.kms.Key encryptionKey;
        private final software.amazon.awscdk.services.s3.BucketProps s3BucketProps;

        /**
         * 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.dataProduct = software.amazon.jsii.Kernel.get(this, "dataProduct", software.amazon.jsii.NativeType.forClass(io.github.randyridgley.cdk.datalake.constructs.DataProduct.class));
            this.lakeType = software.amazon.jsii.Kernel.get(this, "lakeType", software.amazon.jsii.NativeType.forClass(io.github.randyridgley.cdk.datalake.constructs.LakeType.class));
            this.logBucket = software.amazon.jsii.Kernel.get(this, "logBucket", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.s3.Bucket.class));
            this.pipeline = software.amazon.jsii.Kernel.get(this, "pipeline", software.amazon.jsii.NativeType.forClass(io.github.randyridgley.cdk.datalake.constructs.Pipeline.class));
            this.stage = software.amazon.jsii.Kernel.get(this, "stage", software.amazon.jsii.NativeType.forClass(io.github.randyridgley.cdk.datalake.constructs.Stage.class));
            this.encryptionKey = software.amazon.jsii.Kernel.get(this, "encryptionKey", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.kms.Key.class));
            this.s3BucketProps = software.amazon.jsii.Kernel.get(this, "s3BucketProps", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.s3.BucketProps.class));
        }

        /**
         * Constructor that initializes the object based on literal property values passed by the {@link Builder}.
         */
        protected Jsii$Proxy(final io.github.randyridgley.cdk.datalake.constructs.DataProduct dataProduct, final io.github.randyridgley.cdk.datalake.constructs.LakeType lakeType, final software.amazon.awscdk.services.s3.Bucket logBucket, final io.github.randyridgley.cdk.datalake.constructs.Pipeline pipeline, final io.github.randyridgley.cdk.datalake.constructs.Stage stage, final software.amazon.awscdk.services.kms.Key encryptionKey, final software.amazon.awscdk.services.s3.BucketProps s3BucketProps) {
            super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
            this.dataProduct = java.util.Objects.requireNonNull(dataProduct, "dataProduct is required");
            this.lakeType = java.util.Objects.requireNonNull(lakeType, "lakeType is required");
            this.logBucket = java.util.Objects.requireNonNull(logBucket, "logBucket is required");
            this.pipeline = java.util.Objects.requireNonNull(pipeline, "pipeline is required");
            this.stage = java.util.Objects.requireNonNull(stage, "stage is required");
            this.encryptionKey = encryptionKey;
            this.s3BucketProps = s3BucketProps;
        }

        @Override
        public final io.github.randyridgley.cdk.datalake.constructs.DataProduct getDataProduct() {
            return this.dataProduct;
        }

        @Override
        public final io.github.randyridgley.cdk.datalake.constructs.LakeType getLakeType() {
            return this.lakeType;
        }

        @Override
        public final software.amazon.awscdk.services.s3.Bucket getLogBucket() {
            return this.logBucket;
        }

        @Override
        public final io.github.randyridgley.cdk.datalake.constructs.Pipeline getPipeline() {
            return this.pipeline;
        }

        @Override
        public final io.github.randyridgley.cdk.datalake.constructs.Stage getStage() {
            return this.stage;
        }

        @Override
        public final software.amazon.awscdk.services.kms.Key getEncryptionKey() {
            return this.encryptionKey;
        }

        @Override
        public final software.amazon.awscdk.services.s3.BucketProps getS3BucketProps() {
            return this.s3BucketProps;
        }

        @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("dataProduct", om.valueToTree(this.getDataProduct()));
            data.set("lakeType", om.valueToTree(this.getLakeType()));
            data.set("logBucket", om.valueToTree(this.getLogBucket()));
            data.set("pipeline", om.valueToTree(this.getPipeline()));
            data.set("stage", om.valueToTree(this.getStage()));
            if (this.getEncryptionKey() != null) {
                data.set("encryptionKey", om.valueToTree(this.getEncryptionKey()));
            }
            if (this.getS3BucketProps() != null) {
                data.set("s3BucketProps", om.valueToTree(this.getS3BucketProps()));
            }

            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.DataSetProperties"));
            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;

            DataSetProperties.Jsii$Proxy that = (DataSetProperties.Jsii$Proxy) o;

            if (!dataProduct.equals(that.dataProduct)) return false;
            if (!lakeType.equals(that.lakeType)) return false;
            if (!logBucket.equals(that.logBucket)) return false;
            if (!pipeline.equals(that.pipeline)) return false;
            if (!stage.equals(that.stage)) return false;
            if (this.encryptionKey != null ? !this.encryptionKey.equals(that.encryptionKey) : that.encryptionKey != null) return false;
            return this.s3BucketProps != null ? this.s3BucketProps.equals(that.s3BucketProps) : that.s3BucketProps == null;
        }

        @Override
        public final int hashCode() {
            int result = this.dataProduct.hashCode();
            result = 31 * result + (this.lakeType.hashCode());
            result = 31 * result + (this.logBucket.hashCode());
            result = 31 * result + (this.pipeline.hashCode());
            result = 31 * result + (this.stage.hashCode());
            result = 31 * result + (this.encryptionKey != null ? this.encryptionKey.hashCode() : 0);
            result = 31 * result + (this.s3BucketProps != null ? this.s3BucketProps.hashCode() : 0);
            return result;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy