All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.bedrockagent.model.FlowConnectionConfiguration.kt Maven / Gradle / Ivy

// 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
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy