
commonMain.aws.sdk.kotlin.services.eks.model.UpdateParam.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
/**
* An object representing the details of an update request.
*/
public class UpdateParam private constructor(builder: Builder) {
/**
* The keys associated with an update request.
*/
public val type: aws.sdk.kotlin.services.eks.model.UpdateParamType? = builder.type
/**
* The value of the keys submitted as part of an update request.
*/
public val value: kotlin.String? = builder.value
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.eks.model.UpdateParam = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateParam(")
append("type=$type,")
append("value=$value")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = type?.hashCode() ?: 0
result = 31 * result + (value?.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 UpdateParam
if (type != other.type) return false
if (value != other.value) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.eks.model.UpdateParam = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The keys associated with an update request.
*/
public var type: aws.sdk.kotlin.services.eks.model.UpdateParamType? = null
/**
* The value of the keys submitted as part of an update request.
*/
public var value: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.eks.model.UpdateParam) : this() {
this.type = x.type
this.value = x.value
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.eks.model.UpdateParam = UpdateParam(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy