
commonMain.aws.sdk.kotlin.services.qbusiness.model.KendraIndexConfiguration.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.qbusiness.model
/**
* Stores an Amazon Kendra index as a retriever.
*/
public class KendraIndexConfiguration private constructor(builder: Builder) {
/**
* The identifier of the Amazon Kendra index.
*/
public val indexId: kotlin.String = requireNotNull(builder.indexId) { "A non-null value must be provided for indexId" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.qbusiness.model.KendraIndexConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("KendraIndexConfiguration(")
append("indexId=$indexId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = indexId.hashCode()
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 KendraIndexConfiguration
if (indexId != other.indexId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.qbusiness.model.KendraIndexConfiguration = Builder(this).apply(block).build()
public class Builder {
/**
* The identifier of the Amazon Kendra index.
*/
public var indexId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.qbusiness.model.KendraIndexConfiguration) : this() {
this.indexId = x.indexId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.qbusiness.model.KendraIndexConfiguration = KendraIndexConfiguration(this)
internal fun correctErrors(): Builder {
if (indexId == null) indexId = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy