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

commonMain.aws.sdk.kotlin.services.applicationinsights.model.DescribeComponentConfigurationResponse.kt Maven / Gradle / Ivy

There is a newer version: 1.3.78
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.applicationinsights.model

import aws.smithy.kotlin.runtime.SdkDsl

public class DescribeComponentConfigurationResponse private constructor(builder: Builder) {
    /**
     * The configuration settings of the component. The value is the escaped JSON of the configuration.
     */
    public val componentConfiguration: kotlin.String? = builder.componentConfiguration
    /**
     * Indicates whether the application component is monitored.
     */
    public val monitor: kotlin.Boolean? = builder.monitor
    /**
     * The tier of the application component. Supported tiers include `DOT_NET_CORE`, `DOT_NET_WORKER`, `DOT_NET_WEB`, `SQL_SERVER`, and `DEFAULT`
     */
    public val tier: aws.sdk.kotlin.services.applicationinsights.model.Tier? = builder.tier

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeComponentConfigurationResponse(")
        append("componentConfiguration=$componentConfiguration,")
        append("monitor=$monitor,")
        append("tier=$tier")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = componentConfiguration?.hashCode() ?: 0
        result = 31 * result + (monitor?.hashCode() ?: 0)
        result = 31 * result + (tier?.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 DescribeComponentConfigurationResponse

        if (componentConfiguration != other.componentConfiguration) return false
        if (monitor != other.monitor) return false
        if (tier != other.tier) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The configuration settings of the component. The value is the escaped JSON of the configuration.
         */
        public var componentConfiguration: kotlin.String? = null
        /**
         * Indicates whether the application component is monitored.
         */
        public var monitor: kotlin.Boolean? = null
        /**
         * The tier of the application component. Supported tiers include `DOT_NET_CORE`, `DOT_NET_WORKER`, `DOT_NET_WEB`, `SQL_SERVER`, and `DEFAULT`
         */
        public var tier: aws.sdk.kotlin.services.applicationinsights.model.Tier? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.applicationinsights.model.DescribeComponentConfigurationResponse) : this() {
            this.componentConfiguration = x.componentConfiguration
            this.monitor = x.monitor
            this.tier = x.tier
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy