
commonMain.aws.sdk.kotlin.services.opensearch.model.UpgradeHistory.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.opensearch.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* History of the last 10 upgrades and upgrade eligibility checks for an Amazon OpenSearch Service domain.
*/
public class UpgradeHistory private constructor(builder: Builder) {
/**
* UTC timestamp at which the upgrade API call was made, in the format `yyyy-MM-ddTHH:mm:ssZ`.
*/
public val startTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.startTimestamp
/**
* A list of each step performed as part of a specific upgrade or upgrade eligibility check.
*/
public val stepsList: List? = builder.stepsList
/**
* A string that describes the upgrade.
*/
public val upgradeName: kotlin.String? = builder.upgradeName
/**
* The current status of the upgrade. The status can take one of the following values:
* + In Progress
* + Succeeded
* + Succeeded with Issues
* + Failed
*/
public val upgradeStatus: aws.sdk.kotlin.services.opensearch.model.UpgradeStatus? = builder.upgradeStatus
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.opensearch.model.UpgradeHistory = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpgradeHistory(")
append("startTimestamp=$startTimestamp,")
append("stepsList=$stepsList,")
append("upgradeName=$upgradeName,")
append("upgradeStatus=$upgradeStatus")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = startTimestamp?.hashCode() ?: 0
result = 31 * result + (stepsList?.hashCode() ?: 0)
result = 31 * result + (upgradeName?.hashCode() ?: 0)
result = 31 * result + (upgradeStatus?.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 UpgradeHistory
if (startTimestamp != other.startTimestamp) return false
if (stepsList != other.stepsList) return false
if (upgradeName != other.upgradeName) return false
if (upgradeStatus != other.upgradeStatus) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.opensearch.model.UpgradeHistory = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* UTC timestamp at which the upgrade API call was made, in the format `yyyy-MM-ddTHH:mm:ssZ`.
*/
public var startTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* A list of each step performed as part of a specific upgrade or upgrade eligibility check.
*/
public var stepsList: List? = null
/**
* A string that describes the upgrade.
*/
public var upgradeName: kotlin.String? = null
/**
* The current status of the upgrade. The status can take one of the following values:
* + In Progress
* + Succeeded
* + Succeeded with Issues
* + Failed
*/
public var upgradeStatus: aws.sdk.kotlin.services.opensearch.model.UpgradeStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.opensearch.model.UpgradeHistory) : this() {
this.startTimestamp = x.startTimestamp
this.stepsList = x.stepsList
this.upgradeName = x.upgradeName
this.upgradeStatus = x.upgradeStatus
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.opensearch.model.UpgradeHistory = UpgradeHistory(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy