DocumentAttributeValue

The value of a document attribute. You can only provide one value for a document attribute.

Inheritors

Types

Link copied to clipboard
data class DateValue(val value: Instant) : DocumentAttributeValue

A date expressed as an ISO 8601 string.

Link copied to clipboard
data class LongValue(val value: Long) : DocumentAttributeValue

A long integer value.

Link copied to clipboard
Link copied to clipboard

A list of strings.

Link copied to clipboard
data class StringValue(val value: String) : DocumentAttributeValue

A string.

Functions

Link copied to clipboard

Casts this DocumentAttributeValue as a DateValue and retrieves its aws.smithy.kotlin.runtime.time.Instant value. Throws an exception if the DocumentAttributeValue is not a DateValue.

Link copied to clipboard

Casts this DocumentAttributeValue as a DateValue and retrieves its aws.smithy.kotlin.runtime.time.Instant value. Returns null if the DocumentAttributeValue is not a DateValue.

Link copied to clipboard

Casts this DocumentAttributeValue as a LongValue and retrieves its kotlin.Long value. Throws an exception if the DocumentAttributeValue is not a LongValue.

Link copied to clipboard

Casts this DocumentAttributeValue as a LongValue and retrieves its kotlin.Long value. Returns null if the DocumentAttributeValue is not a LongValue.

Link copied to clipboard

Casts this DocumentAttributeValue as a StringListValue and retrieves its List value. Throws an exception if the DocumentAttributeValue is not a StringListValue.

Link copied to clipboard

Casts this DocumentAttributeValue as a StringListValue and retrieves its List value. Returns null if the DocumentAttributeValue is not a StringListValue.

Link copied to clipboard

Casts this DocumentAttributeValue as a StringValue and retrieves its kotlin.String value. Throws an exception if the DocumentAttributeValue is not a StringValue.

Link copied to clipboard

Casts this DocumentAttributeValue as a StringValue and retrieves its kotlin.String value. Returns null if the DocumentAttributeValue is not a StringValue.