
commonMain.aws.sdk.kotlin.services.kendra.model.ConfluenceBlogConfiguration.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.kendra.model
/**
* Configuration of blog settings for the Confluence data source. Blogs are always indexed unless filtered from the index by the `ExclusionPatterns` or `InclusionPatterns` fields in the `ConfluenceConfiguration` object.
*/
public class ConfluenceBlogConfiguration private constructor(builder: Builder) {
/**
* Maps attributes or field names of Confluence blogs to Amazon Kendra index field names. To create custom fields, use the `UpdateIndex` API before you map to Confluence fields. For more information, see [Mapping data source fields](https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html). The Confluence data source field names must exist in your Confluence custom metadata.
*
* If you specify the `BlogFieldMappings` parameter, you must specify at least one field mapping.
*/
public val blogFieldMappings: List? = builder.blogFieldMappings
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kendra.model.ConfluenceBlogConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ConfluenceBlogConfiguration(")
append("blogFieldMappings=$blogFieldMappings")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = blogFieldMappings?.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 ConfluenceBlogConfiguration
if (blogFieldMappings != other.blogFieldMappings) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kendra.model.ConfluenceBlogConfiguration = Builder(this).apply(block).build()
public class Builder {
/**
* Maps attributes or field names of Confluence blogs to Amazon Kendra index field names. To create custom fields, use the `UpdateIndex` API before you map to Confluence fields. For more information, see [Mapping data source fields](https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html). The Confluence data source field names must exist in your Confluence custom metadata.
*
* If you specify the `BlogFieldMappings` parameter, you must specify at least one field mapping.
*/
public var blogFieldMappings: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kendra.model.ConfluenceBlogConfiguration) : this() {
this.blogFieldMappings = x.blogFieldMappings
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kendra.model.ConfluenceBlogConfiguration = ConfluenceBlogConfiguration(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy