
commonMain.aws.sdk.kotlin.services.opensearch.model.NaturalLanguageQueryGenerationOptionsOutput.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.opensearch.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Container for parameters representing the state of the natural language query generation feature on the specified domain.
*/
public class NaturalLanguageQueryGenerationOptionsOutput private constructor(builder: Builder) {
/**
* The current state of the natural language query generation feature, indicating completion, in progress, or failure.
*/
public val currentState: aws.sdk.kotlin.services.opensearch.model.NaturalLanguageQueryGenerationCurrentState? = builder.currentState
/**
* The desired state of the natural language query generation feature. Valid values are ENABLED and DISABLED.
*/
public val desiredState: aws.sdk.kotlin.services.opensearch.model.NaturalLanguageQueryGenerationDesiredState? = builder.desiredState
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.opensearch.model.NaturalLanguageQueryGenerationOptionsOutput = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("NaturalLanguageQueryGenerationOptionsOutput(")
append("currentState=$currentState,")
append("desiredState=$desiredState")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = currentState?.hashCode() ?: 0
result = 31 * result + (desiredState?.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 NaturalLanguageQueryGenerationOptionsOutput
if (currentState != other.currentState) return false
if (desiredState != other.desiredState) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.opensearch.model.NaturalLanguageQueryGenerationOptionsOutput = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The current state of the natural language query generation feature, indicating completion, in progress, or failure.
*/
public var currentState: aws.sdk.kotlin.services.opensearch.model.NaturalLanguageQueryGenerationCurrentState? = null
/**
* The desired state of the natural language query generation feature. Valid values are ENABLED and DISABLED.
*/
public var desiredState: aws.sdk.kotlin.services.opensearch.model.NaturalLanguageQueryGenerationDesiredState? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.opensearch.model.NaturalLanguageQueryGenerationOptionsOutput) : this() {
this.currentState = x.currentState
this.desiredState = x.desiredState
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.opensearch.model.NaturalLanguageQueryGenerationOptionsOutput = NaturalLanguageQueryGenerationOptionsOutput(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy