asAnyOrNull

Casts this ToolChoice as a Any and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.AnyToolChoice value. Returns null if the ToolChoice is not a Any.