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

commonMain.aws.sdk.kotlin.services.opensearch.model.DescribeDomainNodesResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.opensearch.model



/**
 * The result of a `DescribeDomainNodes` request. Contains information about the nodes on the requested domain.
 */
public class DescribeDomainNodesResponse private constructor(builder: Builder) {
    /**
     * Contains nodes information list `DomainNodesStatusList` with details about the all nodes on the requested domain.
     */
    public val domainNodesStatusList: List? = builder.domainNodesStatusList

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

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

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

        if (domainNodesStatusList != other.domainNodesStatusList) return false

        return true
    }

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

    public class Builder {
        /**
         * Contains nodes information list `DomainNodesStatusList` with details about the all nodes on the requested domain.
         */
        public var domainNodesStatusList: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.opensearch.model.DescribeDomainNodesResponse) : this() {
            this.domainNodesStatusList = x.domainNodesStatusList
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy