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

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

/**
 * Information about an add-on.
 */
public class AddonInfo private constructor(builder: Builder) {
    /**
     * The name of the add-on.
     */
    public val addonName: kotlin.String? = builder.addonName
    /**
     * An object representing information about available add-on versions and compatible Kubernetes versions.
     */
    public val addonVersions: List? = builder.addonVersions
    /**
     * Information about the add-on from the Amazon Web Services Marketplace.
     */
    public val marketplaceInformation: aws.sdk.kotlin.services.eks.model.MarketplaceInformation? = builder.marketplaceInformation
    /**
     * The owner of the add-on.
     */
    public val owner: kotlin.String? = builder.owner
    /**
     * The publisher of the add-on.
     */
    public val publisher: kotlin.String? = builder.publisher
    /**
     * The type of the add-on.
     */
    public val type: kotlin.String? = builder.type

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

    override fun toString(): kotlin.String = buildString {
        append("AddonInfo(")
        append("addonName=$addonName,")
        append("addonVersions=$addonVersions,")
        append("marketplaceInformation=$marketplaceInformation,")
        append("owner=$owner,")
        append("publisher=$publisher,")
        append("type=$type")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = addonName?.hashCode() ?: 0
        result = 31 * result + (addonVersions?.hashCode() ?: 0)
        result = 31 * result + (marketplaceInformation?.hashCode() ?: 0)
        result = 31 * result + (owner?.hashCode() ?: 0)
        result = 31 * result + (publisher?.hashCode() ?: 0)
        result = 31 * result + (type?.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 AddonInfo

        if (addonName != other.addonName) return false
        if (addonVersions != other.addonVersions) return false
        if (marketplaceInformation != other.marketplaceInformation) return false
        if (owner != other.owner) return false
        if (publisher != other.publisher) return false
        if (type != other.type) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The name of the add-on.
         */
        public var addonName: kotlin.String? = null
        /**
         * An object representing information about available add-on versions and compatible Kubernetes versions.
         */
        public var addonVersions: List? = null
        /**
         * Information about the add-on from the Amazon Web Services Marketplace.
         */
        public var marketplaceInformation: aws.sdk.kotlin.services.eks.model.MarketplaceInformation? = null
        /**
         * The owner of the add-on.
         */
        public var owner: kotlin.String? = null
        /**
         * The publisher of the add-on.
         */
        public var publisher: kotlin.String? = null
        /**
         * The type of the add-on.
         */
        public var type: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.eks.model.AddonInfo) : this() {
            this.addonName = x.addonName
            this.addonVersions = x.addonVersions
            this.marketplaceInformation = x.marketplaceInformation
            this.owner = x.owner
            this.publisher = x.publisher
            this.type = x.type
        }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy