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

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

package io.github.randyridgley.cdk.datalake.constructs;

/**
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.58.0 (build f8ba112)", date = "2022-05-10T19:23:44.607Z")
@software.amazon.jsii.Jsii(module = io.github.randyridgley.cdk.datalake.constructs.$Module.class, fqn = "@randyridgley/cdk-datalake-constructs.DataTierBucketProps")
@software.amazon.jsii.Jsii.Proxy(DataTierBucketProps.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface DataTierBucketProps extends software.amazon.jsii.JsiiSerializable {

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    @org.jetbrains.annotations.NotNull java.lang.Boolean getCrossAccount();

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    @org.jetbrains.annotations.NotNull java.lang.String getDataCatalogAccountId();

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.iam.IRole getDatalakeAdminRole();

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.iam.IRole getDatalakeDbCreatorRole();

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

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

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    @org.jetbrains.annotations.NotNull java.lang.String getPipelineName();

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    @org.jetbrains.annotations.NotNull io.github.randyridgley.cdk.datalake.constructs.DataTier getTier();

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    default @org.jetbrains.annotations.Nullable java.lang.String getBucketName() {
        return null;
    }

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

    /**
     * @return a {@link Builder} of {@link DataTierBucketProps}
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    static Builder builder() {
        return new Builder();
    }
    /**
     * A builder for {@link DataTierBucketProps}
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    public static final class Builder implements software.amazon.jsii.Builder {
        java.lang.Boolean crossAccount;
        java.lang.String dataCatalogAccountId;
        software.amazon.awscdk.services.iam.IRole datalakeAdminRole;
        software.amazon.awscdk.services.iam.IRole datalakeDbCreatorRole;
        io.github.randyridgley.cdk.datalake.constructs.LakeKind lakeType;
        software.amazon.awscdk.services.s3.Bucket logBucket;
        java.lang.String pipelineName;
        io.github.randyridgley.cdk.datalake.constructs.DataTier tier;
        java.lang.String bucketName;
        software.amazon.awscdk.services.s3.BucketProps s3BucketProps;

        /**
         * Sets the value of {@link DataTierBucketProps#getCrossAccount}
         * @param crossAccount the value to be set. This parameter is required.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        public Builder crossAccount(java.lang.Boolean crossAccount) {
            this.crossAccount = crossAccount;
            return this;
        }

        /**
         * Sets the value of {@link DataTierBucketProps#getDataCatalogAccountId}
         * @param dataCatalogAccountId the value to be set. This parameter is required.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        public Builder dataCatalogAccountId(java.lang.String dataCatalogAccountId) {
            this.dataCatalogAccountId = dataCatalogAccountId;
            return this;
        }

        /**
         * Sets the value of {@link DataTierBucketProps#getDatalakeAdminRole}
         * @param datalakeAdminRole the value to be set. This parameter is required.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        public Builder datalakeAdminRole(software.amazon.awscdk.services.iam.IRole datalakeAdminRole) {
            this.datalakeAdminRole = datalakeAdminRole;
            return this;
        }

        /**
         * Sets the value of {@link DataTierBucketProps#getDatalakeDbCreatorRole}
         * @param datalakeDbCreatorRole the value to be set. This parameter is required.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        public Builder datalakeDbCreatorRole(software.amazon.awscdk.services.iam.IRole datalakeDbCreatorRole) {
            this.datalakeDbCreatorRole = datalakeDbCreatorRole;
            return this;
        }

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

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

        /**
         * Sets the value of {@link DataTierBucketProps#getPipelineName}
         * @param pipelineName the value to be set. This parameter is required.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        public Builder pipelineName(java.lang.String pipelineName) {
            this.pipelineName = pipelineName;
            return this;
        }

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

        /**
         * Sets the value of {@link DataTierBucketProps#getBucketName}
         * @param bucketName the value to be set.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        public Builder bucketName(java.lang.String bucketName) {
            this.bucketName = bucketName;
            return this;
        }

        /**
         * Sets the value of {@link DataTierBucketProps#getS3BucketProps}
         * @param s3BucketProps the value to be set.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        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 DataTierBucketProps}
         * @throws NullPointerException if any required attribute was not provided
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        @Override
        public DataTierBucketProps build() {
            return new Jsii$Proxy(this);
        }
    }

    /**
     * An implementation for {@link DataTierBucketProps}
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    @software.amazon.jsii.Internal
    final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements DataTierBucketProps {
        private final java.lang.Boolean crossAccount;
        private final java.lang.String dataCatalogAccountId;
        private final software.amazon.awscdk.services.iam.IRole datalakeAdminRole;
        private final software.amazon.awscdk.services.iam.IRole datalakeDbCreatorRole;
        private final io.github.randyridgley.cdk.datalake.constructs.LakeKind lakeType;
        private final software.amazon.awscdk.services.s3.Bucket logBucket;
        private final java.lang.String pipelineName;
        private final io.github.randyridgley.cdk.datalake.constructs.DataTier tier;
        private final java.lang.String bucketName;
        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.crossAccount = software.amazon.jsii.Kernel.get(this, "crossAccount", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class));
            this.dataCatalogAccountId = software.amazon.jsii.Kernel.get(this, "dataCatalogAccountId", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
            this.datalakeAdminRole = software.amazon.jsii.Kernel.get(this, "datalakeAdminRole", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.iam.IRole.class));
            this.datalakeDbCreatorRole = software.amazon.jsii.Kernel.get(this, "datalakeDbCreatorRole", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.iam.IRole.class));
            this.lakeType = software.amazon.jsii.Kernel.get(this, "lakeType", software.amazon.jsii.NativeType.forClass(io.github.randyridgley.cdk.datalake.constructs.LakeKind.class));
            this.logBucket = software.amazon.jsii.Kernel.get(this, "logBucket", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.s3.Bucket.class));
            this.pipelineName = software.amazon.jsii.Kernel.get(this, "pipelineName", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
            this.tier = software.amazon.jsii.Kernel.get(this, "tier", software.amazon.jsii.NativeType.forClass(io.github.randyridgley.cdk.datalake.constructs.DataTier.class));
            this.bucketName = software.amazon.jsii.Kernel.get(this, "bucketName", software.amazon.jsii.NativeType.forClass(java.lang.String.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 Builder builder) {
            super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
            this.crossAccount = java.util.Objects.requireNonNull(builder.crossAccount, "crossAccount is required");
            this.dataCatalogAccountId = java.util.Objects.requireNonNull(builder.dataCatalogAccountId, "dataCatalogAccountId is required");
            this.datalakeAdminRole = java.util.Objects.requireNonNull(builder.datalakeAdminRole, "datalakeAdminRole is required");
            this.datalakeDbCreatorRole = java.util.Objects.requireNonNull(builder.datalakeDbCreatorRole, "datalakeDbCreatorRole is required");
            this.lakeType = java.util.Objects.requireNonNull(builder.lakeType, "lakeType is required");
            this.logBucket = java.util.Objects.requireNonNull(builder.logBucket, "logBucket is required");
            this.pipelineName = java.util.Objects.requireNonNull(builder.pipelineName, "pipelineName is required");
            this.tier = java.util.Objects.requireNonNull(builder.tier, "tier is required");
            this.bucketName = builder.bucketName;
            this.s3BucketProps = builder.s3BucketProps;
        }

        @Override
        public final java.lang.Boolean getCrossAccount() {
            return this.crossAccount;
        }

        @Override
        public final java.lang.String getDataCatalogAccountId() {
            return this.dataCatalogAccountId;
        }

        @Override
        public final software.amazon.awscdk.services.iam.IRole getDatalakeAdminRole() {
            return this.datalakeAdminRole;
        }

        @Override
        public final software.amazon.awscdk.services.iam.IRole getDatalakeDbCreatorRole() {
            return this.datalakeDbCreatorRole;
        }

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

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

        @Override
        public final java.lang.String getPipelineName() {
            return this.pipelineName;
        }

        @Override
        public final io.github.randyridgley.cdk.datalake.constructs.DataTier getTier() {
            return this.tier;
        }

        @Override
        public final java.lang.String getBucketName() {
            return this.bucketName;
        }

        @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("crossAccount", om.valueToTree(this.getCrossAccount()));
            data.set("dataCatalogAccountId", om.valueToTree(this.getDataCatalogAccountId()));
            data.set("datalakeAdminRole", om.valueToTree(this.getDatalakeAdminRole()));
            data.set("datalakeDbCreatorRole", om.valueToTree(this.getDatalakeDbCreatorRole()));
            data.set("lakeType", om.valueToTree(this.getLakeType()));
            data.set("logBucket", om.valueToTree(this.getLogBucket()));
            data.set("pipelineName", om.valueToTree(this.getPipelineName()));
            data.set("tier", om.valueToTree(this.getTier()));
            if (this.getBucketName() != null) {
                data.set("bucketName", om.valueToTree(this.getBucketName()));
            }
            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.DataTierBucketProps"));
            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;

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

            if (!crossAccount.equals(that.crossAccount)) return false;
            if (!dataCatalogAccountId.equals(that.dataCatalogAccountId)) return false;
            if (!datalakeAdminRole.equals(that.datalakeAdminRole)) return false;
            if (!datalakeDbCreatorRole.equals(that.datalakeDbCreatorRole)) return false;
            if (!lakeType.equals(that.lakeType)) return false;
            if (!logBucket.equals(that.logBucket)) return false;
            if (!pipelineName.equals(that.pipelineName)) return false;
            if (!tier.equals(that.tier)) return false;
            if (this.bucketName != null ? !this.bucketName.equals(that.bucketName) : that.bucketName != null) return false;
            return this.s3BucketProps != null ? this.s3BucketProps.equals(that.s3BucketProps) : that.s3BucketProps == null;
        }

        @Override
        public final int hashCode() {
            int result = this.crossAccount.hashCode();
            result = 31 * result + (this.dataCatalogAccountId.hashCode());
            result = 31 * result + (this.datalakeAdminRole.hashCode());
            result = 31 * result + (this.datalakeDbCreatorRole.hashCode());
            result = 31 * result + (this.lakeType.hashCode());
            result = 31 * result + (this.logBucket.hashCode());
            result = 31 * result + (this.pipelineName.hashCode());
            result = 31 * result + (this.tier.hashCode());
            result = 31 * result + (this.bucketName != null ? this.bucketName.hashCode() : 0);
            result = 31 * result + (this.s3BucketProps != null ? this.s3BucketProps.hashCode() : 0);
            return result;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy