Json

data class Json(val value: <Error class: unknown class>) : HarnessToolResultBlockDelta

A JSON tool result delta.

Constructors

Link copied to clipboard
constructor(value: <Error class: unknown class>)

Properties

Link copied to clipboard
val value: <Error class: unknown class>

Inherited functions

Link copied to clipboard
fun asJson(): <Error class: unknown class>

Casts this HarnessToolResultBlockDelta as a Json and retrieves its aws.smithy.kotlin.runtime.content.Document value. Throws an exception if the HarnessToolResultBlockDelta is not a Json.

Link copied to clipboard
fun asJsonOrNull(): <Error class: unknown class>?

Casts this HarnessToolResultBlockDelta as a Json and retrieves its aws.smithy.kotlin.runtime.content.Document value. Returns null if the HarnessToolResultBlockDelta is not a Json.

Link copied to clipboard
fun asText(): String

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

Link copied to clipboard

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