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

commonMain.aws.sdk.kotlin.services.cloudsearch.model.DefineAnalysisSchemeRequest.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



/**
 * Container for the parameters to the `DefineAnalysisScheme` operation. Specifies the name of the domain you want to update and the analysis scheme configuration.
 */
public class DefineAnalysisSchemeRequest private constructor(builder: Builder) {
    /**
     * Configuration information for an analysis scheme. Each analysis scheme has a unique name and specifies the language of the text to be processed. The following options can be configured for an analysis scheme: `Synonyms`, `Stopwords`, `StemmingDictionary`, `JapaneseTokenizationDictionary` and `AlgorithmicStemming`.
     */
    public val analysisScheme: aws.sdk.kotlin.services.cloudsearch.model.AnalysisScheme? = builder.analysisScheme
    /**
     * A string that represents the name of a domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).
     */
    public val domainName: kotlin.String? = builder.domainName

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

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

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

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

        return true
    }

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

    public class Builder {
        /**
         * Configuration information for an analysis scheme. Each analysis scheme has a unique name and specifies the language of the text to be processed. The following options can be configured for an analysis scheme: `Synonyms`, `Stopwords`, `StemmingDictionary`, `JapaneseTokenizationDictionary` and `AlgorithmicStemming`.
         */
        public var analysisScheme: aws.sdk.kotlin.services.cloudsearch.model.AnalysisScheme? = null
        /**
         * A string that represents the name of a domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).
         */
        public var domainName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.cloudsearch.model.DefineAnalysisSchemeRequest) : this() {
            this.analysisScheme = x.analysisScheme
            this.domainName = x.domainName
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.cloudsearch.model.AnalysisScheme] inside the given [block]
         */
        public fun analysisScheme(block: aws.sdk.kotlin.services.cloudsearch.model.AnalysisScheme.Builder.() -> kotlin.Unit) {
            this.analysisScheme = aws.sdk.kotlin.services.cloudsearch.model.AnalysisScheme.invoke(block)
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy