asTextOrNull
Casts this GuardrailContentBlock as a Text and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.GuardrailTextBlock value. Returns null if the GuardrailContentBlock is not a Text.
Casts this GuardrailContentBlock as a Text and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.GuardrailTextBlock value. Returns null if the GuardrailContentBlock is not a Text.