Class CfnFilterProps.Builder
java.lang.Object
software.amazon.awscdk.services.inspectorv2.CfnFilterProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFilterProps>
- Enclosing interface:
CfnFilterProps
@Stability(Stable)
public static final class CfnFilterProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFilterProps>
A builder for
CfnFilterProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnFilterProps.getDescription()filterAction(String filterAction) Sets the value ofCfnFilterProps.getFilterAction()filterCriteria(IResolvable filterCriteria) Sets the value ofCfnFilterProps.getFilterCriteria()filterCriteria(CfnFilter.FilterCriteriaProperty filterCriteria) Sets the value ofCfnFilterProps.getFilterCriteria()Sets the value ofCfnFilterProps.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
filterAction
Sets the value ofCfnFilterProps.getFilterAction()- Parameters:
filterAction- The action that is to be applied to the findings that match the filter. This parameter is required.- Returns:
this
-
filterCriteria
Sets the value ofCfnFilterProps.getFilterCriteria()- Parameters:
filterCriteria- Details on the filter criteria associated with this filter. This parameter is required.- Returns:
this
-
filterCriteria
@Stability(Stable) public CfnFilterProps.Builder filterCriteria(CfnFilter.FilterCriteriaProperty filterCriteria) Sets the value ofCfnFilterProps.getFilterCriteria()- Parameters:
filterCriteria- Details on the filter criteria associated with this filter. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnFilterProps.getName()- Parameters:
name- The name of the filter. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnFilterProps.getDescription()- Parameters:
description- A description of the filter.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFilterProps>- Returns:
- a new instance of
CfnFilterProps - Throws:
NullPointerException- if any required attribute was not provided
-