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

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

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

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



/**
 * Information about an OpenSearch Service domain.
 */
public class DomainInfo private constructor(builder: Builder) {
    /**
     * Name of the domain.
     */
    public val domainName: kotlin.String? = builder.domainName
    /**
     * The type of search engine that the domain is running.`OpenSearch` for an OpenSearch engine, or `Elasticsearch` for a legacy Elasticsearch OSS engine.
     */
    public val engineType: aws.sdk.kotlin.services.opensearch.model.EngineType? = builder.engineType

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

    override fun toString(): kotlin.String = buildString {
        append("DomainInfo(")
        append("domainName=$domainName,")
        append("engineType=$engineType")
        append(")")
    }

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

        if (domainName != other.domainName) return false
        if (engineType != other.engineType) return false

        return true
    }

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

    public class Builder {
        /**
         * Name of the domain.
         */
        public var domainName: kotlin.String? = null
        /**
         * The type of search engine that the domain is running.`OpenSearch` for an OpenSearch engine, or `Elasticsearch` for a legacy Elasticsearch OSS engine.
         */
        public var engineType: aws.sdk.kotlin.services.opensearch.model.EngineType? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.opensearch.model.DomainInfo) : this() {
            this.domainName = x.domainName
            this.engineType = x.engineType
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy