asAnyOrNull

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