commonMain.aws.sdk.kotlin.services.elasticinference.model.DescribeAcceleratorOfferingsRequest.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
public class DescribeAcceleratorOfferingsRequest private constructor(builder: Builder) {
/**
* The list of accelerator types to describe.
*/
public val acceleratorTypes: List? = builder.acceleratorTypes
/**
* The location type that you want to describe accelerator type offerings for. It can assume the following values: region: will return the accelerator type offering at the regional level. availability-zone: will return the accelerator type offering at the availability zone level. availability-zone-id: will return the accelerator type offering at the availability zone level returning the availability zone id.
*/
public val locationType: aws.sdk.kotlin.services.elasticinference.model.LocationType? = builder.locationType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.elasticinference.model.DescribeAcceleratorOfferingsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeAcceleratorOfferingsRequest(")
append("acceleratorTypes=$acceleratorTypes,")
append("locationType=$locationType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = acceleratorTypes?.hashCode() ?: 0
result = 31 * result + (locationType?.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 DescribeAcceleratorOfferingsRequest
if (acceleratorTypes != other.acceleratorTypes) return false
if (locationType != other.locationType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.elasticinference.model.DescribeAcceleratorOfferingsRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The list of accelerator types to describe.
*/
public var acceleratorTypes: List? = null
/**
* The location type that you want to describe accelerator type offerings for. It can assume the following values: region: will return the accelerator type offering at the regional level. availability-zone: will return the accelerator type offering at the availability zone level. availability-zone-id: will return the accelerator type offering at the availability zone level returning the availability zone id.
*/
public var locationType: aws.sdk.kotlin.services.elasticinference.model.LocationType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.elasticinference.model.DescribeAcceleratorOfferingsRequest) : this() {
this.acceleratorTypes = x.acceleratorTypes
this.locationType = x.locationType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.elasticinference.model.DescribeAcceleratorOfferingsRequest = DescribeAcceleratorOfferingsRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy