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

io.github.randyridgley.cdk.datalake.constructs.DataSetResult 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.606Z")
@software.amazon.jsii.Jsii(module = io.github.randyridgley.cdk.datalake.constructs.$Module.class, fqn = "@randyridgley/cdk-datalake-constructs.DataSetResult")
@software.amazon.jsii.Jsii.Proxy(DataSetResult.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface DataSetResult extends software.amazon.jsii.JsiiSerializable {

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

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

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

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

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

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

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    default @org.jetbrains.annotations.Nullable java.util.List getSourceKeys() {
        return null;
    }

    /**
     * @return a {@link Builder} of {@link DataSetResult}
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    static Builder builder() {
        return new Builder();
    }
    /**
     * A builder for {@link DataSetResult}
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    public static final class Builder implements software.amazon.jsii.Builder {
        java.lang.String destinationBucketName;
        java.lang.String destinationPrefix;
        java.lang.String rawBucketName;
        java.lang.String refinedBucketName;
        java.lang.String trustedBucketName;
        java.lang.String sourceBucketName;
        java.util.List sourceKeys;

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

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

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

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

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

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

        /**
         * Sets the value of {@link DataSetResult#getSourceKeys}
         * @param sourceKeys the value to be set.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        public Builder sourceKeys(java.util.List sourceKeys) {
            this.sourceKeys = sourceKeys;
            return this;
        }

        /**
         * Builds the configured instance.
         * @return a new instance of {@link DataSetResult}
         * @throws NullPointerException if any required attribute was not provided
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        @Override
        public DataSetResult build() {
            return new Jsii$Proxy(this);
        }
    }

    /**
     * An implementation for {@link DataSetResult}
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    @software.amazon.jsii.Internal
    final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements DataSetResult {
        private final java.lang.String destinationBucketName;
        private final java.lang.String destinationPrefix;
        private final java.lang.String rawBucketName;
        private final java.lang.String refinedBucketName;
        private final java.lang.String trustedBucketName;
        private final java.lang.String sourceBucketName;
        private final java.util.List sourceKeys;

        /**
         * 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.destinationBucketName = software.amazon.jsii.Kernel.get(this, "destinationBucketName", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
            this.destinationPrefix = software.amazon.jsii.Kernel.get(this, "destinationPrefix", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
            this.rawBucketName = software.amazon.jsii.Kernel.get(this, "rawBucketName", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
            this.refinedBucketName = software.amazon.jsii.Kernel.get(this, "refinedBucketName", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
            this.trustedBucketName = software.amazon.jsii.Kernel.get(this, "trustedBucketName", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
            this.sourceBucketName = software.amazon.jsii.Kernel.get(this, "sourceBucketName", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
            this.sourceKeys = software.amazon.jsii.Kernel.get(this, "sourceKeys", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.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.destinationBucketName = java.util.Objects.requireNonNull(builder.destinationBucketName, "destinationBucketName is required");
            this.destinationPrefix = java.util.Objects.requireNonNull(builder.destinationPrefix, "destinationPrefix is required");
            this.rawBucketName = java.util.Objects.requireNonNull(builder.rawBucketName, "rawBucketName is required");
            this.refinedBucketName = java.util.Objects.requireNonNull(builder.refinedBucketName, "refinedBucketName is required");
            this.trustedBucketName = java.util.Objects.requireNonNull(builder.trustedBucketName, "trustedBucketName is required");
            this.sourceBucketName = builder.sourceBucketName;
            this.sourceKeys = builder.sourceKeys;
        }

        @Override
        public final java.lang.String getDestinationBucketName() {
            return this.destinationBucketName;
        }

        @Override
        public final java.lang.String getDestinationPrefix() {
            return this.destinationPrefix;
        }

        @Override
        public final java.lang.String getRawBucketName() {
            return this.rawBucketName;
        }

        @Override
        public final java.lang.String getRefinedBucketName() {
            return this.refinedBucketName;
        }

        @Override
        public final java.lang.String getTrustedBucketName() {
            return this.trustedBucketName;
        }

        @Override
        public final java.lang.String getSourceBucketName() {
            return this.sourceBucketName;
        }

        @Override
        public final java.util.List getSourceKeys() {
            return this.sourceKeys;
        }

        @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("destinationBucketName", om.valueToTree(this.getDestinationBucketName()));
            data.set("destinationPrefix", om.valueToTree(this.getDestinationPrefix()));
            data.set("rawBucketName", om.valueToTree(this.getRawBucketName()));
            data.set("refinedBucketName", om.valueToTree(this.getRefinedBucketName()));
            data.set("trustedBucketName", om.valueToTree(this.getTrustedBucketName()));
            if (this.getSourceBucketName() != null) {
                data.set("sourceBucketName", om.valueToTree(this.getSourceBucketName()));
            }
            if (this.getSourceKeys() != null) {
                data.set("sourceKeys", om.valueToTree(this.getSourceKeys()));
            }

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

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

            if (!destinationBucketName.equals(that.destinationBucketName)) return false;
            if (!destinationPrefix.equals(that.destinationPrefix)) return false;
            if (!rawBucketName.equals(that.rawBucketName)) return false;
            if (!refinedBucketName.equals(that.refinedBucketName)) return false;
            if (!trustedBucketName.equals(that.trustedBucketName)) return false;
            if (this.sourceBucketName != null ? !this.sourceBucketName.equals(that.sourceBucketName) : that.sourceBucketName != null) return false;
            return this.sourceKeys != null ? this.sourceKeys.equals(that.sourceKeys) : that.sourceKeys == null;
        }

        @Override
        public final int hashCode() {
            int result = this.destinationBucketName.hashCode();
            result = 31 * result + (this.destinationPrefix.hashCode());
            result = 31 * result + (this.rawBucketName.hashCode());
            result = 31 * result + (this.refinedBucketName.hashCode());
            result = 31 * result + (this.trustedBucketName.hashCode());
            result = 31 * result + (this.sourceBucketName != null ? this.sourceBucketName.hashCode() : 0);
            result = 31 * result + (this.sourceKeys != null ? this.sourceKeys.hashCode() : 0);
            return result;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy