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

commonMain.aws.sdk.kotlin.services.lightsail.model.GetLoadBalancersResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.lightsail.model

import aws.smithy.kotlin.runtime.SdkDsl

public class GetLoadBalancersResponse private constructor(builder: Builder) {
    /**
     * An array of LoadBalancer objects describing your load balancers.
     */
    public val loadBalancers: List? = builder.loadBalancers
    /**
     * The token to advance to the next page of results from your request.
     *
     * A next page token is not returned if there are no more results to display.
     *
     * To get the next page of results, perform another `GetLoadBalancers` request and specify the next page token using the `pageToken` parameter.
     */
    public val nextPageToken: kotlin.String? = builder.nextPageToken

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

    override fun toString(): kotlin.String = buildString {
        append("GetLoadBalancersResponse(")
        append("loadBalancers=$loadBalancers,")
        append("nextPageToken=$nextPageToken")
        append(")")
    }

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

        if (loadBalancers != other.loadBalancers) return false
        if (nextPageToken != other.nextPageToken) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * An array of LoadBalancer objects describing your load balancers.
         */
        public var loadBalancers: List? = null
        /**
         * The token to advance to the next page of results from your request.
         *
         * A next page token is not returned if there are no more results to display.
         *
         * To get the next page of results, perform another `GetLoadBalancers` request and specify the next page token using the `pageToken` parameter.
         */
        public var nextPageToken: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.lightsail.model.GetLoadBalancersResponse) : this() {
            this.loadBalancers = x.loadBalancers
            this.nextPageToken = x.nextPageToken
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy