Class CfnTask.FilterRuleProperty.Builder
java.lang.Object
software.amazon.awscdk.services.datasync.CfnTask.FilterRuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTask.FilterRuleProperty>
- Enclosing interface:
CfnTask.FilterRuleProperty
@Stability(Stable)
public static final class CfnTask.FilterRuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTask.FilterRuleProperty>
A builder for
CfnTask.FilterRuleProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.filterType
(String filterType) Sets the value ofCfnTask.FilterRuleProperty.getFilterType()
Sets the value ofCfnTask.FilterRuleProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
filterType
Sets the value ofCfnTask.FilterRuleProperty.getFilterType()
- Parameters:
filterType
- The type of filter rule to apply. AWS DataSync only supports the SIMPLE_PATTERN rule type.- Returns:
this
-
value
Sets the value ofCfnTask.FilterRuleProperty.getValue()
- Parameters:
value
- A single filter string that consists of the patterns to include or exclude. The patterns are delimited by "|" (that is, a pipe), for example:/folder1|/folder2
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTask.FilterRuleProperty>
- Returns:
- a new instance of
CfnTask.FilterRuleProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-