software.amazon.awscdk.IncludeProps Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cdk Show documentation
Show all versions of cdk Show documentation
AWS Cloud Development Kit Core Library
package software.amazon.awscdk;
@javax.annotation.Generated(value = "jsii-pacmak/0.10.5 (build 46bc9b0)", date = "2019-05-06T20:49:40.955Z")
public interface IncludeProps extends software.amazon.jsii.JsiiSerializable {
/**
* The CloudFormation template to include in the stack (as is).
*/
com.fasterxml.jackson.databind.node.ObjectNode getTemplate();
/**
* @return a {@link Builder} of {@link IncludeProps}
*/
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link IncludeProps}
*/
final class Builder {
private com.fasterxml.jackson.databind.node.ObjectNode _template;
/**
* Sets the value of Template
* @param value The CloudFormation template to include in the stack (as is).
* @return {@code this}
*/
public Builder withTemplate(final com.fasterxml.jackson.databind.node.ObjectNode value) {
this._template = java.util.Objects.requireNonNull(value, "template is required");
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link IncludeProps}
* @throws NullPointerException if any required attribute was not provided
*/
public IncludeProps build() {
return new IncludeProps() {
private final com.fasterxml.jackson.databind.node.ObjectNode $template = java.util.Objects.requireNonNull(_template, "template is required");
@Override
public com.fasterxml.jackson.databind.node.ObjectNode getTemplate() {
return this.$template;
}
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("template", om.valueToTree(this.getTemplate()));
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.IncludeProps {
protected Jsii$Proxy(final software.amazon.jsii.JsiiObject.InitializationMode mode) {
super(mode);
}
/**
* The CloudFormation template to include in the stack (as is).
*/
@Override
public com.fasterxml.jackson.databind.node.ObjectNode getTemplate() {
return this.jsiiGet("template", com.fasterxml.jackson.databind.node.ObjectNode.class);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy