
commonMain.aws.sdk.kotlin.services.eks.model.DescribeUpdateRequest.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
/**
* Describes an update request.
*/
public class DescribeUpdateRequest 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). This parameter is required if the update is an add-on update.
*/
public val addonName: kotlin.String? = builder.addonName
/**
* The name of the Amazon EKS cluster associated with the update.
*/
public val name: kotlin.String? = builder.name
/**
* The name of the Amazon EKS node group associated with the update. This parameter is required if the update is a node group update.
*/
public val nodegroupName: kotlin.String? = builder.nodegroupName
/**
* The ID of the update to describe.
*/
public val updateId: kotlin.String? = builder.updateId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.eks.model.DescribeUpdateRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeUpdateRequest(")
append("addonName=$addonName,")
append("name=$name,")
append("nodegroupName=$nodegroupName,")
append("updateId=$updateId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = addonName?.hashCode() ?: 0
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (nodegroupName?.hashCode() ?: 0)
result = 31 * result + (updateId?.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 DescribeUpdateRequest
if (addonName != other.addonName) return false
if (name != other.name) return false
if (nodegroupName != other.nodegroupName) return false
if (updateId != other.updateId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.eks.model.DescribeUpdateRequest = 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). This parameter is required if the update is an add-on update.
*/
public var addonName: kotlin.String? = null
/**
* The name of the Amazon EKS cluster associated with the update.
*/
public var name: kotlin.String? = null
/**
* The name of the Amazon EKS node group associated with the update. This parameter is required if the update is a node group update.
*/
public var nodegroupName: kotlin.String? = null
/**
* The ID of the update to describe.
*/
public var updateId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.eks.model.DescribeUpdateRequest) : this() {
this.addonName = x.addonName
this.name = x.name
this.nodegroupName = x.nodegroupName
this.updateId = x.updateId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.eks.model.DescribeUpdateRequest = DescribeUpdateRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy