Package software.amazon.awscdk
Class CfnGuardHook.StackFiltersProperty.Builder
java.lang.Object
software.amazon.awscdk.CfnGuardHook.StackFiltersProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGuardHook.StackFiltersProperty>
- Enclosing interface:
CfnGuardHook.StackFiltersProperty
@Stability(Stable)
public static final class CfnGuardHook.StackFiltersProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGuardHook.StackFiltersProperty>
A builder for
CfnGuardHook.StackFiltersProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.filteringCriteria(String filteringCriteria) Sets the value ofCfnGuardHook.StackFiltersProperty.getFilteringCriteria()stackNames(CfnGuardHook.StackNamesProperty stackNames) Sets the value ofCfnGuardHook.StackFiltersProperty.getStackNames()stackNames(IResolvable stackNames) Sets the value ofCfnGuardHook.StackFiltersProperty.getStackNames()stackRoles(CfnGuardHook.StackRolesProperty stackRoles) Sets the value ofCfnGuardHook.StackFiltersProperty.getStackRoles()stackRoles(IResolvable stackRoles) Sets the value ofCfnGuardHook.StackFiltersProperty.getStackRoles()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
filteringCriteria
@Stability(Stable) public CfnGuardHook.StackFiltersProperty.Builder filteringCriteria(String filteringCriteria) Sets the value ofCfnGuardHook.StackFiltersProperty.getFilteringCriteria()- Parameters:
filteringCriteria- Attribute to specify the filtering behavior. This parameter is required. ANY will make the Hook pass if one filter matches. ALL will make the Hook pass if all filters match- Returns:
this
-
stackNames
@Stability(Stable) public CfnGuardHook.StackFiltersProperty.Builder stackNames(IResolvable stackNames) Sets the value ofCfnGuardHook.StackFiltersProperty.getStackNames()- Parameters:
stackNames- List of stack names as filters.- Returns:
this
-
stackNames
@Stability(Stable) public CfnGuardHook.StackFiltersProperty.Builder stackNames(CfnGuardHook.StackNamesProperty stackNames) Sets the value ofCfnGuardHook.StackFiltersProperty.getStackNames()- Parameters:
stackNames- List of stack names as filters.- Returns:
this
-
stackRoles
@Stability(Stable) public CfnGuardHook.StackFiltersProperty.Builder stackRoles(IResolvable stackRoles) Sets the value ofCfnGuardHook.StackFiltersProperty.getStackRoles()- Parameters:
stackRoles- List of stack roles that are performing the stack operations.- Returns:
this
-
stackRoles
@Stability(Stable) public CfnGuardHook.StackFiltersProperty.Builder stackRoles(CfnGuardHook.StackRolesProperty stackRoles) Sets the value ofCfnGuardHook.StackFiltersProperty.getStackRoles()- Parameters:
stackRoles- List of stack roles that are performing the stack operations.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnGuardHook.StackFiltersProperty>- Returns:
- a new instance of
CfnGuardHook.StackFiltersProperty - Throws:
NullPointerException- if any required attribute was not provided
-