
commonMain.aws.sdk.kotlin.services.kendra.model.TemplateConfiguration.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.kendra.model
import aws.smithy.kotlin.runtime.content.Document
/**
* Provides a template for the configuration information to connect to your data source.
*/
public class TemplateConfiguration private constructor(builder: Builder) {
/**
* The template schema used for the data source, where templates schemas are supported.
*
* See [Data source template schemas](https://docs.aws.amazon.com/kendra/latest/dg/ds-schemas.html).
*/
public val template: aws.smithy.kotlin.runtime.content.Document? = builder.template
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kendra.model.TemplateConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("TemplateConfiguration(")
append("template=$template")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = template?.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 TemplateConfiguration
if (template != other.template) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kendra.model.TemplateConfiguration = Builder(this).apply(block).build()
public class Builder {
/**
* The template schema used for the data source, where templates schemas are supported.
*
* See [Data source template schemas](https://docs.aws.amazon.com/kendra/latest/dg/ds-schemas.html).
*/
public var template: aws.smithy.kotlin.runtime.content.Document? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kendra.model.TemplateConfiguration) : this() {
this.template = x.template
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kendra.model.TemplateConfiguration = TemplateConfiguration(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy