NotEquals

data class NotEquals(val value: FilterAttribute) : RetrievalFilter

Knowledge base data sources are returned when:

  • It contains a metadata attribute whose name matches the key and whose value doesn't match the value in this object.

  • The key is not present in the document.

The following example would return data sources that don't contain an animal attribute whose value is cat.

"notEquals": { "key": "animal", "value": "cat" }

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.bedrockagentruntime.model.FilterAttribute value. Throws an exception if the RetrievalFilter is not a Equals.

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

Casts this RetrievalFilter as a In and retrieves its aws.sdk.kotlin.services.bedrockagentruntime.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.bedrockagentruntime.model.FilterAttribute value. Returns null if the RetrievalFilter is not a In.

Link copied to clipboard
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 NotIn and retrieves its aws.sdk.kotlin.services.bedrockagentruntime.model.FilterAttribute value. Throws an exception if the RetrievalFilter is not a NotIn.

Link copied to clipboard
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
Link copied to clipboard
Link copied to clipboard