MapSerializer

Serializes a map. In Smithy, keys in maps are always Strings.

Functions

Link copied to clipboard
abstract fun endMap()

Ends the map that was started (i.e. in JSON this would be a '}').

Link copied to clipboard
abstract fun entry(key: String, value: <Error class: unknown class>?)
abstract fun entry(key: String, value: SdkSerializable?)
abstract fun entry(key: String, value: Boolean?)
abstract fun entry(key: String, value: Byte?)
abstract fun entry(key: String, value: ByteArray?)
abstract fun entry(key: String, value: Char?)
abstract fun entry(key: String, value: Double?)
abstract fun entry(key: String, value: Float?)
abstract fun entry(key: String, value: Int?)
abstract fun entry(key: String, value: Long?)
abstract fun entry(key: String, value: Short?)
abstract fun entry(key: String, value: String?)
abstract fun entry(key: String, value: <Error class: unknown class>?, format: <Error class: unknown class>)

Writes the key given in the descriptor, and then serializes value.

Link copied to clipboard
abstract fun listEntry(key: String, listDescriptor: SdkFieldDescriptor, block: ListSerializer.() -> Unit)

Writes the field name given in the descriptor, and then serializes the list field using the given block.

Link copied to clipboard
abstract fun mapEntry(key: String, mapDescriptor: SdkFieldDescriptor, block: MapSerializer.() -> Unit)

Writes the field name given in the descriptor, and then serializes the map field using the given block.

Inherited functions

Link copied to clipboard
abstract fun serializeBigDecimal(value: <Error class: unknown class>)

Serializes the given value.

Link copied to clipboard
abstract fun serializeBigInteger(value: <Error class: unknown class>)

Serializes the given value.

Link copied to clipboard
abstract fun serializeBoolean(value: Boolean)

Serializes the given value.

Link copied to clipboard
abstract fun serializeByte(value: Byte)

Serializes the given value.

Link copied to clipboard
abstract fun serializeByteArray(value: ByteArray)

Serializes the given value.

Link copied to clipboard
abstract fun serializeChar(value: Char)

Serializes the given value.

Link copied to clipboard
abstract fun serializeDocument(value: <Error class: unknown class>?)

Serializes the given value.

Link copied to clipboard
abstract fun serializeDouble(value: Double)

Serializes the given value.

Link copied to clipboard
abstract fun serializeFloat(value: Float)

Serializes the given value.

Link copied to clipboard
abstract fun serializeInstant(value: <Error class: unknown class>, format: <Error class: unknown class>)

Serializes the given value.

Link copied to clipboard
abstract fun serializeInt(value: Int)

Serializes the given value.

Link copied to clipboard
abstract fun serializeLong(value: Long)

Serializes the given value.

Link copied to clipboard
abstract fun serializeNull()

Serializes the given value.

Link copied to clipboard

Calls the serialize method on the given object.

Link copied to clipboard
abstract fun serializeShort(value: Short)

Serializes the given value.

Link copied to clipboard
abstract fun serializeString(value: String)

Serializes the given value.