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

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

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

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



/**
 * Contains information about the model or system-defined inference profile that is the source for an inference profile..
 */
public sealed class InferenceProfileModelSource {
    /**
     * The ARN of the model or system-defined inference profile that is the source for the inference profile.
     */
    public data class CopyFrom(val value: kotlin.String) : aws.sdk.kotlin.services.bedrock.model.InferenceProfileModelSource() {
    }

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

    /**
     * Casts this [InferenceProfileModelSource] as a [CopyFrom] and retrieves its [kotlin.String] value. Throws an exception if the [InferenceProfileModelSource] is not a
     * [CopyFrom].
     */
    public fun asCopyFrom(): kotlin.String = (this as InferenceProfileModelSource.CopyFrom).value

    /**
     * Casts this [InferenceProfileModelSource] as a [CopyFrom] and retrieves its [kotlin.String] value. Returns null if the [InferenceProfileModelSource] is not a [CopyFrom].
     */
    public fun asCopyFromOrNull(): kotlin.String? = (this as? InferenceProfileModelSource.CopyFrom)?.value
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy