
commonMain.aws.sdk.kotlin.services.eks.model.DescribeAddonRequest.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 DescribeAddonRequest private constructor(builder: Builder) {
/**
* The name of the add-on. The name must match one of the names returned by `ListAddons`[](https://docs.aws.amazon.com/eks/latest/APIReference/API_ListAddons.html).
*/
public val addonName: kotlin.String? = builder.addonName
/**
* The name of your cluster.
*/
public val clusterName: kotlin.String? = builder.clusterName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.eks.model.DescribeAddonRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeAddonRequest(")
append("addonName=$addonName,")
append("clusterName=$clusterName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = addonName?.hashCode() ?: 0
result = 31 * result + (clusterName?.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 DescribeAddonRequest
if (addonName != other.addonName) return false
if (clusterName != other.clusterName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.eks.model.DescribeAddonRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the add-on. The name must match one of the names returned by `ListAddons`[](https://docs.aws.amazon.com/eks/latest/APIReference/API_ListAddons.html).
*/
public var addonName: kotlin.String? = null
/**
* The name of your cluster.
*/
public var clusterName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.eks.model.DescribeAddonRequest) : this() {
this.addonName = x.addonName
this.clusterName = x.clusterName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.eks.model.DescribeAddonRequest = DescribeAddonRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy