commonMain.aws.sdk.kotlin.services.cleanroomsml.model.ComputeConfiguration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cleanroomsml-jvm Show documentation
Show all versions of cleanroomsml-jvm Show documentation
The AWS SDK for Kotlin client for CleanRoomsML
// 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
}