commonMain.aws.sdk.kotlin.services.cleanroomsml.model.WorkerComputeConfiguration.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
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Configuration information about the compute workers that perform the transform job.
*/
public class WorkerComputeConfiguration private constructor(builder: Builder) {
/**
* The number of compute workers that are used.
*/
public val number: kotlin.Int = builder.number
/**
* The instance type of the compute workers that are used.
*/
public val type: aws.sdk.kotlin.services.cleanroomsml.model.WorkerComputeType = builder.type
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cleanroomsml.model.WorkerComputeConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("WorkerComputeConfiguration(")
append("number=$number,")
append("type=$type")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = number
result = 31 * result + (type.hashCode())
return result
}
override fun equals(other: kotlin.Any?): kotlin.Boolean {
if (this === other) return true
if (other == null || this::class != other::class) return false
other as WorkerComputeConfiguration
if (number != other.number) return false
if (type != other.type) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cleanroomsml.model.WorkerComputeConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The number of compute workers that are used.
*/
public var number: kotlin.Int = 16
/**
* The instance type of the compute workers that are used.
*/
public var type: aws.sdk.kotlin.services.cleanroomsml.model.WorkerComputeType = aws.sdk.kotlin.services.cleanroomsml.model.WorkerComputeType.fromValue("CR.1X")
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cleanroomsml.model.WorkerComputeConfiguration) : this() {
this.number = x.number
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cleanroomsml.model.WorkerComputeConfiguration = WorkerComputeConfiguration(this)
internal fun correctErrors(): Builder {
return this
}
}
}