commonMain.aws.sdk.kotlin.services.bedrockruntime.model.PerformanceConfiguration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bedrockruntime-jvm Show documentation
Show all versions of bedrockruntime-jvm Show documentation
The AWS Kotlin client for Bedrock Runtime
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.bedrockruntime.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Performance settings for a model.
*/
public class PerformanceConfiguration private constructor(builder: Builder) {
/**
* To use a latency-optimized version of the model, set to `optimized`.
*/
public val latency: aws.sdk.kotlin.services.bedrockruntime.model.PerformanceConfigLatency = builder.latency
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.bedrockruntime.model.PerformanceConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PerformanceConfiguration(")
append("latency=$latency")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = latency.hashCode()
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 PerformanceConfiguration
if (latency != other.latency) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.bedrockruntime.model.PerformanceConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* To use a latency-optimized version of the model, set to `optimized`.
*/
public var latency: aws.sdk.kotlin.services.bedrockruntime.model.PerformanceConfigLatency = aws.sdk.kotlin.services.bedrockruntime.model.PerformanceConfigLatency.fromValue("standard")
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.bedrockruntime.model.PerformanceConfiguration) : this() {
this.latency = x.latency
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.bedrockruntime.model.PerformanceConfiguration = PerformanceConfiguration(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy