
commonMain.aws.sdk.kotlin.services.kendra.model.FaqStatistics.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.kendra.model
/**
* Provides statistical information about the FAQ questions and answers contained in an index.
*/
public class FaqStatistics private constructor(builder: Builder) {
/**
* The total number of FAQ questions and answers contained in the index.
*/
public val indexedQuestionAnswersCount: kotlin.Int = builder.indexedQuestionAnswersCount
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kendra.model.FaqStatistics = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("FaqStatistics(")
append("indexedQuestionAnswersCount=$indexedQuestionAnswersCount")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = indexedQuestionAnswersCount
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 FaqStatistics
if (indexedQuestionAnswersCount != other.indexedQuestionAnswersCount) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kendra.model.FaqStatistics = Builder(this).apply(block).build()
public class Builder {
/**
* The total number of FAQ questions and answers contained in the index.
*/
public var indexedQuestionAnswersCount: kotlin.Int = 0
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kendra.model.FaqStatistics) : this() {
this.indexedQuestionAnswersCount = x.indexedQuestionAnswersCount
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kendra.model.FaqStatistics = FaqStatistics(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy