Interface DocumentAttributeCondition.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<DocumentAttributeCondition.Builder,DocumentAttributeCondition>,SdkBuilder<DocumentAttributeCondition.Builder,DocumentAttributeCondition>,SdkPojo
- Enclosing class:
- DocumentAttributeCondition
public static interface DocumentAttributeCondition.Builder extends SdkPojo, CopyableBuilder<DocumentAttributeCondition.Builder,DocumentAttributeCondition>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description DocumentAttributeCondition.Builderkey(String key)The identifier of the document attribute used for the condition.DocumentAttributeCondition.Builderoperator(String operator)The identifier of the document attribute used for the condition.DocumentAttributeCondition.Builderoperator(DocumentEnrichmentConditionOperator operator)The identifier of the document attribute used for the condition.default DocumentAttributeCondition.Buildervalue(Consumer<DocumentAttributeValue.Builder> value)Sets the value of the Value property for this object.DocumentAttributeCondition.Buildervalue(DocumentAttributeValue value)Sets the value of the Value property for this object.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
key
DocumentAttributeCondition.Builder key(String key)
The identifier of the document attribute used for the condition.
For example, 'Source_URI' could be an identifier for the attribute or metadata field that contains source URIs associated with the documents.
Amazon Q currently doesn't support
_document_bodyas an attribute key used for the condition.- Parameters:
key- The identifier of the document attribute used for the condition.For example, 'Source_URI' could be an identifier for the attribute or metadata field that contains source URIs associated with the documents.
Amazon Q currently doesn't support
_document_bodyas an attribute key used for the condition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
operator
DocumentAttributeCondition.Builder operator(String operator)
The identifier of the document attribute used for the condition.
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.- Parameters:
operator- The identifier of the document attribute used for the condition.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:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
DocumentEnrichmentConditionOperator,DocumentEnrichmentConditionOperator
-
operator
DocumentAttributeCondition.Builder operator(DocumentEnrichmentConditionOperator operator)
The identifier of the document attribute used for the condition.
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.- Parameters:
operator- The identifier of the document attribute used for the condition.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:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
DocumentEnrichmentConditionOperator,DocumentEnrichmentConditionOperator
-
value
DocumentAttributeCondition.Builder value(DocumentAttributeValue value)
Sets the value of the Value property for this object.- Parameters:
value- The new value for the Value property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
value
default DocumentAttributeCondition.Builder value(Consumer<DocumentAttributeValue.Builder> value)
Sets the value of the Value property for this object. This is a convenience method that creates an instance of theDocumentAttributeValue.Builderavoiding the need to create one manually viaDocumentAttributeValue.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovalue(DocumentAttributeValue).- Parameters:
value- a consumer that will call methods onDocumentAttributeValue.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
value(DocumentAttributeValue)
-
-