Boolean

data class Boolean(val value: Boolean) : AttributeValue

An attribute value of Boolean type.

Example: {"boolean": true}

Constructors

Link copied to clipboard
constructor(value: Boolean)

Properties

Link copied to clipboard

Inherited functions

Link copied to clipboard

Casts this AttributeValue as a Boolean and retrieves its kotlin.Boolean value. Throws an exception if the AttributeValue is not a Boolean.

Link copied to clipboard

Casts this AttributeValue as a Boolean and retrieves its kotlin.Boolean value. Returns null if the AttributeValue is not a Boolean.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard
fun asLong(): Long

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

Link copied to clipboard

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

Link copied to clipboard

Casts this AttributeValue as a Record and retrieves its kotlin.collections.Map value. Throws an exception if the AttributeValue is not a Record.

Link copied to clipboard

Casts this AttributeValue as a Record and retrieves its kotlin.collections.Map value. Returns null if the AttributeValue is not a Record.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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