
commonMain.aws.sdk.kotlin.services.pipes.model.EcsInferenceAcceleratorOverride.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.pipes.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Details on an Elastic Inference accelerator task override. This parameter is used to override the Elastic Inference accelerator specified in the task definition. For more information, see [Working with Amazon Elastic Inference on Amazon ECS](https://docs.aws.amazon.com/AmazonECS/latest/userguide/ecs-inference.html) in the *Amazon Elastic Container Service Developer Guide*.
*/
public class EcsInferenceAcceleratorOverride private constructor(builder: Builder) {
/**
* The Elastic Inference accelerator device name to override for the task. This parameter must match a `deviceName` specified in the task definition.
*/
public val deviceName: kotlin.String? = builder.deviceName
/**
* The Elastic Inference accelerator type to use.
*/
public val deviceType: kotlin.String? = builder.deviceType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.pipes.model.EcsInferenceAcceleratorOverride = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("EcsInferenceAcceleratorOverride(")
append("deviceName=$deviceName,")
append("deviceType=$deviceType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = deviceName?.hashCode() ?: 0
result = 31 * result + (deviceType?.hashCode() ?: 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 EcsInferenceAcceleratorOverride
if (deviceName != other.deviceName) return false
if (deviceType != other.deviceType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.pipes.model.EcsInferenceAcceleratorOverride = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Elastic Inference accelerator device name to override for the task. This parameter must match a `deviceName` specified in the task definition.
*/
public var deviceName: kotlin.String? = null
/**
* The Elastic Inference accelerator type to use.
*/
public var deviceType: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.pipes.model.EcsInferenceAcceleratorOverride) : this() {
this.deviceName = x.deviceName
this.deviceType = x.deviceType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.pipes.model.EcsInferenceAcceleratorOverride = EcsInferenceAcceleratorOverride(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy