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

commonMain.aws.sdk.kotlin.services.autoscaling.model.DescribeAccountLimitsResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.autoscaling.model

import aws.smithy.kotlin.runtime.SdkDsl

public class DescribeAccountLimitsResponse private constructor(builder: Builder) {
    /**
     * The maximum number of groups allowed for your account. The default is 200 groups per Region.
     */
    public val maxNumberOfAutoScalingGroups: kotlin.Int? = builder.maxNumberOfAutoScalingGroups
    /**
     * The maximum number of launch configurations allowed for your account. The default is 200 launch configurations per Region.
     */
    public val maxNumberOfLaunchConfigurations: kotlin.Int? = builder.maxNumberOfLaunchConfigurations
    /**
     * The current number of groups for your account.
     */
    public val numberOfAutoScalingGroups: kotlin.Int? = builder.numberOfAutoScalingGroups
    /**
     * The current number of launch configurations for your account.
     */
    public val numberOfLaunchConfigurations: kotlin.Int? = builder.numberOfLaunchConfigurations

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeAccountLimitsResponse(")
        append("maxNumberOfAutoScalingGroups=$maxNumberOfAutoScalingGroups,")
        append("maxNumberOfLaunchConfigurations=$maxNumberOfLaunchConfigurations,")
        append("numberOfAutoScalingGroups=$numberOfAutoScalingGroups,")
        append("numberOfLaunchConfigurations=$numberOfLaunchConfigurations")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = maxNumberOfAutoScalingGroups ?: 0
        result = 31 * result + (maxNumberOfLaunchConfigurations ?: 0)
        result = 31 * result + (numberOfAutoScalingGroups ?: 0)
        result = 31 * result + (numberOfLaunchConfigurations ?: 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 DescribeAccountLimitsResponse

        if (maxNumberOfAutoScalingGroups != other.maxNumberOfAutoScalingGroups) return false
        if (maxNumberOfLaunchConfigurations != other.maxNumberOfLaunchConfigurations) return false
        if (numberOfAutoScalingGroups != other.numberOfAutoScalingGroups) return false
        if (numberOfLaunchConfigurations != other.numberOfLaunchConfigurations) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The maximum number of groups allowed for your account. The default is 200 groups per Region.
         */
        public var maxNumberOfAutoScalingGroups: kotlin.Int? = null
        /**
         * The maximum number of launch configurations allowed for your account. The default is 200 launch configurations per Region.
         */
        public var maxNumberOfLaunchConfigurations: kotlin.Int? = null
        /**
         * The current number of groups for your account.
         */
        public var numberOfAutoScalingGroups: kotlin.Int? = null
        /**
         * The current number of launch configurations for your account.
         */
        public var numberOfLaunchConfigurations: kotlin.Int? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.autoscaling.model.DescribeAccountLimitsResponse) : this() {
            this.maxNumberOfAutoScalingGroups = x.maxNumberOfAutoScalingGroups
            this.maxNumberOfLaunchConfigurations = x.maxNumberOfLaunchConfigurations
            this.numberOfAutoScalingGroups = x.numberOfAutoScalingGroups
            this.numberOfLaunchConfigurations = x.numberOfLaunchConfigurations
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy