N

data class N(val value: String) : AttributeValue

An attribute of type Number. For example:

"N": "123.45"

Numbers are sent across the network to DynamoDB as strings, to maximize compatibility across languages and libraries. However, DynamoDB treats them as number type attributes for mathematical operations.

Constructors

Link copied to clipboard
constructor(value: String)

Properties

Link copied to clipboard

Inherited functions

Link copied to clipboard
fun asB(): ByteArray

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard
fun asN(): String

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

Link copied to clipboard

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

Link copied to clipboard
fun asNs(): List<String>

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard
fun asS(): String

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

Link copied to clipboard

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

Link copied to clipboard
fun asSs(): List<String>

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

Link copied to clipboard

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