commonMain.aws.sdk.kotlin.services.redshiftserverless.model.PerformanceTarget.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of redshiftserverless-jvm Show documentation
Show all versions of redshiftserverless-jvm Show documentation
The AWS SDK for Kotlin client for Redshift Serverless
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.redshiftserverless.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* An object that represents the price performance target settings for the workgroup.
*/
public class PerformanceTarget private constructor(builder: Builder) {
/**
* The target price performance level for the workgroup. Valid values include 1, 25, 50, 75, and 100. These correspond to the price performance levels LOW_COST, ECONOMICAL, BALANCED, RESOURCEFUL, and HIGH_PERFORMANCE.
*/
public val level: kotlin.Int? = builder.level
/**
* Whether the price performance target is enabled for the workgroup.
*/
public val status: aws.sdk.kotlin.services.redshiftserverless.model.PerformanceTargetStatus? = builder.status
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.redshiftserverless.model.PerformanceTarget = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PerformanceTarget(")
append("level=$level,")
append("status=$status")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = level ?: 0
result = 31 * result + (status?.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 PerformanceTarget
if (level != other.level) return false
if (status != other.status) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.redshiftserverless.model.PerformanceTarget = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The target price performance level for the workgroup. Valid values include 1, 25, 50, 75, and 100. These correspond to the price performance levels LOW_COST, ECONOMICAL, BALANCED, RESOURCEFUL, and HIGH_PERFORMANCE.
*/
public var level: kotlin.Int? = null
/**
* Whether the price performance target is enabled for the workgroup.
*/
public var status: aws.sdk.kotlin.services.redshiftserverless.model.PerformanceTargetStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.redshiftserverless.model.PerformanceTarget) : this() {
this.level = x.level
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.redshiftserverless.model.PerformanceTarget = PerformanceTarget(this)
internal fun correctErrors(): Builder {
return this
}
}
}