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

io.github.randyridgley.cdk.datalake.constructs.DataSetResult 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.DataSetResult")
@software.amazon.jsii.Jsii.Proxy(DataSetResult.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public interface DataSetResult extends software.amazon.jsii.JsiiSerializable {

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

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

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

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    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.Experimental)
    static Builder builder() {
        return new Builder();
    }
    /**
     * A builder for {@link DataSetResult}
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    public static final class Builder implements software.amazon.jsii.Builder {
        private java.lang.String destinationPrefix;
        private java.lang.String destinationBucketName;
        private java.lang.String sourceBucketName;
        private java.util.List sourceKeys;

        /**
         * 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.Experimental)
        public Builder destinationPrefix(java.lang.String destinationPrefix) {
            this.destinationPrefix = destinationPrefix;
            return this;
        }

        /**
         * Sets the value of {@link DataSetResult#getDestinationBucketName}
         * @param destinationBucketName the value to be set.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        public Builder destinationBucketName(java.lang.String destinationBucketName) {
            this.destinationBucketName = destinationBucketName;
            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.Experimental)
        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.Experimental)
        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.Experimental)
        @Override
        public DataSetResult build() {
            return new Jsii$Proxy(destinationPrefix, destinationBucketName, sourceBucketName, sourceKeys);
        }
    }

    /**
     * An implementation for {@link DataSetResult}
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    @software.amazon.jsii.Internal
    final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements DataSetResult {
        private final java.lang.String destinationPrefix;
        private final java.lang.String destinationBucketName;
        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.destinationPrefix = software.amazon.jsii.Kernel.get(this, "destinationPrefix", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
            this.destinationBucketName = software.amazon.jsii.Kernel.get(this, "destinationBucketName", 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 java.lang.String destinationPrefix, final java.lang.String destinationBucketName, final java.lang.String sourceBucketName, final java.util.List sourceKeys) {
            super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
            this.destinationPrefix = java.util.Objects.requireNonNull(destinationPrefix, "destinationPrefix is required");
            this.destinationBucketName = destinationBucketName;
            this.sourceBucketName = sourceBucketName;
            this.sourceKeys = sourceKeys;
        }

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

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

        @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("destinationPrefix", om.valueToTree(this.getDestinationPrefix()));
            if (this.getDestinationBucketName() != null) {
                data.set("destinationBucketName", om.valueToTree(this.getDestinationBucketName()));
            }
            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 (!destinationPrefix.equals(that.destinationPrefix)) return false;
            if (this.destinationBucketName != null ? !this.destinationBucketName.equals(that.destinationBucketName) : that.destinationBucketName != null) 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.destinationPrefix.hashCode();
            result = 31 * result + (this.destinationBucketName != null ? this.destinationBucketName.hashCode() : 0);
            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