Package software.amazon.awscdk
Class CfnGuardHook.StackNamesProperty.Builder
java.lang.Object
software.amazon.awscdk.CfnGuardHook.StackNamesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGuardHook.StackNamesProperty>
- Enclosing interface:
CfnGuardHook.StackNamesProperty
@Stability(Stable)
public static final class CfnGuardHook.StackNamesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGuardHook.StackNamesProperty>
A builder for
CfnGuardHook.StackNamesProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnGuardHook.StackNamesProperty.getExclude()Sets the value ofCfnGuardHook.StackNamesProperty.getInclude()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
exclude
Sets the value ofCfnGuardHook.StackNamesProperty.getExclude()- Parameters:
exclude- The stack names to exclude. All stacks except those listed here will invoke the Hook.- Returns:
this
-
include
Sets the value ofCfnGuardHook.StackNamesProperty.getInclude()- Parameters:
include- The stack names to include. Only the stacks specified in this list will invoke the Hook.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnGuardHook.StackNamesProperty>- Returns:
- a new instance of
CfnGuardHook.StackNamesProperty - Throws:
NullPointerException- if any required attribute was not provided
-