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

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

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

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

import aws.smithy.kotlin.runtime.SdkDsl

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

    public companion object {
        public 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")
        append(")")
    }

    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
    }

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

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

        @PublishedApi
        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]
         */
        public 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]
         */
        public fun reactiveInsight(block: aws.sdk.kotlin.services.devopsguru.model.ReactiveInsight.Builder.() -> kotlin.Unit) {
            this.reactiveInsight = aws.sdk.kotlin.services.devopsguru.model.ReactiveInsight.invoke(block)
        }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy