commonMain.aws.sdk.kotlin.services.snowdevicemanagement.model.CpuOptions.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of snowdevicemanagement Show documentation
Show all versions of snowdevicemanagement Show documentation
The AWS Kotlin client for Snow Device Management
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.snowdevicemanagement.model
/**
* The options for how a device's CPU is configured.
*/
public class CpuOptions private constructor(builder: Builder) {
/**
* The number of cores that the CPU can use.
*/
public val coreCount: kotlin.Int? = builder.coreCount
/**
* The number of threads per core in the CPU.
*/
public val threadsPerCore: kotlin.Int? = builder.threadsPerCore
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.snowdevicemanagement.model.CpuOptions = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CpuOptions(")
append("coreCount=$coreCount,")
append("threadsPerCore=$threadsPerCore")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = coreCount ?: 0
result = 31 * result + (threadsPerCore ?: 0)
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 CpuOptions
if (coreCount != other.coreCount) return false
if (threadsPerCore != other.threadsPerCore) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.snowdevicemanagement.model.CpuOptions = Builder(this).apply(block).build()
public class Builder {
/**
* The number of cores that the CPU can use.
*/
public var coreCount: kotlin.Int? = null
/**
* The number of threads per core in the CPU.
*/
public var threadsPerCore: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.snowdevicemanagement.model.CpuOptions) : this() {
this.coreCount = x.coreCount
this.threadsPerCore = x.threadsPerCore
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.snowdevicemanagement.model.CpuOptions = CpuOptions(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy