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

software.amazon.awscdk.SSMParameterProviderProps 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.957Z")
public interface SSMParameterProviderProps extends software.amazon.jsii.JsiiSerializable {
    /**
     * The name of the parameter to lookup.
     */
    java.lang.String getParameterName();

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

    /**
     * A builder for {@link SSMParameterProviderProps}
     */
    final class Builder {
        private java.lang.String _parameterName;

        /**
         * Sets the value of ParameterName
         * @param value The name of the parameter to lookup.
         * @return {@code this}
         */
        public Builder withParameterName(final java.lang.String value) {
            this._parameterName = java.util.Objects.requireNonNull(value, "parameterName is required");
            return this;
        }

        /**
         * Builds the configured instance.
         * @return a new instance of {@link SSMParameterProviderProps}
         * @throws NullPointerException if any required attribute was not provided
         */
        public SSMParameterProviderProps build() {
            return new SSMParameterProviderProps() {
                private final java.lang.String $parameterName = java.util.Objects.requireNonNull(_parameterName, "parameterName is required");

                @Override
                public java.lang.String getParameterName() {
                    return this.$parameterName;
                }

                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("parameterName", om.valueToTree(this.getParameterName()));
                    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.SSMParameterProviderProps {
        protected Jsii$Proxy(final software.amazon.jsii.JsiiObject.InitializationMode mode) {
            super(mode);
        }

        /**
         * The name of the parameter to lookup.
         */
        @Override
        public java.lang.String getParameterName() {
            return this.jsiiGet("parameterName", java.lang.String.class);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy