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

commonMain.aws.sdk.kotlin.services.elasticloadbalancingv2.model.DescribeLoadBalancersRequest.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

public class DescribeLoadBalancersRequest private constructor(builder: Builder) {
    /**
     * The Amazon Resource Names (ARN) of the load balancers. You can specify up to 20 load balancers in a single call.
     */
    public val loadBalancerArns: List? = builder.loadBalancerArns
    /**
     * The marker for the next set of results. (You received this marker from a previous call.)
     */
    public val marker: kotlin.String? = builder.marker
    /**
     * The names of the load balancers.
     */
    public val names: List? = builder.names
    /**
     * The maximum number of results to return with this call.
     */
    public val pageSize: kotlin.Int? = builder.pageSize

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeLoadBalancersRequest(")
        append("loadBalancerArns=$loadBalancerArns,")
        append("marker=$marker,")
        append("names=$names,")
        append("pageSize=$pageSize")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = loadBalancerArns?.hashCode() ?: 0
        result = 31 * result + (marker?.hashCode() ?: 0)
        result = 31 * result + (names?.hashCode() ?: 0)
        result = 31 * result + (pageSize ?: 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 DescribeLoadBalancersRequest

        if (loadBalancerArns != other.loadBalancerArns) return false
        if (marker != other.marker) return false
        if (names != other.names) return false
        if (pageSize != other.pageSize) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The Amazon Resource Names (ARN) of the load balancers. You can specify up to 20 load balancers in a single call.
         */
        public var loadBalancerArns: List? = null
        /**
         * The marker for the next set of results. (You received this marker from a previous call.)
         */
        public var marker: kotlin.String? = null
        /**
         * The names of the load balancers.
         */
        public var names: List? = null
        /**
         * The maximum number of results to return with this call.
         */
        public var pageSize: kotlin.Int? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.elasticloadbalancingv2.model.DescribeLoadBalancersRequest) : this() {
            this.loadBalancerArns = x.loadBalancerArns
            this.marker = x.marker
            this.names = x.names
            this.pageSize = x.pageSize
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy