Class CfnDataSource.PatternObjectFilterProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnDataSource.PatternObjectFilterProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataSource.PatternObjectFilterProperty>
- Enclosing interface:
CfnDataSource.PatternObjectFilterProperty
@Stability(Stable)
public static final class CfnDataSource.PatternObjectFilterProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataSource.PatternObjectFilterProperty>
A builder for
CfnDataSource.PatternObjectFilterProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.exclusionFilters
(List<String> exclusionFilters) Sets the value ofCfnDataSource.PatternObjectFilterProperty.getExclusionFilters()
inclusionFilters
(List<String> inclusionFilters) Sets the value ofCfnDataSource.PatternObjectFilterProperty.getInclusionFilters()
objectType
(String objectType) Sets the value ofCfnDataSource.PatternObjectFilterProperty.getObjectType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
objectType
@Stability(Stable) public CfnDataSource.PatternObjectFilterProperty.Builder objectType(String objectType) Sets the value ofCfnDataSource.PatternObjectFilterProperty.getObjectType()
- Parameters:
objectType
- The supported object type or content type of the data source. This parameter is required.- Returns:
this
-
exclusionFilters
@Stability(Stable) public CfnDataSource.PatternObjectFilterProperty.Builder exclusionFilters(List<String> exclusionFilters) Sets the value ofCfnDataSource.PatternObjectFilterProperty.getExclusionFilters()
- Parameters:
exclusionFilters
- A list of one or more exclusion regular expression patterns to exclude certain object types that adhere to the pattern. If you specify an inclusion and exclusion filter/pattern and both match a document, the exclusion filter takes precedence and the document isn’t crawled.- Returns:
this
-
inclusionFilters
@Stability(Stable) public CfnDataSource.PatternObjectFilterProperty.Builder inclusionFilters(List<String> inclusionFilters) Sets the value ofCfnDataSource.PatternObjectFilterProperty.getInclusionFilters()
- Parameters:
inclusionFilters
- A list of one or more inclusion regular expression patterns to include certain object types that adhere to the pattern. If you specify an inclusion and exclusion filter/pattern and both match a document, the exclusion filter takes precedence and the document isn’t crawled.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDataSource.PatternObjectFilterProperty>
- Returns:
- a new instance of
CfnDataSource.PatternObjectFilterProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-