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

commonMain.aws.sdk.kotlin.services.cleanroomsml.model.ComputeConfiguration.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.cleanroomsml.model



/**
 * Provides configuration information for the instances that will perform the compute work.
 */
public sealed class ComputeConfiguration {
    /**
     * The worker instances that will perform the compute work.
     */
    public data class Worker(val value: aws.sdk.kotlin.services.cleanroomsml.model.WorkerComputeConfiguration) : aws.sdk.kotlin.services.cleanroomsml.model.ComputeConfiguration() {
    }

    public object SdkUnknown : aws.sdk.kotlin.services.cleanroomsml.model.ComputeConfiguration() {
    }

    /**
     * Casts this [ComputeConfiguration] as a [Worker] and retrieves its [aws.sdk.kotlin.services.cleanroomsml.model.WorkerComputeConfiguration] value. Throws an exception if the [ComputeConfiguration] is not a
     * [Worker].
     */
    public fun asWorker(): aws.sdk.kotlin.services.cleanroomsml.model.WorkerComputeConfiguration = (this as ComputeConfiguration.Worker).value

    /**
     * Casts this [ComputeConfiguration] as a [Worker] and retrieves its [aws.sdk.kotlin.services.cleanroomsml.model.WorkerComputeConfiguration] value. Returns null if the [ComputeConfiguration] is not a [Worker].
     */
    public fun asWorkerOrNull(): aws.sdk.kotlin.services.cleanroomsml.model.WorkerComputeConfiguration? = (this as? ComputeConfiguration.Worker)?.value
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy