commonMain.aws.sdk.kotlin.services.cloudsearch.model.DefineAnalysisSchemeResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cloudsearch-jvm Show documentation
Show all versions of cloudsearch-jvm Show documentation
The AWS SDK for Kotlin client for CloudSearch
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cloudsearch.model
/**
* The result of a `DefineAnalysisScheme` request. Contains the status of the newly-configured analysis scheme.
*/
public class DefineAnalysisSchemeResponse private constructor(builder: Builder) {
/**
* The status and configuration of an `AnalysisScheme`.
*/
public val analysisScheme: aws.sdk.kotlin.services.cloudsearch.model.AnalysisSchemeStatus? = builder.analysisScheme
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cloudsearch.model.DefineAnalysisSchemeResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DefineAnalysisSchemeResponse(")
append("analysisScheme=$analysisScheme")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = analysisScheme?.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 DefineAnalysisSchemeResponse
if (analysisScheme != other.analysisScheme) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cloudsearch.model.DefineAnalysisSchemeResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The status and configuration of an `AnalysisScheme`.
*/
public var analysisScheme: aws.sdk.kotlin.services.cloudsearch.model.AnalysisSchemeStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cloudsearch.model.DefineAnalysisSchemeResponse) : this() {
this.analysisScheme = x.analysisScheme
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cloudsearch.model.DefineAnalysisSchemeResponse = DefineAnalysisSchemeResponse(this)
/**
* construct an [aws.sdk.kotlin.services.cloudsearch.model.AnalysisSchemeStatus] inside the given [block]
*/
public fun analysisScheme(block: aws.sdk.kotlin.services.cloudsearch.model.AnalysisSchemeStatus.Builder.() -> kotlin.Unit) {
this.analysisScheme = aws.sdk.kotlin.services.cloudsearch.model.AnalysisSchemeStatus.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy