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

commonMain.aws.sdk.kotlin.services.elasticloadbalancingv2.model.DescribeTargetGroupsRequest.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 DescribeTargetGroupsRequest private constructor(builder: Builder) {
    /**
     * The Amazon Resource Name (ARN) of the load balancer.
     */
    public val loadBalancerArn: kotlin.String? = builder.loadBalancerArn
    /**
     * 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 target groups.
     */
    public val names: List? = builder.names
    /**
     * The maximum number of results to return with this call.
     */
    public val pageSize: kotlin.Int? = builder.pageSize
    /**
     * The Amazon Resource Names (ARN) of the target groups.
     */
    public val targetGroupArns: List? = builder.targetGroupArns

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

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

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

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

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The Amazon Resource Name (ARN) of the load balancer.
         */
        public var loadBalancerArn: kotlin.String? = 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 target groups.
         */
        public var names: List? = null
        /**
         * The maximum number of results to return with this call.
         */
        public var pageSize: kotlin.Int? = null
        /**
         * The Amazon Resource Names (ARN) of the target groups.
         */
        public var targetGroupArns: List? = null

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy