commonMain.aws.sdk.kotlin.services.bedrock.model.ModelDataSource.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.bedrock.model
/**
* Data source for the imported model.
*/
public sealed class ModelDataSource {
/**
* The Amazon S3 data source of the imported model.
*/
public data class S3DataSource(val value: aws.sdk.kotlin.services.bedrock.model.S3DataSource) : aws.sdk.kotlin.services.bedrock.model.ModelDataSource() {
}
public object SdkUnknown : aws.sdk.kotlin.services.bedrock.model.ModelDataSource() {
}
/**
* Casts this [ModelDataSource] as a [S3DataSource] and retrieves its [aws.sdk.kotlin.services.bedrock.model.S3DataSource] value. Throws an exception if the [ModelDataSource] is not a
* [S3DataSource].
*/
public fun asS3DataSource(): aws.sdk.kotlin.services.bedrock.model.S3DataSource = (this as ModelDataSource.S3DataSource).value
/**
* Casts this [ModelDataSource] as a [S3DataSource] and retrieves its [aws.sdk.kotlin.services.bedrock.model.S3DataSource] value. Returns null if the [ModelDataSource] is not a [S3DataSource].
*/
public fun asS3DataSourceOrNull(): aws.sdk.kotlin.services.bedrock.model.S3DataSource? = (this as? ModelDataSource.S3DataSource)?.value
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy