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

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

/**
 * Compatibility information.
 */
public class Compatibility private constructor(builder: Builder) {
    /**
     * The supported Kubernetes version of the cluster.
     */
    public val clusterVersion: kotlin.String? = builder.clusterVersion
    /**
     * The supported default version.
     */
    public val defaultVersion: kotlin.Boolean = builder.defaultVersion
    /**
     * The supported compute platform.
     */
    public val platformVersions: List? = builder.platformVersions

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

    override fun toString(): kotlin.String = buildString {
        append("Compatibility(")
        append("clusterVersion=$clusterVersion,")
        append("defaultVersion=$defaultVersion,")
        append("platformVersions=$platformVersions")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = clusterVersion?.hashCode() ?: 0
        result = 31 * result + (defaultVersion.hashCode())
        result = 31 * result + (platformVersions?.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 Compatibility

        if (clusterVersion != other.clusterVersion) return false
        if (defaultVersion != other.defaultVersion) return false
        if (platformVersions != other.platformVersions) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The supported Kubernetes version of the cluster.
         */
        public var clusterVersion: kotlin.String? = null
        /**
         * The supported default version.
         */
        public var defaultVersion: kotlin.Boolean = false
        /**
         * The supported compute platform.
         */
        public var platformVersions: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.eks.model.Compatibility) : this() {
            this.clusterVersion = x.clusterVersion
            this.defaultVersion = x.defaultVersion
            this.platformVersions = x.platformVersions
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy