commonMain.aws.sdk.kotlin.services.elasticinference.model.MemoryInfo.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
/**
* The memory information of an Elastic Inference Accelerator type.
*/
public class MemoryInfo private constructor(builder: Builder) {
/**
* The size in mebibytes of the Elastic Inference Accelerator type.
*/
public val sizeInMib: kotlin.Int = builder.sizeInMib
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.elasticinference.model.MemoryInfo = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("MemoryInfo(")
append("sizeInMib=$sizeInMib")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = sizeInMib
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 MemoryInfo
if (sizeInMib != other.sizeInMib) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.elasticinference.model.MemoryInfo = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The size in mebibytes of the Elastic Inference Accelerator type.
*/
public var sizeInMib: kotlin.Int = 0
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.elasticinference.model.MemoryInfo) : this() {
this.sizeInMib = x.sizeInMib
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.elasticinference.model.MemoryInfo = MemoryInfo(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy