
commonMain.aws.sdk.kotlin.services.eks.model.Update.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
import aws.smithy.kotlin.runtime.time.Instant
/**
* An object representing an asynchronous update.
*/
public class Update private constructor(builder: Builder) {
/**
* The Unix epoch timestamp at object creation.
*/
public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
/**
* Any errors associated with a `Failed` update.
*/
public val errors: List? = builder.errors
/**
* A UUID that is used to track the update.
*/
public val id: kotlin.String? = builder.id
/**
* A key-value map that contains the parameters associated with the update.
*/
public val params: List? = builder.params
/**
* The current status of the update.
*/
public val status: aws.sdk.kotlin.services.eks.model.UpdateStatus? = builder.status
/**
* The type of the update.
*/
public val type: aws.sdk.kotlin.services.eks.model.UpdateType? = builder.type
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.eks.model.Update = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Update(")
append("createdAt=$createdAt,")
append("errors=$errors,")
append("id=$id,")
append("params=$params,")
append("status=$status,")
append("type=$type")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = createdAt?.hashCode() ?: 0
result = 31 * result + (errors?.hashCode() ?: 0)
result = 31 * result + (id?.hashCode() ?: 0)
result = 31 * result + (params?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (type?.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 Update
if (createdAt != other.createdAt) return false
if (errors != other.errors) return false
if (id != other.id) return false
if (params != other.params) return false
if (status != other.status) return false
if (type != other.type) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.eks.model.Update = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Unix epoch timestamp at object creation.
*/
public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* Any errors associated with a `Failed` update.
*/
public var errors: List? = null
/**
* A UUID that is used to track the update.
*/
public var id: kotlin.String? = null
/**
* A key-value map that contains the parameters associated with the update.
*/
public var params: List? = null
/**
* The current status of the update.
*/
public var status: aws.sdk.kotlin.services.eks.model.UpdateStatus? = null
/**
* The type of the update.
*/
public var type: aws.sdk.kotlin.services.eks.model.UpdateType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.eks.model.Update) : this() {
this.createdAt = x.createdAt
this.errors = x.errors
this.id = x.id
this.params = x.params
this.status = x.status
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.eks.model.Update = Update(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy