Index

data class Index(val value: Int) : PathElement

Refers to an index in a JSON array.

Constructors

Link copied to clipboard
constructor(value: Int)

Properties

Link copied to clipboard
val value: Int

Inherited functions

Link copied to clipboard
fun asIndex(): Int

Casts this PathElement as a Index and retrieves its kotlin.Int value. Throws an exception if the PathElement is not a Index.

Link copied to clipboard

Casts this PathElement as a Index and retrieves its kotlin.Int value. Returns null if the PathElement is not a Index.

Link copied to clipboard
fun asKey(): String

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

Link copied to clipboard

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

Link copied to clipboard

Casts this PathElement as a Substring and retrieves its aws.sdk.kotlin.services.accessanalyzer.model.Substring value. Throws an exception if the PathElement is not a Substring.

Link copied to clipboard

Casts this PathElement as a Substring and retrieves its aws.sdk.kotlin.services.accessanalyzer.model.Substring value. Returns null if the PathElement is not a Substring.

Link copied to clipboard

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

Link copied to clipboard

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