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

commonMain.aws.sdk.kotlin.services.applicationinsights.model.DescribeComponentResponse.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 DescribeComponentResponse private constructor(builder: Builder) {
    /**
     * Describes a standalone resource or similarly grouped resources that the application is made up of.
     */
    public val applicationComponent: aws.sdk.kotlin.services.applicationinsights.model.ApplicationComponent? = builder.applicationComponent
    /**
     * The list of resource ARNs that belong to the component.
     */
    public val resourceList: List? = builder.resourceList

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeComponentResponse(")
        append("applicationComponent=$applicationComponent,")
        append("resourceList=$resourceList")
        append(")")
    }

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

        if (applicationComponent != other.applicationComponent) return false
        if (resourceList != other.resourceList) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Describes a standalone resource or similarly grouped resources that the application is made up of.
         */
        public var applicationComponent: aws.sdk.kotlin.services.applicationinsights.model.ApplicationComponent? = null
        /**
         * The list of resource ARNs that belong to the component.
         */
        public var resourceList: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.applicationinsights.model.DescribeComponentResponse) : this() {
            this.applicationComponent = x.applicationComponent
            this.resourceList = x.resourceList
        }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy