Class CfnDataSource.DocumentAttributeConditionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.qbusiness.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.Sets the value ofCfnDataSource.DocumentAttributeConditionProperty.getKey()
Sets the value ofCfnDataSource.DocumentAttributeConditionProperty.getOperator()
value
(IResolvable value) Sets the value ofCfnDataSource.DocumentAttributeConditionProperty.getValue()
Sets the value ofCfnDataSource.DocumentAttributeConditionProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
key
Sets the value ofCfnDataSource.DocumentAttributeConditionProperty.getKey()
- Parameters:
key
- 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 Q Business currently doesn't support
_document_body
as 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 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 Q Business currently does not support
_document_body
as an attribute key used for the condition.- Returns:
this
-
value
@Stability(Stable) public CfnDataSource.DocumentAttributeConditionProperty.Builder value(IResolvable value) Sets the value ofCfnDataSource.DocumentAttributeConditionProperty.getValue()
- Parameters:
value
- The value of a document attribute. You can only provide one value for a document attribute.- Returns:
this
-
value
@Stability(Stable) public CfnDataSource.DocumentAttributeConditionProperty.Builder value(CfnDataSource.DocumentAttributeValueProperty value) Sets the value ofCfnDataSource.DocumentAttributeConditionProperty.getValue()
- Parameters:
value
- The value of a document attribute. You can only provide one value for a document attribute.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDataSource.DocumentAttributeConditionProperty>
- Returns:
- a new instance of
CfnDataSource.DocumentAttributeConditionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-