Class CfnDataSource.DocumentAttributeConditionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.kendra.CfnDataSource.DocumentAttributeConditionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataSource.DocumentAttributeConditionProperty>
- Enclosing interface:
- CfnDataSource.DocumentAttributeConditionProperty
@Stability(Stable)
public static final class CfnDataSource.DocumentAttributeConditionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataSource.DocumentAttributeConditionProperty>
A builder for
CfnDataSource.DocumentAttributeConditionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.conditionDocumentAttributeKey(String conditionDocumentAttributeKey) conditionOnValue(IResolvable conditionOnValue) Sets the value ofCfnDataSource.DocumentAttributeConditionProperty.getConditionOnValue()conditionOnValue(CfnDataSource.DocumentAttributeValueProperty conditionOnValue) Sets the value ofCfnDataSource.DocumentAttributeConditionProperty.getConditionOnValue()Sets the value ofCfnDataSource.DocumentAttributeConditionProperty.getOperator()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
conditionDocumentAttributeKey
@Stability(Stable) public CfnDataSource.DocumentAttributeConditionProperty.Builder conditionDocumentAttributeKey(String conditionDocumentAttributeKey) Sets the value ofCfnDataSource.DocumentAttributeConditionProperty.getConditionDocumentAttributeKey()- Parameters:
conditionDocumentAttributeKey- The identifier of the document attribute used for the condition. This parameter is required. For example, 'Source_URI' could be an identifier for the attribute or metadata field that contains source URIs associated with the documents.Amazon Kendra currently does not support
_document_bodyas an attribute key used for the condition.- Returns:
this
-
operator
@Stability(Stable) public CfnDataSource.DocumentAttributeConditionProperty.Builder operator(String operator) Sets the value ofCfnDataSource.DocumentAttributeConditionProperty.getOperator()- Parameters:
operator- The condition operator. This parameter is required. For example, you can use 'Contains' to partially match a string.- Returns:
this
-
conditionOnValue
@Stability(Stable) public CfnDataSource.DocumentAttributeConditionProperty.Builder conditionOnValue(IResolvable conditionOnValue) Sets the value ofCfnDataSource.DocumentAttributeConditionProperty.getConditionOnValue()- Parameters:
conditionOnValue- The value used by the operator. For example, you can specify the value 'financial' for strings in the 'Source_URI' field that partially match or contain this value.- Returns:
this
-
conditionOnValue
@Stability(Stable) public CfnDataSource.DocumentAttributeConditionProperty.Builder conditionOnValue(CfnDataSource.DocumentAttributeValueProperty conditionOnValue) Sets the value ofCfnDataSource.DocumentAttributeConditionProperty.getConditionOnValue()- Parameters:
conditionOnValue- The value used by the operator. For example, you can specify the value 'financial' for strings in the 'Source_URI' field that partially match or contain this value.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDataSource.DocumentAttributeConditionProperty>- Returns:
- a new instance of
CfnDataSource.DocumentAttributeConditionProperty - Throws:
NullPointerException- if any required attribute was not provided
-