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

software.amazon.awscdk.CfnConditionProps Maven / Gradle / Ivy

There is a newer version: 0.36.1
Show newest version
package software.amazon.awscdk;

@javax.annotation.Generated(value = "jsii-pacmak/0.10.5 (build 46bc9b0)", date = "2019-05-06T20:49:40.935Z")
public interface CfnConditionProps extends software.amazon.jsii.JsiiSerializable {
    software.amazon.awscdk.ICfnConditionExpression getExpression();

    /**
     * @return a {@link Builder} of {@link CfnConditionProps}
     */
    static Builder builder() {
        return new Builder();
    }

    /**
     * A builder for {@link CfnConditionProps}
     */
    final class Builder {
        @javax.annotation.Nullable
        private software.amazon.awscdk.ICfnConditionExpression _expression;

        /**
         * Sets the value of Expression
         * @param value the value to be set
         * @return {@code this}
         */
        public Builder withExpression(@javax.annotation.Nullable final software.amazon.awscdk.ICfnConditionExpression value) {
            this._expression = value;
            return this;
        }

        /**
         * Builds the configured instance.
         * @return a new instance of {@link CfnConditionProps}
         * @throws NullPointerException if any required attribute was not provided
         */
        public CfnConditionProps build() {
            return new CfnConditionProps() {
                @javax.annotation.Nullable
                private final software.amazon.awscdk.ICfnConditionExpression $expression = _expression;

                @Override
                public software.amazon.awscdk.ICfnConditionExpression getExpression() {
                    return this.$expression;
                }

                public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() {
                    com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE;
                    com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
                    obj.set("expression", om.valueToTree(this.getExpression()));
                    return obj;
                }

            };
        }
    }

    /**
     * A proxy class which represents a concrete javascript instance of this type.
     */
    final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.awscdk.CfnConditionProps {
        protected Jsii$Proxy(final software.amazon.jsii.JsiiObject.InitializationMode mode) {
            super(mode);
        }

        @Override
        @javax.annotation.Nullable
        public software.amazon.awscdk.ICfnConditionExpression getExpression() {
            return this.jsiiGet("expression", software.amazon.awscdk.ICfnConditionExpression.class);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy