All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.opensearch.model.UpgradeDomainResponse.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 `UpgradeDomain` operation.
 */
public class UpgradeDomainResponse private constructor(builder: Builder) {
    /**
     * The advanced options configuration for the domain.
     */
    public val advancedOptions: Map? = builder.advancedOptions
    /**
     * Container for information about a configuration change happening on a domain.
     */
    public val changeProgressDetails: aws.sdk.kotlin.services.opensearch.model.ChangeProgressDetails? = builder.changeProgressDetails
    /**
     * The name of the domain that was upgraded.
     */
    public val domainName: kotlin.String? = builder.domainName
    /**
     * When true, indicates that an upgrade eligibility check was performed.
     */
    public val performCheckOnly: kotlin.Boolean? = builder.performCheckOnly
    /**
     * OpenSearch or Elasticsearch version that the domain was upgraded to.
     */
    public val targetVersion: kotlin.String? = builder.targetVersion
    /**
     * The unique identifier of the domain upgrade.
     */
    public val upgradeId: kotlin.String? = builder.upgradeId

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.opensearch.model.UpgradeDomainResponse = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("UpgradeDomainResponse(")
        append("advancedOptions=$advancedOptions,")
        append("changeProgressDetails=$changeProgressDetails,")
        append("domainName=$domainName,")
        append("performCheckOnly=$performCheckOnly,")
        append("targetVersion=$targetVersion,")
        append("upgradeId=$upgradeId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = advancedOptions?.hashCode() ?: 0
        result = 31 * result + (changeProgressDetails?.hashCode() ?: 0)
        result = 31 * result + (domainName?.hashCode() ?: 0)
        result = 31 * result + (performCheckOnly?.hashCode() ?: 0)
        result = 31 * result + (targetVersion?.hashCode() ?: 0)
        result = 31 * result + (upgradeId?.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 UpgradeDomainResponse

        if (advancedOptions != other.advancedOptions) return false
        if (changeProgressDetails != other.changeProgressDetails) return false
        if (domainName != other.domainName) return false
        if (performCheckOnly != other.performCheckOnly) return false
        if (targetVersion != other.targetVersion) return false
        if (upgradeId != other.upgradeId) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.opensearch.model.UpgradeDomainResponse = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The advanced options configuration for the domain.
         */
        public var advancedOptions: Map? = null
        /**
         * Container for information about a configuration change happening on a domain.
         */
        public var changeProgressDetails: aws.sdk.kotlin.services.opensearch.model.ChangeProgressDetails? = null
        /**
         * The name of the domain that was upgraded.
         */
        public var domainName: kotlin.String? = null
        /**
         * When true, indicates that an upgrade eligibility check was performed.
         */
        public var performCheckOnly: kotlin.Boolean? = null
        /**
         * OpenSearch or Elasticsearch version that the domain was upgraded to.
         */
        public var targetVersion: kotlin.String? = null
        /**
         * The unique identifier of the domain upgrade.
         */
        public var upgradeId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.opensearch.model.UpgradeDomainResponse) : this() {
            this.advancedOptions = x.advancedOptions
            this.changeProgressDetails = x.changeProgressDetails
            this.domainName = x.domainName
            this.performCheckOnly = x.performCheckOnly
            this.targetVersion = x.targetVersion
            this.upgradeId = x.upgradeId
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.opensearch.model.UpgradeDomainResponse = UpgradeDomainResponse(this)

        /**
         * construct an [aws.sdk.kotlin.services.opensearch.model.ChangeProgressDetails] inside the given [block]
         */
        public fun changeProgressDetails(block: aws.sdk.kotlin.services.opensearch.model.ChangeProgressDetails.Builder.() -> kotlin.Unit) {
            this.changeProgressDetails = aws.sdk.kotlin.services.opensearch.model.ChangeProgressDetails.invoke(block)
        }

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy