
commonMain.aws.sdk.kotlin.services.eks.model.CreateAccessEntryResponse.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
public class CreateAccessEntryResponse private constructor(builder: Builder) {
/**
* An access entry allows an IAM principal (user or role) to access your cluster. Access entries can replace the need to maintain the `aws-auth``ConfigMap` for authentication. For more information about access entries, see [Access entries](https://docs.aws.amazon.com/eks/latest/userguide/access-entries.html) in the *Amazon EKS User Guide*.
*/
public val accessEntry: aws.sdk.kotlin.services.eks.model.AccessEntry? = builder.accessEntry
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.eks.model.CreateAccessEntryResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateAccessEntryResponse(")
append("accessEntry=$accessEntry")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = accessEntry?.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 CreateAccessEntryResponse
if (accessEntry != other.accessEntry) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.eks.model.CreateAccessEntryResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* An access entry allows an IAM principal (user or role) to access your cluster. Access entries can replace the need to maintain the `aws-auth``ConfigMap` for authentication. For more information about access entries, see [Access entries](https://docs.aws.amazon.com/eks/latest/userguide/access-entries.html) in the *Amazon EKS User Guide*.
*/
public var accessEntry: aws.sdk.kotlin.services.eks.model.AccessEntry? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.eks.model.CreateAccessEntryResponse) : this() {
this.accessEntry = x.accessEntry
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.eks.model.CreateAccessEntryResponse = CreateAccessEntryResponse(this)
/**
* construct an [aws.sdk.kotlin.services.eks.model.AccessEntry] inside the given [block]
*/
public fun accessEntry(block: aws.sdk.kotlin.services.eks.model.AccessEntry.Builder.() -> kotlin.Unit) {
this.accessEntry = aws.sdk.kotlin.services.eks.model.AccessEntry.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy