commonMain.aws.sdk.kotlin.services.bedrockagent.model.FlowConnectionConfiguration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bedrockagent-jvm Show documentation
Show all versions of bedrockagent-jvm Show documentation
The AWS SDK for Kotlin client for Bedrock Agent
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.bedrockagent.model
/**
* The configuration of the connection.
*/
public sealed class FlowConnectionConfiguration {
/**
* The configuration of a connection originating from a Condition node.
*/
public data class Conditional(val value: aws.sdk.kotlin.services.bedrockagent.model.FlowConditionalConnectionConfiguration) : aws.sdk.kotlin.services.bedrockagent.model.FlowConnectionConfiguration() {
}
/**
* The configuration of a connection originating from a node that isn't a Condition node.
*/
public data class Data(val value: aws.sdk.kotlin.services.bedrockagent.model.FlowDataConnectionConfiguration) : aws.sdk.kotlin.services.bedrockagent.model.FlowConnectionConfiguration() {
}
public object SdkUnknown : aws.sdk.kotlin.services.bedrockagent.model.FlowConnectionConfiguration() {
}
/**
* Casts this [FlowConnectionConfiguration] as a [Conditional] and retrieves its [aws.sdk.kotlin.services.bedrockagent.model.FlowConditionalConnectionConfiguration] value. Throws an exception if the [FlowConnectionConfiguration] is not a
* [Conditional].
*/
public fun asConditional(): aws.sdk.kotlin.services.bedrockagent.model.FlowConditionalConnectionConfiguration = (this as FlowConnectionConfiguration.Conditional).value
/**
* Casts this [FlowConnectionConfiguration] as a [Conditional] and retrieves its [aws.sdk.kotlin.services.bedrockagent.model.FlowConditionalConnectionConfiguration] value. Returns null if the [FlowConnectionConfiguration] is not a [Conditional].
*/
public fun asConditionalOrNull(): aws.sdk.kotlin.services.bedrockagent.model.FlowConditionalConnectionConfiguration? = (this as? FlowConnectionConfiguration.Conditional)?.value
/**
* Casts this [FlowConnectionConfiguration] as a [Data] and retrieves its [aws.sdk.kotlin.services.bedrockagent.model.FlowDataConnectionConfiguration] value. Throws an exception if the [FlowConnectionConfiguration] is not a
* [Data].
*/
public fun asData(): aws.sdk.kotlin.services.bedrockagent.model.FlowDataConnectionConfiguration = (this as FlowConnectionConfiguration.Data).value
/**
* Casts this [FlowConnectionConfiguration] as a [Data] and retrieves its [aws.sdk.kotlin.services.bedrockagent.model.FlowDataConnectionConfiguration] value. Returns null if the [FlowConnectionConfiguration] is not a [Data].
*/
public fun asDataOrNull(): aws.sdk.kotlin.services.bedrockagent.model.FlowDataConnectionConfiguration? = (this as? FlowConnectionConfiguration.Data)?.value
}