StringContains

Knowledge base data sources are returned if they contain a metadata attribute whose name matches the key and whose value is one of the following:

A string that contains the value as a substring. The following example would return data sources with an animal attribute that contains the substring at (for example, 'cat'): "stringContains": { "key": "animal", "value": "at" }

A list with a member that contains the value as a substring. The following example would return data sources with an animals attribute that is a list containing a member that contains the substring at (for example, ["dog", "cat"]): "stringContains": { "key": "animals", "value": "at" }

Constructors

Link copied to clipboard
constructor(value: FilterAttribute)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun toString(): String

Inherited functions

Link copied to clipboard

Casts this RetrievalFilter as a AndAll and retrieves its kotlin.collections.List value. Throws an exception if the RetrievalFilter is not a AndAll.

Link copied to clipboard

Casts this RetrievalFilter as a AndAll and retrieves its kotlin.collections.List value. Returns null if the RetrievalFilter is not a AndAll.

Link copied to clipboard

Casts this RetrievalFilter as a Equals and retrieves its aws.sdk.kotlin.services.bedrock.model.FilterAttribute value. Throws an exception if the RetrievalFilter is not a Equals.

Link copied to clipboard

Casts this RetrievalFilter as a Equals and retrieves its aws.sdk.kotlin.services.bedrock.model.FilterAttribute value. Returns null if the RetrievalFilter is not a Equals.

Link copied to clipboard

Casts this RetrievalFilter as a GreaterThan and retrieves its aws.sdk.kotlin.services.bedrock.model.FilterAttribute value. Throws an exception if the RetrievalFilter is not a GreaterThan.

Link copied to clipboard
Link copied to clipboard

Casts this RetrievalFilter as a In and retrieves its aws.sdk.kotlin.services.bedrock.model.FilterAttribute value. Throws an exception if the RetrievalFilter is not a In.

Link copied to clipboard

Casts this RetrievalFilter as a In and retrieves its aws.sdk.kotlin.services.bedrock.model.FilterAttribute value. Returns null if the RetrievalFilter is not a In.

Link copied to clipboard

Casts this RetrievalFilter as a LessThan and retrieves its aws.sdk.kotlin.services.bedrock.model.FilterAttribute value. Throws an exception if the RetrievalFilter is not a LessThan.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Casts this RetrievalFilter as a NotEquals and retrieves its aws.sdk.kotlin.services.bedrock.model.FilterAttribute value. Throws an exception if the RetrievalFilter is not a NotEquals.

Link copied to clipboard
Link copied to clipboard

Casts this RetrievalFilter as a NotIn and retrieves its aws.sdk.kotlin.services.bedrock.model.FilterAttribute value. Throws an exception if the RetrievalFilter is not a NotIn.

Link copied to clipboard

Casts this RetrievalFilter as a NotIn and retrieves its aws.sdk.kotlin.services.bedrock.model.FilterAttribute value. Returns null if the RetrievalFilter is not a NotIn.

Link copied to clipboard

Casts this RetrievalFilter as a OrAll and retrieves its kotlin.collections.List value. Throws an exception if the RetrievalFilter is not a OrAll.

Link copied to clipboard

Casts this RetrievalFilter as a OrAll and retrieves its kotlin.collections.List value. Returns null if the RetrievalFilter is not a OrAll.

Link copied to clipboard

Casts this RetrievalFilter as a StartsWith and retrieves its aws.sdk.kotlin.services.bedrock.model.FilterAttribute value. Throws an exception if the RetrievalFilter is not a StartsWith.

Link copied to clipboard
Link copied to clipboard