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

commonMain.aws.sdk.kotlin.services.elasticloadbalancingv2.model.Limit.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.elasticloadbalancingv2.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Information about an Elastic Load Balancing resource limit for your Amazon Web Services account.
 *
 * For more information, see the following:
 * + [Quotas for your Application Load Balancers](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-limits.html)
 * + [Quotas for your Network Load Balancers](https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-limits.html)
 * + [Quotas for your Gateway Load Balancers](https://docs.aws.amazon.com/elasticloadbalancing/latest/gateway/quotas-limits.html)
 */
public class Limit private constructor(builder: Builder) {
    /**
     * The maximum value of the limit.
     */
    public val max: kotlin.String? = builder.max
    /**
     * The name of the limit. The possible values are:
     * + application-load-balancers
     * + condition-values-per-alb-rule
     * + condition-wildcards-per-alb-rule
     * + gateway-load-balancers
     * + gateway-load-balancers-per-vpc
     * + geneve-target-groups
     * + listeners-per-application-load-balancer
     * + listeners-per-network-load-balancer
     * + network-load-balancers
     * + rules-per-application-load-balancer
     * + target-groups
     * + target-groups-per-action-on-application-load-balancer
     * + target-groups-per-action-on-network-load-balancer
     * + target-groups-per-application-load-balancer
     * + targets-per-application-load-balancer
     * + targets-per-availability-zone-per-gateway-load-balancer
     * + targets-per-availability-zone-per-network-load-balancer
     * + targets-per-network-load-balancer
     */
    public val name: kotlin.String? = builder.name

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

    override fun toString(): kotlin.String = buildString {
        append("Limit(")
        append("max=$max,")
        append("name=$name")
        append(")")
    }

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

        if (max != other.max) return false
        if (name != other.name) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The maximum value of the limit.
         */
        public var max: kotlin.String? = null
        /**
         * The name of the limit. The possible values are:
         * + application-load-balancers
         * + condition-values-per-alb-rule
         * + condition-wildcards-per-alb-rule
         * + gateway-load-balancers
         * + gateway-load-balancers-per-vpc
         * + geneve-target-groups
         * + listeners-per-application-load-balancer
         * + listeners-per-network-load-balancer
         * + network-load-balancers
         * + rules-per-application-load-balancer
         * + target-groups
         * + target-groups-per-action-on-application-load-balancer
         * + target-groups-per-action-on-network-load-balancer
         * + target-groups-per-application-load-balancer
         * + targets-per-application-load-balancer
         * + targets-per-availability-zone-per-gateway-load-balancer
         * + targets-per-availability-zone-per-network-load-balancer
         * + targets-per-network-load-balancer
         */
        public var name: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.elasticloadbalancingv2.model.Limit) : this() {
            this.max = x.max
            this.name = x.name
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy