Class CfnAllowListProps.Builder
java.lang.Object
software.amazon.awscdk.services.macie.CfnAllowListProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAllowListProps>
- Enclosing interface:
CfnAllowListProps
@Stability(Stable)
public static final class CfnAllowListProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAllowListProps>
A builder for
CfnAllowListProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.criteria
(IResolvable criteria) Sets the value ofCfnAllowListProps.getCriteria()
criteria
(CfnAllowList.CriteriaProperty criteria) Sets the value ofCfnAllowListProps.getCriteria()
description
(String description) Sets the value ofCfnAllowListProps.getDescription()
Sets the value ofCfnAllowListProps.getName()
Sets the value ofCfnAllowListProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
criteria
Sets the value ofCfnAllowListProps.getCriteria()
- Parameters:
criteria
- The criteria that specify the text or text pattern to ignore. This parameter is required. The criteria can be the location and name of an Amazon S3 object that lists specific text to ignore (S3WordsList
), or a regular expression (Regex
) that defines a text pattern to ignore.- Returns:
this
-
criteria
@Stability(Stable) public CfnAllowListProps.Builder criteria(CfnAllowList.CriteriaProperty criteria) Sets the value ofCfnAllowListProps.getCriteria()
- Parameters:
criteria
- The criteria that specify the text or text pattern to ignore. This parameter is required. The criteria can be the location and name of an Amazon S3 object that lists specific text to ignore (S3WordsList
), or a regular expression (Regex
) that defines a text pattern to ignore.- Returns:
this
-
name
Sets the value ofCfnAllowListProps.getName()
- Parameters:
name
- A custom name for the allow list. This parameter is required. The name can contain 1-128 characters.- Returns:
this
-
description
Sets the value ofCfnAllowListProps.getDescription()
- Parameters:
description
- A custom description of the allow list. The description can contain 1-512 characters.- Returns:
this
-
tags
Sets the value ofCfnAllowListProps.getTags()
- Parameters:
tags
- An array of key-value pairs to apply to the allow list. For more information, see Resource tag .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAllowListProps>
- Returns:
- a new instance of
CfnAllowListProps
- Throws:
NullPointerException
- if any required attribute was not provided
-