Interface RetrievalFilter.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<RetrievalFilter.Builder,RetrievalFilter>,SdkBuilder<RetrievalFilter.Builder,RetrievalFilter>,SdkPojo
- Enclosing class:
- RetrievalFilter
public static interface RetrievalFilter.Builder extends SdkPojo, CopyableBuilder<RetrievalFilter.Builder,RetrievalFilter>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description RetrievalFilter.BuilderandAll(Collection<RetrievalFilter> andAll)Knowledge base data sources whose metadata attributes fulfill all the filter conditions inside this list are returned.RetrievalFilter.BuilderandAll(Consumer<RetrievalFilter.Builder>... andAll)Knowledge base data sources whose metadata attributes fulfill all the filter conditions inside this list are returned.RetrievalFilter.BuilderandAll(RetrievalFilter... andAll)Knowledge base data sources whose metadata attributes fulfill all the filter conditions inside this list are returned.default RetrievalFilter.BuilderequalsValue(Consumer<FilterAttribute.Builder> equalsValue)Knowledge base data sources that contain a metadata attribute whose name matches thekeyand whose value matches thevaluein this object are returned.RetrievalFilter.BuilderequalsValue(FilterAttribute equalsValue)Knowledge base data sources that contain a metadata attribute whose name matches thekeyand whose value matches thevaluein this object are returned.default RetrievalFilter.BuildergreaterThan(Consumer<FilterAttribute.Builder> greaterThan)Knowledge base data sources that contain a metadata attribute whose name matches thekeyand whose value is greater than thevaluein this object are returned.RetrievalFilter.BuildergreaterThan(FilterAttribute greaterThan)Knowledge base data sources that contain a metadata attribute whose name matches thekeyand whose value is greater than thevaluein this object are returned.default RetrievalFilter.BuildergreaterThanOrEquals(Consumer<FilterAttribute.Builder> greaterThanOrEquals)Knowledge base data sources that contain a metadata attribute whose name matches thekeyand whose value is greater than or equal to thevaluein this object are returned.RetrievalFilter.BuildergreaterThanOrEquals(FilterAttribute greaterThanOrEquals)Knowledge base data sources that contain a metadata attribute whose name matches thekeyand whose value is greater than or equal to thevaluein this object are returned.default RetrievalFilter.Builderin(Consumer<FilterAttribute.Builder> in)Knowledge base data sources that contain a metadata attribute whose name matches thekeyand whose value is in the list specified in thevaluein this object are returned.RetrievalFilter.Builderin(FilterAttribute in)Knowledge base data sources that contain a metadata attribute whose name matches thekeyand whose value is in the list specified in thevaluein this object are returned.default RetrievalFilter.BuilderlessThan(Consumer<FilterAttribute.Builder> lessThan)Knowledge base data sources that contain a metadata attribute whose name matches thekeyand whose value is less than thevaluein this object are returned.RetrievalFilter.BuilderlessThan(FilterAttribute lessThan)Knowledge base data sources that contain a metadata attribute whose name matches thekeyand whose value is less than thevaluein this object are returned.default RetrievalFilter.BuilderlessThanOrEquals(Consumer<FilterAttribute.Builder> lessThanOrEquals)Knowledge base data sources that contain a metadata attribute whose name matches thekeyand whose value is less than or equal to thevaluein this object are returned.RetrievalFilter.BuilderlessThanOrEquals(FilterAttribute lessThanOrEquals)Knowledge base data sources that contain a metadata attribute whose name matches thekeyand whose value is less than or equal to thevaluein this object are returned.default RetrievalFilter.BuildernotEquals(Consumer<FilterAttribute.Builder> notEquals)Knowledge base data sources that contain a metadata attribute whose name matches thekeyand whose value doesn't match thevaluein this object are returned.RetrievalFilter.BuildernotEquals(FilterAttribute notEquals)Knowledge base data sources that contain a metadata attribute whose name matches thekeyand whose value doesn't match thevaluein this object are returned.default RetrievalFilter.BuildernotIn(Consumer<FilterAttribute.Builder> notIn)Knowledge base data sources that contain a metadata attribute whose name matches thekeyand whose value isn't in the list specified in thevaluein this object are returned.RetrievalFilter.BuildernotIn(FilterAttribute notIn)Knowledge base data sources that contain a metadata attribute whose name matches thekeyand whose value isn't in the list specified in thevaluein this object are returned.RetrievalFilter.BuilderorAll(Collection<RetrievalFilter> orAll)Knowledge base data sources whose metadata attributes fulfill at least one of the filter conditions inside this list are returned.RetrievalFilter.BuilderorAll(Consumer<RetrievalFilter.Builder>... orAll)Knowledge base data sources whose metadata attributes fulfill at least one of the filter conditions inside this list are returned.RetrievalFilter.BuilderorAll(RetrievalFilter... orAll)Knowledge base data sources whose metadata attributes fulfill at least one of the filter conditions inside this list are returned.default RetrievalFilter.BuilderstartsWith(Consumer<FilterAttribute.Builder> startsWith)Knowledge base data sources that contain a metadata attribute whose name matches thekeyand whose value starts with thevaluein this object are returned.RetrievalFilter.BuilderstartsWith(FilterAttribute startsWith)Knowledge base data sources that contain a metadata attribute whose name matches thekeyand whose value starts with thevaluein this object are returned.-
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
-
andAll
RetrievalFilter.Builder andAll(Collection<RetrievalFilter> andAll)
Knowledge base data sources whose metadata attributes fulfill all the filter conditions inside this list are returned.
- Parameters:
andAll- Knowledge base data sources whose metadata attributes fulfill all the filter conditions inside this list are returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
andAll
RetrievalFilter.Builder andAll(RetrievalFilter... andAll)
Knowledge base data sources whose metadata attributes fulfill all the filter conditions inside this list are returned.
- Parameters:
andAll- Knowledge base data sources whose metadata attributes fulfill all the filter conditions inside this list are returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
andAll
RetrievalFilter.Builder andAll(Consumer<RetrievalFilter.Builder>... andAll)
Knowledge base data sources whose metadata attributes fulfill all the filter conditions inside this list are returned.
This is a convenience method that creates an instance of theRetrievalFilter.Builderavoiding the need to create one manually viaRetrievalFilter.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#andAll(List.) - Parameters:
andAll- a consumer that will call methods onRetrievalFilter.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#andAll(java.util.Collection)
-
equalsValue
RetrievalFilter.Builder equalsValue(FilterAttribute equalsValue)
Knowledge base data sources that contain a metadata attribute whose name matches the
keyand whose value matches thevaluein this object are returned.- Parameters:
equalsValue- Knowledge base data sources that contain a metadata attribute whose name matches thekeyand whose value matches thevaluein this object are returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
equalsValue
default RetrievalFilter.Builder equalsValue(Consumer<FilterAttribute.Builder> equalsValue)
Knowledge base data sources that contain a metadata attribute whose name matches the
This is a convenience method that creates an instance of thekeyand whose value matches thevaluein this object are returned.FilterAttribute.Builderavoiding the need to create one manually viaFilterAttribute.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toequalsValue(FilterAttribute).- Parameters:
equalsValue- a consumer that will call methods onFilterAttribute.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
equalsValue(FilterAttribute)
-
greaterThan
RetrievalFilter.Builder greaterThan(FilterAttribute greaterThan)
Knowledge base data sources that contain a metadata attribute whose name matches the
keyand whose value is greater than thevaluein this object are returned.- Parameters:
greaterThan- Knowledge base data sources that contain a metadata attribute whose name matches thekeyand whose value is greater than thevaluein this object are returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
greaterThan
default RetrievalFilter.Builder greaterThan(Consumer<FilterAttribute.Builder> greaterThan)
Knowledge base data sources that contain a metadata attribute whose name matches the
This is a convenience method that creates an instance of thekeyand whose value is greater than thevaluein this object are returned.FilterAttribute.Builderavoiding the need to create one manually viaFilterAttribute.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed togreaterThan(FilterAttribute).- Parameters:
greaterThan- a consumer that will call methods onFilterAttribute.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
greaterThan(FilterAttribute)
-
greaterThanOrEquals
RetrievalFilter.Builder greaterThanOrEquals(FilterAttribute greaterThanOrEquals)
Knowledge base data sources that contain a metadata attribute whose name matches the
keyand whose value is greater than or equal to thevaluein this object are returned.- Parameters:
greaterThanOrEquals- Knowledge base data sources that contain a metadata attribute whose name matches thekeyand whose value is greater than or equal to thevaluein this object are returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
greaterThanOrEquals
default RetrievalFilter.Builder greaterThanOrEquals(Consumer<FilterAttribute.Builder> greaterThanOrEquals)
Knowledge base data sources that contain a metadata attribute whose name matches the
This is a convenience method that creates an instance of thekeyand whose value is greater than or equal to thevaluein this object are returned.FilterAttribute.Builderavoiding the need to create one manually viaFilterAttribute.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed togreaterThanOrEquals(FilterAttribute).- Parameters:
greaterThanOrEquals- a consumer that will call methods onFilterAttribute.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
greaterThanOrEquals(FilterAttribute)
-
in
RetrievalFilter.Builder in(FilterAttribute in)
Knowledge base data sources that contain a metadata attribute whose name matches the
keyand whose value is in the list specified in thevaluein this object are returned.- Parameters:
in- Knowledge base data sources that contain a metadata attribute whose name matches thekeyand whose value is in the list specified in thevaluein this object are returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
in
default RetrievalFilter.Builder in(Consumer<FilterAttribute.Builder> in)
Knowledge base data sources that contain a metadata attribute whose name matches the
This is a convenience method that creates an instance of thekeyand whose value is in the list specified in thevaluein this object are returned.FilterAttribute.Builderavoiding the need to create one manually viaFilterAttribute.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toin(FilterAttribute).- Parameters:
in- a consumer that will call methods onFilterAttribute.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
in(FilterAttribute)
-
lessThan
RetrievalFilter.Builder lessThan(FilterAttribute lessThan)
Knowledge base data sources that contain a metadata attribute whose name matches the
keyand whose value is less than thevaluein this object are returned.- Parameters:
lessThan- Knowledge base data sources that contain a metadata attribute whose name matches thekeyand whose value is less than thevaluein this object are returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lessThan
default RetrievalFilter.Builder lessThan(Consumer<FilterAttribute.Builder> lessThan)
Knowledge base data sources that contain a metadata attribute whose name matches the
This is a convenience method that creates an instance of thekeyand whose value is less than thevaluein this object are returned.FilterAttribute.Builderavoiding the need to create one manually viaFilterAttribute.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolessThan(FilterAttribute).- Parameters:
lessThan- a consumer that will call methods onFilterAttribute.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
lessThan(FilterAttribute)
-
lessThanOrEquals
RetrievalFilter.Builder lessThanOrEquals(FilterAttribute lessThanOrEquals)
Knowledge base data sources that contain a metadata attribute whose name matches the
keyand whose value is less than or equal to thevaluein this object are returned.- Parameters:
lessThanOrEquals- Knowledge base data sources that contain a metadata attribute whose name matches thekeyand whose value is less than or equal to thevaluein this object are returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lessThanOrEquals
default RetrievalFilter.Builder lessThanOrEquals(Consumer<FilterAttribute.Builder> lessThanOrEquals)
Knowledge base data sources that contain a metadata attribute whose name matches the
This is a convenience method that creates an instance of thekeyand whose value is less than or equal to thevaluein this object are returned.FilterAttribute.Builderavoiding the need to create one manually viaFilterAttribute.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolessThanOrEquals(FilterAttribute).- Parameters:
lessThanOrEquals- a consumer that will call methods onFilterAttribute.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
lessThanOrEquals(FilterAttribute)
-
notEquals
RetrievalFilter.Builder notEquals(FilterAttribute notEquals)
Knowledge base data sources that contain a metadata attribute whose name matches the
keyand whose value doesn't match thevaluein this object are returned.- Parameters:
notEquals- Knowledge base data sources that contain a metadata attribute whose name matches thekeyand whose value doesn't match thevaluein this object are returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notEquals
default RetrievalFilter.Builder notEquals(Consumer<FilterAttribute.Builder> notEquals)
Knowledge base data sources that contain a metadata attribute whose name matches the
This is a convenience method that creates an instance of thekeyand whose value doesn't match thevaluein this object are returned.FilterAttribute.Builderavoiding the need to create one manually viaFilterAttribute.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tonotEquals(FilterAttribute).- Parameters:
notEquals- a consumer that will call methods onFilterAttribute.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
notEquals(FilterAttribute)
-
notIn
RetrievalFilter.Builder notIn(FilterAttribute notIn)
Knowledge base data sources that contain a metadata attribute whose name matches the
keyand whose value isn't in the list specified in thevaluein this object are returned.- Parameters:
notIn- Knowledge base data sources that contain a metadata attribute whose name matches thekeyand whose value isn't in the list specified in thevaluein this object are returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notIn
default RetrievalFilter.Builder notIn(Consumer<FilterAttribute.Builder> notIn)
Knowledge base data sources that contain a metadata attribute whose name matches the
This is a convenience method that creates an instance of thekeyand whose value isn't in the list specified in thevaluein this object are returned.FilterAttribute.Builderavoiding the need to create one manually viaFilterAttribute.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tonotIn(FilterAttribute).- Parameters:
notIn- a consumer that will call methods onFilterAttribute.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
notIn(FilterAttribute)
-
orAll
RetrievalFilter.Builder orAll(Collection<RetrievalFilter> orAll)
Knowledge base data sources whose metadata attributes fulfill at least one of the filter conditions inside this list are returned.
- Parameters:
orAll- Knowledge base data sources whose metadata attributes fulfill at least one of the filter conditions inside this list are returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
orAll
RetrievalFilter.Builder orAll(RetrievalFilter... orAll)
Knowledge base data sources whose metadata attributes fulfill at least one of the filter conditions inside this list are returned.
- Parameters:
orAll- Knowledge base data sources whose metadata attributes fulfill at least one of the filter conditions inside this list are returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
orAll
RetrievalFilter.Builder orAll(Consumer<RetrievalFilter.Builder>... orAll)
Knowledge base data sources whose metadata attributes fulfill at least one of the filter conditions inside this list are returned.
This is a convenience method that creates an instance of theRetrievalFilter.Builderavoiding the need to create one manually viaRetrievalFilter.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#orAll(List.) - Parameters:
orAll- a consumer that will call methods onRetrievalFilter.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#orAll(java.util.Collection)
-
startsWith
RetrievalFilter.Builder startsWith(FilterAttribute startsWith)
Knowledge base data sources that contain a metadata attribute whose name matches the
keyand whose value starts with thevaluein this object are returned. This filter is currently only supported for Amazon OpenSearch Serverless vector stores.- Parameters:
startsWith- Knowledge base data sources that contain a metadata attribute whose name matches thekeyand whose value starts with thevaluein this object are returned. This filter is currently only supported for Amazon OpenSearch Serverless vector stores.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startsWith
default RetrievalFilter.Builder startsWith(Consumer<FilterAttribute.Builder> startsWith)
Knowledge base data sources that contain a metadata attribute whose name matches the
This is a convenience method that creates an instance of thekeyand whose value starts with thevaluein this object are returned. This filter is currently only supported for Amazon OpenSearch Serverless vector stores.FilterAttribute.Builderavoiding the need to create one manually viaFilterAttribute.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostartsWith(FilterAttribute).- Parameters:
startsWith- a consumer that will call methods onFilterAttribute.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
startsWith(FilterAttribute)
-
-