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

software.aws.awsprototypingsdk.cdkgraph.InferredNodeProps Maven / Gradle / Ivy

There is a newer version: 0.19.68
Show newest version
package software.aws.awsprototypingsdk.cdkgraph;

/**
 * (experimental) Inferred node props.
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.82.0 (build 2d2ddd7)", date = "2023-08-15T05:45:13.804Z")
@software.amazon.jsii.Jsii(module = software.aws.awsprototypingsdk.cdkgraph.$Module.class, fqn = "@aws-prototyping-sdk/cdk-graph.InferredNodeProps")
@software.amazon.jsii.Jsii.Proxy(InferredNodeProps.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public interface InferredNodeProps extends software.amazon.jsii.JsiiSerializable, software.aws.awsprototypingsdk.cdkgraph.SGEntity {

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    @org.jetbrains.annotations.NotNull java.util.List getDependencies();

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    @org.jetbrains.annotations.NotNull java.util.List getUnresolvedReferences();

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

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    default @org.jetbrains.annotations.Nullable software.aws.awsprototypingsdk.cdkgraph.ConstructInfo getConstructInfo() {
        return null;
    }

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

    /**
     * @return a {@link Builder} of {@link InferredNodeProps}
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    static Builder builder() {
        return new Builder();
    }
    /**
     * A builder for {@link InferredNodeProps}
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    public static final class Builder implements software.amazon.jsii.Builder {
        java.util.List dependencies;
        java.util.List unresolvedReferences;
        java.lang.String cfnType;
        software.aws.awsprototypingsdk.cdkgraph.ConstructInfo constructInfo;
        java.lang.String logicalId;
        java.lang.String uuid;
        java.util.Map attributes;
        java.util.List flags;
        java.util.List metadata;
        java.util.Map tags;

        /**
         * Sets the value of {@link InferredNodeProps#getDependencies}
         * @param dependencies the value to be set. This parameter is required.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        public Builder dependencies(java.util.List dependencies) {
            this.dependencies = dependencies;
            return this;
        }

        /**
         * Sets the value of {@link InferredNodeProps#getUnresolvedReferences}
         * @param unresolvedReferences the value to be set. This parameter is required.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        @SuppressWarnings("unchecked")
        public Builder unresolvedReferences(java.util.List unresolvedReferences) {
            this.unresolvedReferences = (java.util.List)unresolvedReferences;
            return this;
        }

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

        /**
         * Sets the value of {@link InferredNodeProps#getConstructInfo}
         * @param constructInfo the value to be set.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        public Builder constructInfo(software.aws.awsprototypingsdk.cdkgraph.ConstructInfo constructInfo) {
            this.constructInfo = constructInfo;
            return this;
        }

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

        /**
         * Sets the value of {@link InferredNodeProps#getUuid}
         * @param uuid Universally unique identity. This parameter is required.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        public Builder uuid(java.lang.String uuid) {
            this.uuid = uuid;
            return this;
        }

        /**
         * Sets the value of {@link InferredNodeProps#getAttributes}
         * @param attributes Serializable entity attributes.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        @SuppressWarnings("unchecked")
        public Builder attributes(java.util.Map attributes) {
            this.attributes = (java.util.Map)attributes;
            return this;
        }

        /**
         * Sets the value of {@link InferredNodeProps#getFlags}
         * @param flags Serializable entity flags.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        @SuppressWarnings("unchecked")
        public Builder flags(java.util.List flags) {
            this.flags = (java.util.List)flags;
            return this;
        }

        /**
         * Sets the value of {@link InferredNodeProps#getMetadata}
         * @param metadata Serializable entity metadata.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        @SuppressWarnings("unchecked")
        public Builder metadata(java.util.List metadata) {
            this.metadata = (java.util.List)metadata;
            return this;
        }

        /**
         * Sets the value of {@link InferredNodeProps#getTags}
         * @param tags Serializable entity tags.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        public Builder tags(java.util.Map tags) {
            this.tags = tags;
            return this;
        }

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

    /**
     * An implementation for {@link InferredNodeProps}
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    @software.amazon.jsii.Internal
    final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements InferredNodeProps {
        private final java.util.List dependencies;
        private final java.util.List unresolvedReferences;
        private final java.lang.String cfnType;
        private final software.aws.awsprototypingsdk.cdkgraph.ConstructInfo constructInfo;
        private final java.lang.String logicalId;
        private final java.lang.String uuid;
        private final java.util.Map attributes;
        private final java.util.List flags;
        private final java.util.List metadata;
        private final java.util.Map tags;

        /**
         * 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.dependencies = software.amazon.jsii.Kernel.get(this, "dependencies", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)));
            this.unresolvedReferences = software.amazon.jsii.Kernel.get(this, "unresolvedReferences", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.aws.awsprototypingsdk.cdkgraph.SGUnresolvedReference.class)));
            this.cfnType = software.amazon.jsii.Kernel.get(this, "cfnType", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
            this.constructInfo = software.amazon.jsii.Kernel.get(this, "constructInfo", software.amazon.jsii.NativeType.forClass(software.aws.awsprototypingsdk.cdkgraph.ConstructInfo.class));
            this.logicalId = software.amazon.jsii.Kernel.get(this, "logicalId", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
            this.uuid = software.amazon.jsii.Kernel.get(this, "uuid", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
            this.attributes = software.amazon.jsii.Kernel.get(this, "attributes", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)));
            this.flags = software.amazon.jsii.Kernel.get(this, "flags", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.aws.awsprototypingsdk.cdkgraph.FlagEnum.class)));
            this.metadata = software.amazon.jsii.Kernel.get(this, "metadata", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.constructs.MetadataEntry.class)));
            this.tags = software.amazon.jsii.Kernel.get(this, "tags", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)));
        }

        /**
         * Constructor that initializes the object based on literal property values passed by the {@link Builder}.
         */
        @SuppressWarnings("unchecked")
        protected Jsii$Proxy(final Builder builder) {
            super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
            this.dependencies = java.util.Objects.requireNonNull(builder.dependencies, "dependencies is required");
            this.unresolvedReferences = (java.util.List)java.util.Objects.requireNonNull(builder.unresolvedReferences, "unresolvedReferences is required");
            this.cfnType = builder.cfnType;
            this.constructInfo = builder.constructInfo;
            this.logicalId = builder.logicalId;
            this.uuid = java.util.Objects.requireNonNull(builder.uuid, "uuid is required");
            this.attributes = (java.util.Map)builder.attributes;
            this.flags = (java.util.List)builder.flags;
            this.metadata = (java.util.List)builder.metadata;
            this.tags = builder.tags;
        }

        @Override
        public final java.util.List getDependencies() {
            return this.dependencies;
        }

        @Override
        public final java.util.List getUnresolvedReferences() {
            return this.unresolvedReferences;
        }

        @Override
        public final java.lang.String getCfnType() {
            return this.cfnType;
        }

        @Override
        public final software.aws.awsprototypingsdk.cdkgraph.ConstructInfo getConstructInfo() {
            return this.constructInfo;
        }

        @Override
        public final java.lang.String getLogicalId() {
            return this.logicalId;
        }

        @Override
        public final java.lang.String getUuid() {
            return this.uuid;
        }

        @Override
        public final java.util.Map getAttributes() {
            return this.attributes;
        }

        @Override
        public final java.util.List getFlags() {
            return this.flags;
        }

        @Override
        public final java.util.List getMetadata() {
            return this.metadata;
        }

        @Override
        public final java.util.Map getTags() {
            return this.tags;
        }

        @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("dependencies", om.valueToTree(this.getDependencies()));
            data.set("unresolvedReferences", om.valueToTree(this.getUnresolvedReferences()));
            if (this.getCfnType() != null) {
                data.set("cfnType", om.valueToTree(this.getCfnType()));
            }
            if (this.getConstructInfo() != null) {
                data.set("constructInfo", om.valueToTree(this.getConstructInfo()));
            }
            if (this.getLogicalId() != null) {
                data.set("logicalId", om.valueToTree(this.getLogicalId()));
            }
            data.set("uuid", om.valueToTree(this.getUuid()));
            if (this.getAttributes() != null) {
                data.set("attributes", om.valueToTree(this.getAttributes()));
            }
            if (this.getFlags() != null) {
                data.set("flags", om.valueToTree(this.getFlags()));
            }
            if (this.getMetadata() != null) {
                data.set("metadata", om.valueToTree(this.getMetadata()));
            }
            if (this.getTags() != null) {
                data.set("tags", om.valueToTree(this.getTags()));
            }

            final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
            struct.set("fqn", om.valueToTree("@aws-prototyping-sdk/cdk-graph.InferredNodeProps"));
            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;

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

            if (!dependencies.equals(that.dependencies)) return false;
            if (!unresolvedReferences.equals(that.unresolvedReferences)) return false;
            if (this.cfnType != null ? !this.cfnType.equals(that.cfnType) : that.cfnType != null) return false;
            if (this.constructInfo != null ? !this.constructInfo.equals(that.constructInfo) : that.constructInfo != null) return false;
            if (this.logicalId != null ? !this.logicalId.equals(that.logicalId) : that.logicalId != null) return false;
            if (!uuid.equals(that.uuid)) return false;
            if (this.attributes != null ? !this.attributes.equals(that.attributes) : that.attributes != null) return false;
            if (this.flags != null ? !this.flags.equals(that.flags) : that.flags != null) return false;
            if (this.metadata != null ? !this.metadata.equals(that.metadata) : that.metadata != null) return false;
            return this.tags != null ? this.tags.equals(that.tags) : that.tags == null;
        }

        @Override
        public final int hashCode() {
            int result = this.dependencies.hashCode();
            result = 31 * result + (this.unresolvedReferences.hashCode());
            result = 31 * result + (this.cfnType != null ? this.cfnType.hashCode() : 0);
            result = 31 * result + (this.constructInfo != null ? this.constructInfo.hashCode() : 0);
            result = 31 * result + (this.logicalId != null ? this.logicalId.hashCode() : 0);
            result = 31 * result + (this.uuid.hashCode());
            result = 31 * result + (this.attributes != null ? this.attributes.hashCode() : 0);
            result = 31 * result + (this.flags != null ? this.flags.hashCode() : 0);
            result = 31 * result + (this.metadata != null ? this.metadata.hashCode() : 0);
            result = 31 * result + (this.tags != null ? this.tags.hashCode() : 0);
            return result;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy