Class IncludedNestedStack.Builder
java.lang.Object
software.amazon.awscdk.cloudformation.include.IncludedNestedStack.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<IncludedNestedStack>
- Enclosing interface:
IncludedNestedStack
@Stability(Stable)
public static final class IncludedNestedStack.Builder
extends Object
implements software.amazon.jsii.Builder<IncludedNestedStack>
A builder for
IncludedNestedStack-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.includedTemplate(CfnInclude includedTemplate) Sets the value ofIncludedNestedStack.getIncludedTemplate()stack(NestedStack stack) Sets the value ofIncludedNestedStack.getStack()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
includedTemplate
Sets the value ofIncludedNestedStack.getIncludedTemplate()- Parameters:
includedTemplate- The CfnInclude that represents the template, which can be used to access Resources and other template elements. This parameter is required.- Returns:
this
-
stack
Sets the value ofIncludedNestedStack.getStack()- Parameters:
stack- The NestedStack object which represents the scope of the template. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<IncludedNestedStack>- Returns:
- a new instance of
IncludedNestedStack - Throws:
NullPointerException- if any required attribute was not provided
-