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

commonMain.aws.sdk.kotlin.services.applicationinsights.model.DescribeComponentConfigurationRecommendationRequest.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 DescribeComponentConfigurationRecommendationRequest private constructor(builder: Builder) {
    /**
     * The name of the component.
     */
    public val componentName: kotlin.String? = builder.componentName
    /**
     * The recommended configuration type.
     */
    public val recommendationType: aws.sdk.kotlin.services.applicationinsights.model.RecommendationType? = builder.recommendationType
    /**
     * The name of the resource group.
     */
    public val resourceGroupName: kotlin.String? = builder.resourceGroupName
    /**
     * The tier of the application component.
     */
    public val tier: aws.sdk.kotlin.services.applicationinsights.model.Tier? = builder.tier
    /**
     * The name of the workload.
     */
    public val workloadName: kotlin.String? = builder.workloadName

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeComponentConfigurationRecommendationRequest(")
        append("componentName=$componentName,")
        append("recommendationType=$recommendationType,")
        append("resourceGroupName=$resourceGroupName,")
        append("tier=$tier,")
        append("workloadName=$workloadName")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = componentName?.hashCode() ?: 0
        result = 31 * result + (recommendationType?.hashCode() ?: 0)
        result = 31 * result + (resourceGroupName?.hashCode() ?: 0)
        result = 31 * result + (tier?.hashCode() ?: 0)
        result = 31 * result + (workloadName?.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 DescribeComponentConfigurationRecommendationRequest

        if (componentName != other.componentName) return false
        if (recommendationType != other.recommendationType) return false
        if (resourceGroupName != other.resourceGroupName) return false
        if (tier != other.tier) return false
        if (workloadName != other.workloadName) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The name of the component.
         */
        public var componentName: kotlin.String? = null
        /**
         * The recommended configuration type.
         */
        public var recommendationType: aws.sdk.kotlin.services.applicationinsights.model.RecommendationType? = null
        /**
         * The name of the resource group.
         */
        public var resourceGroupName: kotlin.String? = null
        /**
         * The tier of the application component.
         */
        public var tier: aws.sdk.kotlin.services.applicationinsights.model.Tier? = null
        /**
         * The name of the workload.
         */
        public var workloadName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.applicationinsights.model.DescribeComponentConfigurationRecommendationRequest) : this() {
            this.componentName = x.componentName
            this.recommendationType = x.recommendationType
            this.resourceGroupName = x.resourceGroupName
            this.tier = x.tier
            this.workloadName = x.workloadName
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy