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

commonMain.aws.sdk.kotlin.services.cloudsearch.model.DescribeDomainsResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.cloudsearch.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * The result of a `DescribeDomains` request. Contains the status of the domains specified in the request or all domains owned by the account.
 */
public class DescribeDomainsResponse private constructor(builder: Builder) {
    /**
     * A list that contains the status of each requested domain.
     */
    public val domainStatusList: List = requireNotNull(builder.domainStatusList) { "A non-null value must be provided for domainStatusList" }

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeDomainsResponse(")
        append("domainStatusList=$domainStatusList")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = domainStatusList.hashCode()
        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 DescribeDomainsResponse

        if (domainStatusList != other.domainStatusList) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * A list that contains the status of each requested domain.
         */
        public var domainStatusList: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.cloudsearch.model.DescribeDomainsResponse) : this() {
            this.domainStatusList = x.domainStatusList
        }

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

        internal fun correctErrors(): Builder {
            if (domainStatusList == null) domainStatusList = emptyList()
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy