commonMain.aws.sdk.kotlin.services.elasticsearchservice.model.GetUpgradeStatusResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elasticsearchservice Show documentation
Show all versions of elasticsearchservice Show documentation
Amazon Elasticsearch Service
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.elasticsearchservice.model
/**
* Container for response returned by ` GetUpgradeStatus ` operation.
*/
public class GetUpgradeStatusResponse private constructor(builder: Builder) {
/**
* One of 4 statuses that a step can go through returned as part of the ` GetUpgradeStatusResponse ` object. The status can take one of the following values:
* + In Progress
* + Succeeded
* + Succeeded with Issues
* + Failed
*/
public val stepStatus: aws.sdk.kotlin.services.elasticsearchservice.model.UpgradeStatus? = builder.stepStatus
/**
* A string that describes the update briefly
*/
public val upgradeName: kotlin.String? = builder.upgradeName
/**
* Represents one of 3 steps that an Upgrade or Upgrade Eligibility Check does through:
* + PreUpgradeCheck
* + Snapshot
* + Upgrade
*/
public val upgradeStep: aws.sdk.kotlin.services.elasticsearchservice.model.UpgradeStep? = builder.upgradeStep
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.elasticsearchservice.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.elasticsearchservice.model.GetUpgradeStatusResponse = Builder(this).apply(block).build()
public class Builder {
/**
* One of 4 statuses that a step can go through returned as part of the ` GetUpgradeStatusResponse ` object. The status can take one of the following values:
* + In Progress
* + Succeeded
* + Succeeded with Issues
* + Failed
*/
public var stepStatus: aws.sdk.kotlin.services.elasticsearchservice.model.UpgradeStatus? = null
/**
* A string that describes the update briefly
*/
public var upgradeName: kotlin.String? = null
/**
* Represents one of 3 steps that an Upgrade or Upgrade Eligibility Check does through:
* + PreUpgradeCheck
* + Snapshot
* + Upgrade
*/
public var upgradeStep: aws.sdk.kotlin.services.elasticsearchservice.model.UpgradeStep? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.elasticsearchservice.model.GetUpgradeStatusResponse) : this() {
this.stepStatus = x.stepStatus
this.upgradeName = x.upgradeName
this.upgradeStep = x.upgradeStep
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.elasticsearchservice.model.GetUpgradeStatusResponse = GetUpgradeStatusResponse(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy