aws.sdk.kotlin.services.sagemaker.model.ProductionVariantServerlessConfig.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sagemaker.model
/**
* Serverless Inference is in preview release for Amazon SageMaker and is subject to change. We do not recommend using this feature in production environments.
* Specifies the serverless configuration for an endpoint variant.
*/
class ProductionVariantServerlessConfig private constructor(builder: Builder) {
/**
* The maximum number of concurrent invocations your serverless endpoint can process.
*/
val maxConcurrency: kotlin.Int? = builder.maxConcurrency
/**
* The memory size of your serverless endpoint. Valid values are in 1 GB increments: 1024 MB, 2048 MB, 3072 MB, 4096 MB, 5120 MB, or 6144 MB.
*/
val memorySizeInMb: kotlin.Int? = builder.memorySizeInMb
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.sagemaker.model.ProductionVariantServerlessConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ProductionVariantServerlessConfig(")
append("maxConcurrency=$maxConcurrency,")
append("memorySizeInMb=$memorySizeInMb)")
}
override fun hashCode(): kotlin.Int {
var result = maxConcurrency ?: 0
result = 31 * result + (memorySizeInMb ?: 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 ProductionVariantServerlessConfig
if (maxConcurrency != other.maxConcurrency) return false
if (memorySizeInMb != other.memorySizeInMb) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.sagemaker.model.ProductionVariantServerlessConfig = Builder(this).apply(block).build()
class Builder {
/**
* The maximum number of concurrent invocations your serverless endpoint can process.
*/
var maxConcurrency: kotlin.Int? = null
/**
* The memory size of your serverless endpoint. Valid values are in 1 GB increments: 1024 MB, 2048 MB, 3072 MB, 4096 MB, 5120 MB, or 6144 MB.
*/
var memorySizeInMb: kotlin.Int? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.sagemaker.model.ProductionVariantServerlessConfig) : this() {
this.maxConcurrency = x.maxConcurrency
this.memorySizeInMb = x.memorySizeInMb
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.sagemaker.model.ProductionVariantServerlessConfig = ProductionVariantServerlessConfig(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy