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

aws.sdk.kotlin.services.devopsguru.model.DescribeInsightResponse.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.devopsguru.model



class DescribeInsightResponse private constructor(builder: Builder) {
    /**
     * A ProactiveInsight object that represents the requested insight.
     */
    val proactiveInsight: aws.sdk.kotlin.services.devopsguru.model.ProactiveInsight? = builder.proactiveInsight
    /**
     * A ReactiveInsight object that represents the requested insight.
     */
    val reactiveInsight: aws.sdk.kotlin.services.devopsguru.model.ReactiveInsight? = builder.reactiveInsight

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeInsightResponse(")
        append("proactiveInsight=$proactiveInsight,")
        append("reactiveInsight=$reactiveInsight)")
    }

    override fun hashCode(): kotlin.Int {
        var result = proactiveInsight?.hashCode() ?: 0
        result = 31 * result + (reactiveInsight?.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 DescribeInsightResponse

        if (proactiveInsight != other.proactiveInsight) return false
        if (reactiveInsight != other.reactiveInsight) return false

        return true
    }

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

    class Builder {
        /**
         * A ProactiveInsight object that represents the requested insight.
         */
        var proactiveInsight: aws.sdk.kotlin.services.devopsguru.model.ProactiveInsight? = null
        /**
         * A ReactiveInsight object that represents the requested insight.
         */
        var reactiveInsight: aws.sdk.kotlin.services.devopsguru.model.ReactiveInsight? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.devopsguru.model.DescribeInsightResponse) : this() {
            this.proactiveInsight = x.proactiveInsight
            this.reactiveInsight = x.reactiveInsight
        }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy