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

commonMain.aws.sdk.kotlin.services.eks.model.InsightSummary.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
import aws.smithy.kotlin.runtime.time.Instant

/**
 * The summarized description of the insight.
 */
public class InsightSummary private constructor(builder: Builder) {
    /**
     * The category of the insight.
     */
    public val category: aws.sdk.kotlin.services.eks.model.Category? = builder.category
    /**
     * The description of the insight which includes alert criteria, remediation recommendation, and additional resources (contains Markdown).
     */
    public val description: kotlin.String? = builder.description
    /**
     * The ID of the insight.
     */
    public val id: kotlin.String? = builder.id
    /**
     * An object containing more detail on the status of the insight.
     */
    public val insightStatus: aws.sdk.kotlin.services.eks.model.InsightStatus? = builder.insightStatus
    /**
     * The Kubernetes minor version associated with an insight if applicable.
     */
    public val kubernetesVersion: kotlin.String? = builder.kubernetesVersion
    /**
     * The time Amazon EKS last successfully completed a refresh of this insight check on the cluster.
     */
    public val lastRefreshTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastRefreshTime
    /**
     * The time the status of the insight last changed.
     */
    public val lastTransitionTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastTransitionTime
    /**
     * The name of the insight.
     */
    public val name: kotlin.String? = builder.name

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

    override fun toString(): kotlin.String = buildString {
        append("InsightSummary(")
        append("category=$category,")
        append("description=$description,")
        append("id=$id,")
        append("insightStatus=$insightStatus,")
        append("kubernetesVersion=$kubernetesVersion,")
        append("lastRefreshTime=$lastRefreshTime,")
        append("lastTransitionTime=$lastTransitionTime,")
        append("name=$name")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = category?.hashCode() ?: 0
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (id?.hashCode() ?: 0)
        result = 31 * result + (insightStatus?.hashCode() ?: 0)
        result = 31 * result + (kubernetesVersion?.hashCode() ?: 0)
        result = 31 * result + (lastRefreshTime?.hashCode() ?: 0)
        result = 31 * result + (lastTransitionTime?.hashCode() ?: 0)
        result = 31 * result + (name?.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 InsightSummary

        if (category != other.category) return false
        if (description != other.description) return false
        if (id != other.id) return false
        if (insightStatus != other.insightStatus) return false
        if (kubernetesVersion != other.kubernetesVersion) return false
        if (lastRefreshTime != other.lastRefreshTime) return false
        if (lastTransitionTime != other.lastTransitionTime) return false
        if (name != other.name) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The category of the insight.
         */
        public var category: aws.sdk.kotlin.services.eks.model.Category? = null
        /**
         * The description of the insight which includes alert criteria, remediation recommendation, and additional resources (contains Markdown).
         */
        public var description: kotlin.String? = null
        /**
         * The ID of the insight.
         */
        public var id: kotlin.String? = null
        /**
         * An object containing more detail on the status of the insight.
         */
        public var insightStatus: aws.sdk.kotlin.services.eks.model.InsightStatus? = null
        /**
         * The Kubernetes minor version associated with an insight if applicable.
         */
        public var kubernetesVersion: kotlin.String? = null
        /**
         * The time Amazon EKS last successfully completed a refresh of this insight check on the cluster.
         */
        public var lastRefreshTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The time the status of the insight last changed.
         */
        public var lastTransitionTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The name of the insight.
         */
        public var name: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.eks.model.InsightSummary) : this() {
            this.category = x.category
            this.description = x.description
            this.id = x.id
            this.insightStatus = x.insightStatus
            this.kubernetesVersion = x.kubernetesVersion
            this.lastRefreshTime = x.lastRefreshTime
            this.lastTransitionTime = x.lastTransitionTime
            this.name = x.name
        }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy