
commonMain.aws.sdk.kotlin.services.eks.model.UpdateTaintsPayload.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
/**
* An object representing the details of an update to a taints payload. For more information, see [Node taints on managed node groups](https://docs.aws.amazon.com/eks/latest/userguide/node-taints-managed-node-groups.html) in the *Amazon EKS User Guide*.
*/
public class UpdateTaintsPayload private constructor(builder: Builder) {
/**
* Kubernetes taints to be added or updated.
*/
public val addOrUpdateTaints: List? = builder.addOrUpdateTaints
/**
* Kubernetes taints to remove.
*/
public val removeTaints: List? = builder.removeTaints
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.eks.model.UpdateTaintsPayload = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateTaintsPayload(")
append("addOrUpdateTaints=$addOrUpdateTaints,")
append("removeTaints=$removeTaints")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = addOrUpdateTaints?.hashCode() ?: 0
result = 31 * result + (removeTaints?.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 UpdateTaintsPayload
if (addOrUpdateTaints != other.addOrUpdateTaints) return false
if (removeTaints != other.removeTaints) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.eks.model.UpdateTaintsPayload = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Kubernetes taints to be added or updated.
*/
public var addOrUpdateTaints: List? = null
/**
* Kubernetes taints to remove.
*/
public var removeTaints: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.eks.model.UpdateTaintsPayload) : this() {
this.addOrUpdateTaints = x.addOrUpdateTaints
this.removeTaints = x.removeTaints
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.eks.model.UpdateTaintsPayload = UpdateTaintsPayload(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy