
commonMain.aws.sdk.kotlin.services.eks.model.DescribeAddonResponse.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 DescribeAddonResponse private constructor(builder: Builder) {
/**
* An Amazon EKS add-on. For more information, see [Amazon EKS add-ons](https://docs.aws.amazon.com/eks/latest/userguide/eks-add-ons.html) in the *Amazon EKS User Guide*.
*/
public val addon: aws.sdk.kotlin.services.eks.model.Addon? = builder.addon
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.eks.model.DescribeAddonResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeAddonResponse(")
append("addon=$addon")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = addon?.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 DescribeAddonResponse
if (addon != other.addon) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.eks.model.DescribeAddonResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* An Amazon EKS add-on. For more information, see [Amazon EKS add-ons](https://docs.aws.amazon.com/eks/latest/userguide/eks-add-ons.html) in the *Amazon EKS User Guide*.
*/
public var addon: aws.sdk.kotlin.services.eks.model.Addon? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.eks.model.DescribeAddonResponse) : this() {
this.addon = x.addon
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.eks.model.DescribeAddonResponse = DescribeAddonResponse(this)
/**
* construct an [aws.sdk.kotlin.services.eks.model.Addon] inside the given [block]
*/
public fun addon(block: aws.sdk.kotlin.services.eks.model.Addon.Builder.() -> kotlin.Unit) {
this.addon = aws.sdk.kotlin.services.eks.model.Addon.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy