
commonMain.aws.sdk.kotlin.services.eks.model.AssociateEncryptionConfigRequest.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 AssociateEncryptionConfigRequest private constructor(builder: Builder) {
/**
* A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
*/
public val clientRequestToken: kotlin.String? = builder.clientRequestToken
/**
* The name of your cluster.
*/
public val clusterName: kotlin.String? = builder.clusterName
/**
* The configuration you are using for encryption.
*/
public val encryptionConfig: List? = builder.encryptionConfig
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.eks.model.AssociateEncryptionConfigRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AssociateEncryptionConfigRequest(")
append("clientRequestToken=$clientRequestToken,")
append("clusterName=$clusterName,")
append("encryptionConfig=$encryptionConfig")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientRequestToken?.hashCode() ?: 0
result = 31 * result + (clusterName?.hashCode() ?: 0)
result = 31 * result + (encryptionConfig?.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 AssociateEncryptionConfigRequest
if (clientRequestToken != other.clientRequestToken) return false
if (clusterName != other.clusterName) return false
if (encryptionConfig != other.encryptionConfig) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.eks.model.AssociateEncryptionConfigRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
*/
public var clientRequestToken: kotlin.String? = null
/**
* The name of your cluster.
*/
public var clusterName: kotlin.String? = null
/**
* The configuration you are using for encryption.
*/
public var encryptionConfig: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.eks.model.AssociateEncryptionConfigRequest) : this() {
this.clientRequestToken = x.clientRequestToken
this.clusterName = x.clusterName
this.encryptionConfig = x.encryptionConfig
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.eks.model.AssociateEncryptionConfigRequest = AssociateEncryptionConfigRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy