
commonMain.aws.sdk.kotlin.services.eks.model.UpdateAccessConfigRequest.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 access configuration information for the cluster.
*/
public class UpdateAccessConfigRequest private constructor(builder: Builder) {
/**
* The desired authentication mode for the cluster.
*/
public val authenticationMode: aws.sdk.kotlin.services.eks.model.AuthenticationMode? = builder.authenticationMode
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.eks.model.UpdateAccessConfigRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateAccessConfigRequest(")
append("authenticationMode=$authenticationMode")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = authenticationMode?.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 UpdateAccessConfigRequest
if (authenticationMode != other.authenticationMode) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.eks.model.UpdateAccessConfigRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The desired authentication mode for the cluster.
*/
public var authenticationMode: aws.sdk.kotlin.services.eks.model.AuthenticationMode? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.eks.model.UpdateAccessConfigRequest) : this() {
this.authenticationMode = x.authenticationMode
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.eks.model.UpdateAccessConfigRequest = UpdateAccessConfigRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy