
commonMain.aws.sdk.kotlin.services.eks.model.DescribeAddonConfigurationResponse.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 DescribeAddonConfigurationResponse private constructor(builder: Builder) {
/**
* The name of the add-on.
*/
public val addonName: kotlin.String? = builder.addonName
/**
* The version of the add-on. The version must match one of the versions returned by `DescribeAddonVersions`[](https://docs.aws.amazon.com/eks/latest/APIReference/API_DescribeAddonVersions.html).
*/
public val addonVersion: kotlin.String? = builder.addonVersion
/**
* A JSON schema that's used to validate the configuration values you provide when an add-on is created or updated.
*/
public val configurationSchema: kotlin.String? = builder.configurationSchema
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.eks.model.DescribeAddonConfigurationResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeAddonConfigurationResponse(")
append("addonName=$addonName,")
append("addonVersion=$addonVersion,")
append("configurationSchema=$configurationSchema")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = addonName?.hashCode() ?: 0
result = 31 * result + (addonVersion?.hashCode() ?: 0)
result = 31 * result + (configurationSchema?.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 DescribeAddonConfigurationResponse
if (addonName != other.addonName) return false
if (addonVersion != other.addonVersion) return false
if (configurationSchema != other.configurationSchema) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.eks.model.DescribeAddonConfigurationResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the add-on.
*/
public var addonName: kotlin.String? = null
/**
* The version of the add-on. The version must match one of the versions returned by `DescribeAddonVersions`[](https://docs.aws.amazon.com/eks/latest/APIReference/API_DescribeAddonVersions.html).
*/
public var addonVersion: kotlin.String? = null
/**
* A JSON schema that's used to validate the configuration values you provide when an add-on is created or updated.
*/
public var configurationSchema: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.eks.model.DescribeAddonConfigurationResponse) : this() {
this.addonName = x.addonName
this.addonVersion = x.addonVersion
this.configurationSchema = x.configurationSchema
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.eks.model.DescribeAddonConfigurationResponse = DescribeAddonConfigurationResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy