
commonMain.aws.sdk.kotlin.services.opensearch.model.GetUpgradeStatusResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.opensearch.model
/**
* Container for the response returned by the `GetUpgradeStatus` operation.
*/
public class GetUpgradeStatusResponse private constructor(builder: Builder) {
/**
* The status of the current step that an upgrade is on.
*/
public val stepStatus: aws.sdk.kotlin.services.opensearch.model.UpgradeStatus? = builder.stepStatus
/**
* A string that describes the update.
*/
public val upgradeName: kotlin.String? = builder.upgradeName
/**
* One of three steps that an upgrade or upgrade eligibility check goes through.
*/
public val upgradeStep: aws.sdk.kotlin.services.opensearch.model.UpgradeStep? = builder.upgradeStep
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.opensearch.model.GetUpgradeStatusResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetUpgradeStatusResponse(")
append("stepStatus=$stepStatus,")
append("upgradeName=$upgradeName,")
append("upgradeStep=$upgradeStep")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = stepStatus?.hashCode() ?: 0
result = 31 * result + (upgradeName?.hashCode() ?: 0)
result = 31 * result + (upgradeStep?.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 GetUpgradeStatusResponse
if (stepStatus != other.stepStatus) return false
if (upgradeName != other.upgradeName) return false
if (upgradeStep != other.upgradeStep) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.opensearch.model.GetUpgradeStatusResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The status of the current step that an upgrade is on.
*/
public var stepStatus: aws.sdk.kotlin.services.opensearch.model.UpgradeStatus? = null
/**
* A string that describes the update.
*/
public var upgradeName: kotlin.String? = null
/**
* One of three steps that an upgrade or upgrade eligibility check goes through.
*/
public var upgradeStep: aws.sdk.kotlin.services.opensearch.model.UpgradeStep? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.opensearch.model.GetUpgradeStatusResponse) : this() {
this.stepStatus = x.stepStatus
this.upgradeName = x.upgradeName
this.upgradeStep = x.upgradeStep
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.opensearch.model.GetUpgradeStatusResponse = GetUpgradeStatusResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy