commonMain.aws.sdk.kotlin.services.elasticinference.model.KeyValuePair.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elasticinference-jvm Show documentation
Show all versions of elasticinference-jvm Show documentation
The AWS Kotlin client for Elastic Inference
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.elasticinference.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* A throughput entry for an Elastic Inference Accelerator type.
*/
public class KeyValuePair private constructor(builder: Builder) {
/**
* The throughput value of the Elastic Inference Accelerator type. It can assume the following values: TFLOPS16bit: the throughput expressed in 16bit TeraFLOPS. TFLOPS32bit: the throughput expressed in 32bit TeraFLOPS.
*/
public val key: kotlin.String? = builder.key
/**
* The throughput value of the Elastic Inference Accelerator type.
*/
public val value: kotlin.Int = builder.value
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.elasticinference.model.KeyValuePair = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("KeyValuePair(")
append("key=$key,")
append("value=$value")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = key?.hashCode() ?: 0
result = 31 * result + (value)
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 KeyValuePair
if (key != other.key) return false
if (value != other.value) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.elasticinference.model.KeyValuePair = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The throughput value of the Elastic Inference Accelerator type. It can assume the following values: TFLOPS16bit: the throughput expressed in 16bit TeraFLOPS. TFLOPS32bit: the throughput expressed in 32bit TeraFLOPS.
*/
public var key: kotlin.String? = null
/**
* The throughput value of the Elastic Inference Accelerator type.
*/
public var value: kotlin.Int = 0
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.elasticinference.model.KeyValuePair) : this() {
this.key = x.key
this.value = x.value
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.elasticinference.model.KeyValuePair = KeyValuePair(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy