commonMain.aws.sdk.kotlin.services.elasticinference.model.DescribeAcceleratorsResponse.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
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.elasticinference.model
import aws.smithy.kotlin.runtime.SdkDsl
public class DescribeAcceleratorsResponse private constructor(builder: Builder) {
/**
* The details of the Elastic Inference Accelerators.
*/
public val acceleratorSet: List? = builder.acceleratorSet
/**
* A token to specify where to start paginating. This is the NextToken from a previously truncated response.
*/
public val nextToken: kotlin.String? = builder.nextToken
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.elasticinference.model.DescribeAcceleratorsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeAcceleratorsResponse(")
append("acceleratorSet=$acceleratorSet,")
append("nextToken=$nextToken")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = acceleratorSet?.hashCode() ?: 0
result = 31 * result + (nextToken?.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 DescribeAcceleratorsResponse
if (acceleratorSet != other.acceleratorSet) return false
if (nextToken != other.nextToken) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.elasticinference.model.DescribeAcceleratorsResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The details of the Elastic Inference Accelerators.
*/
public var acceleratorSet: List? = null
/**
* A token to specify where to start paginating. This is the NextToken from a previously truncated response.
*/
public var nextToken: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.elasticinference.model.DescribeAcceleratorsResponse) : this() {
this.acceleratorSet = x.acceleratorSet
this.nextToken = x.nextToken
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.elasticinference.model.DescribeAcceleratorsResponse = DescribeAcceleratorsResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy