Long

data class Long(val value: Long) : AttributeValue

An attribute value of Long type.

Example: {"long": 0}

Constructors

Link copied to clipboard
constructor(value: Long)

Properties

Link copied to clipboard
val value: Long

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.