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

commonMain.aws.sdk.kotlin.services.eks.model.DeprecationDetail.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

/**
 * The summary information about deprecated resource usage for an insight check in the `UPGRADE_READINESS` category.
 */
public class DeprecationDetail private constructor(builder: Builder) {
    /**
     * Details about Kubernetes clients using the deprecated resources.
     */
    public val clientStats: List? = builder.clientStats
    /**
     * The newer version of the resource to migrate to if applicable.
     */
    public val replacedWith: kotlin.String? = builder.replacedWith
    /**
     * The version of the software where the newer resource version became available to migrate to if applicable.
     */
    public val startServingReplacementVersion: kotlin.String? = builder.startServingReplacementVersion
    /**
     * The version of the software where the deprecated resource version will stop being served.
     */
    public val stopServingVersion: kotlin.String? = builder.stopServingVersion
    /**
     * The deprecated version of the resource.
     */
    public val usage: kotlin.String? = builder.usage

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

    override fun toString(): kotlin.String = buildString {
        append("DeprecationDetail(")
        append("clientStats=$clientStats,")
        append("replacedWith=$replacedWith,")
        append("startServingReplacementVersion=$startServingReplacementVersion,")
        append("stopServingVersion=$stopServingVersion,")
        append("usage=$usage")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = clientStats?.hashCode() ?: 0
        result = 31 * result + (replacedWith?.hashCode() ?: 0)
        result = 31 * result + (startServingReplacementVersion?.hashCode() ?: 0)
        result = 31 * result + (stopServingVersion?.hashCode() ?: 0)
        result = 31 * result + (usage?.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 DeprecationDetail

        if (clientStats != other.clientStats) return false
        if (replacedWith != other.replacedWith) return false
        if (startServingReplacementVersion != other.startServingReplacementVersion) return false
        if (stopServingVersion != other.stopServingVersion) return false
        if (usage != other.usage) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Details about Kubernetes clients using the deprecated resources.
         */
        public var clientStats: List? = null
        /**
         * The newer version of the resource to migrate to if applicable.
         */
        public var replacedWith: kotlin.String? = null
        /**
         * The version of the software where the newer resource version became available to migrate to if applicable.
         */
        public var startServingReplacementVersion: kotlin.String? = null
        /**
         * The version of the software where the deprecated resource version will stop being served.
         */
        public var stopServingVersion: kotlin.String? = null
        /**
         * The deprecated version of the resource.
         */
        public var usage: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.eks.model.DeprecationDetail) : this() {
            this.clientStats = x.clientStats
            this.replacedWith = x.replacedWith
            this.startServingReplacementVersion = x.startServingReplacementVersion
            this.stopServingVersion = x.stopServingVersion
            this.usage = x.usage
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy