
commonMain.aws.sdk.kotlin.services.bedrock.model.EvaluationConfig.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.bedrock.model
/**
* Used to specify either a `AutomatedEvaluationConfig` or `HumanEvaluationConfig` object.
*/
public sealed class EvaluationConfig {
/**
* Used to specify an automated model evaluation job. See `AutomatedEvaluationConfig` to view the required parameters.
*/
public data class Automated(val value: aws.sdk.kotlin.services.bedrock.model.AutomatedEvaluationConfig) : aws.sdk.kotlin.services.bedrock.model.EvaluationConfig() {
}
/**
* Used to specify a model evaluation job that uses human workers.See `HumanEvaluationConfig` to view the required parameters.
*/
public data class Human(val value: aws.sdk.kotlin.services.bedrock.model.HumanEvaluationConfig) : aws.sdk.kotlin.services.bedrock.model.EvaluationConfig() {
}
public object SdkUnknown : aws.sdk.kotlin.services.bedrock.model.EvaluationConfig() {
}
/**
* Casts this [EvaluationConfig] as a [Automated] and retrieves its [aws.sdk.kotlin.services.bedrock.model.AutomatedEvaluationConfig] value. Throws an exception if the [EvaluationConfig] is not a
* [Automated].
*/
public fun asAutomated(): aws.sdk.kotlin.services.bedrock.model.AutomatedEvaluationConfig = (this as EvaluationConfig.Automated).value
/**
* Casts this [EvaluationConfig] as a [Automated] and retrieves its [aws.sdk.kotlin.services.bedrock.model.AutomatedEvaluationConfig] value. Returns null if the [EvaluationConfig] is not a [Automated].
*/
public fun asAutomatedOrNull(): aws.sdk.kotlin.services.bedrock.model.AutomatedEvaluationConfig? = (this as? EvaluationConfig.Automated)?.value
/**
* Casts this [EvaluationConfig] as a [Human] and retrieves its [aws.sdk.kotlin.services.bedrock.model.HumanEvaluationConfig] value. Throws an exception if the [EvaluationConfig] is not a
* [Human].
*/
public fun asHuman(): aws.sdk.kotlin.services.bedrock.model.HumanEvaluationConfig = (this as EvaluationConfig.Human).value
/**
* Casts this [EvaluationConfig] as a [Human] and retrieves its [aws.sdk.kotlin.services.bedrock.model.HumanEvaluationConfig] value. Returns null if the [EvaluationConfig] is not a [Human].
*/
public fun asHumanOrNull(): aws.sdk.kotlin.services.bedrock.model.HumanEvaluationConfig? = (this as? EvaluationConfig.Human)?.value
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy