
commonMain.aws.sdk.kotlin.services.eks.model.CreatePodIdentityAssociationResponse.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 CreatePodIdentityAssociationResponse private constructor(builder: Builder) {
/**
* The full description of your new association.
*
* The description includes an ID for the association. Use the ID of the association in further actions to manage the association.
*/
public val association: aws.sdk.kotlin.services.eks.model.PodIdentityAssociation? = builder.association
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.eks.model.CreatePodIdentityAssociationResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreatePodIdentityAssociationResponse(")
append("association=$association")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = association?.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 CreatePodIdentityAssociationResponse
if (association != other.association) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.eks.model.CreatePodIdentityAssociationResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The full description of your new association.
*
* The description includes an ID for the association. Use the ID of the association in further actions to manage the association.
*/
public var association: aws.sdk.kotlin.services.eks.model.PodIdentityAssociation? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.eks.model.CreatePodIdentityAssociationResponse) : this() {
this.association = x.association
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.eks.model.CreatePodIdentityAssociationResponse = CreatePodIdentityAssociationResponse(this)
/**
* construct an [aws.sdk.kotlin.services.eks.model.PodIdentityAssociation] inside the given [block]
*/
public fun association(block: aws.sdk.kotlin.services.eks.model.PodIdentityAssociation.Builder.() -> kotlin.Unit) {
this.association = aws.sdk.kotlin.services.eks.model.PodIdentityAssociation.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy