
commonMain.aws.sdk.kotlin.services.eks.model.NodegroupUpdateConfig.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.eks.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The node group update configuration.
*/
public class NodegroupUpdateConfig private constructor(builder: Builder) {
/**
* The maximum number of nodes unavailable at once during a version update. Nodes are updated in parallel. This value or `maxUnavailablePercentage` is required to have a value.The maximum number is 100.
*/
public val maxUnavailable: kotlin.Int? = builder.maxUnavailable
/**
* The maximum percentage of nodes unavailable during a version update. This percentage of nodes are updated in parallel, up to 100 nodes at once. This value or `maxUnavailable` is required to have a value.
*/
public val maxUnavailablePercentage: kotlin.Int? = builder.maxUnavailablePercentage
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.eks.model.NodegroupUpdateConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("NodegroupUpdateConfig(")
append("maxUnavailable=$maxUnavailable,")
append("maxUnavailablePercentage=$maxUnavailablePercentage")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = maxUnavailable ?: 0
result = 31 * result + (maxUnavailablePercentage ?: 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 NodegroupUpdateConfig
if (maxUnavailable != other.maxUnavailable) return false
if (maxUnavailablePercentage != other.maxUnavailablePercentage) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.eks.model.NodegroupUpdateConfig = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The maximum number of nodes unavailable at once during a version update. Nodes are updated in parallel. This value or `maxUnavailablePercentage` is required to have a value.The maximum number is 100.
*/
public var maxUnavailable: kotlin.Int? = null
/**
* The maximum percentage of nodes unavailable during a version update. This percentage of nodes are updated in parallel, up to 100 nodes at once. This value or `maxUnavailable` is required to have a value.
*/
public var maxUnavailablePercentage: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.eks.model.NodegroupUpdateConfig) : this() {
this.maxUnavailable = x.maxUnavailable
this.maxUnavailablePercentage = x.maxUnavailablePercentage
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.eks.model.NodegroupUpdateConfig = NodegroupUpdateConfig(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy