commonMain.aws.sdk.kotlin.services.bedrockagent.model.RetrievalFlowNodeServiceConfiguration.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.bedrockagent.model
/**
* Contains configurations for the service to use for retrieving data to return as the output from the node.
*/
public sealed class RetrievalFlowNodeServiceConfiguration {
/**
* Contains configurations for the Amazon S3 location from which to retrieve data to return as the output from the node.
*/
public data class S3(val value: aws.sdk.kotlin.services.bedrockagent.model.RetrievalFlowNodeS3Configuration) : aws.sdk.kotlin.services.bedrockagent.model.RetrievalFlowNodeServiceConfiguration() {
}
public object SdkUnknown : aws.sdk.kotlin.services.bedrockagent.model.RetrievalFlowNodeServiceConfiguration() {
}
/**
* Casts this [RetrievalFlowNodeServiceConfiguration] as a [S3] and retrieves its [aws.sdk.kotlin.services.bedrockagent.model.RetrievalFlowNodeS3Configuration] value. Throws an exception if the [RetrievalFlowNodeServiceConfiguration] is not a
* [S3].
*/
public fun asS3(): aws.sdk.kotlin.services.bedrockagent.model.RetrievalFlowNodeS3Configuration = (this as RetrievalFlowNodeServiceConfiguration.S3).value
/**
* Casts this [RetrievalFlowNodeServiceConfiguration] as a [S3] and retrieves its [aws.sdk.kotlin.services.bedrockagent.model.RetrievalFlowNodeS3Configuration] value. Returns null if the [RetrievalFlowNodeServiceConfiguration] is not a [S3].
*/
public fun asS3OrNull(): aws.sdk.kotlin.services.bedrockagent.model.RetrievalFlowNodeS3Configuration? = (this as? RetrievalFlowNodeServiceConfiguration.S3)?.value
}