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

commonMain.aws.sdk.kotlin.services.bedrock.model.EvaluationModelConfig.kt Maven / Gradle / Ivy

There is a newer version: 1.4.1
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.bedrock.model



/**
 * Defines the models used in the model evaluation job.
 */
public sealed class EvaluationModelConfig {
    /**
     * Defines the Amazon Bedrock model and inference parameters you want used.
     */
    public data class BedrockModel(val value: aws.sdk.kotlin.services.bedrock.model.EvaluationBedrockModel) : aws.sdk.kotlin.services.bedrock.model.EvaluationModelConfig() {
    }

    public object SdkUnknown : aws.sdk.kotlin.services.bedrock.model.EvaluationModelConfig() {
    }

    /**
     * Casts this [EvaluationModelConfig] as a [BedrockModel] and retrieves its [aws.sdk.kotlin.services.bedrock.model.EvaluationBedrockModel] value. Throws an exception if the [EvaluationModelConfig] is not a
     * [BedrockModel].
     */
    public fun asBedrockModel(): aws.sdk.kotlin.services.bedrock.model.EvaluationBedrockModel = (this as EvaluationModelConfig.BedrockModel).value

    /**
     * Casts this [EvaluationModelConfig] as a [BedrockModel] and retrieves its [aws.sdk.kotlin.services.bedrock.model.EvaluationBedrockModel] value. Returns null if the [EvaluationModelConfig] is not a [BedrockModel].
     */
    public fun asBedrockModelOrNull(): aws.sdk.kotlin.services.bedrock.model.EvaluationBedrockModel? = (this as? EvaluationModelConfig.BedrockModel)?.value
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy