commonMain.aws.sdk.kotlin.services.bedrockagent.model.ConfluenceDataSourceConfiguration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bedrockagent-jvm Show documentation
Show all versions of bedrockagent-jvm Show documentation
The AWS SDK for Kotlin client for Bedrock Agent
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.bedrockagent.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The configuration information to connect to Confluence as your data source.
*/
public class ConfluenceDataSourceConfiguration private constructor(builder: Builder) {
/**
* The configuration of the Confluence content. For example, configuring specific types of Confluence content.
*/
public val crawlerConfiguration: aws.sdk.kotlin.services.bedrockagent.model.ConfluenceCrawlerConfiguration? = builder.crawlerConfiguration
/**
* The endpoint information to connect to your Confluence data source.
*/
public val sourceConfiguration: aws.sdk.kotlin.services.bedrockagent.model.ConfluenceSourceConfiguration? = builder.sourceConfiguration
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.bedrockagent.model.ConfluenceDataSourceConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ConfluenceDataSourceConfiguration(")
append("crawlerConfiguration=$crawlerConfiguration,")
append("sourceConfiguration=$sourceConfiguration")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = crawlerConfiguration?.hashCode() ?: 0
result = 31 * result + (sourceConfiguration?.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 ConfluenceDataSourceConfiguration
if (crawlerConfiguration != other.crawlerConfiguration) return false
if (sourceConfiguration != other.sourceConfiguration) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.bedrockagent.model.ConfluenceDataSourceConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The configuration of the Confluence content. For example, configuring specific types of Confluence content.
*/
public var crawlerConfiguration: aws.sdk.kotlin.services.bedrockagent.model.ConfluenceCrawlerConfiguration? = null
/**
* The endpoint information to connect to your Confluence data source.
*/
public var sourceConfiguration: aws.sdk.kotlin.services.bedrockagent.model.ConfluenceSourceConfiguration? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.bedrockagent.model.ConfluenceDataSourceConfiguration) : this() {
this.crawlerConfiguration = x.crawlerConfiguration
this.sourceConfiguration = x.sourceConfiguration
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.bedrockagent.model.ConfluenceDataSourceConfiguration = ConfluenceDataSourceConfiguration(this)
/**
* construct an [aws.sdk.kotlin.services.bedrockagent.model.ConfluenceCrawlerConfiguration] inside the given [block]
*/
public fun crawlerConfiguration(block: aws.sdk.kotlin.services.bedrockagent.model.ConfluenceCrawlerConfiguration.Builder.() -> kotlin.Unit) {
this.crawlerConfiguration = aws.sdk.kotlin.services.bedrockagent.model.ConfluenceCrawlerConfiguration.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.bedrockagent.model.ConfluenceSourceConfiguration] inside the given [block]
*/
public fun sourceConfiguration(block: aws.sdk.kotlin.services.bedrockagent.model.ConfluenceSourceConfiguration.Builder.() -> kotlin.Unit) {
this.sourceConfiguration = aws.sdk.kotlin.services.bedrockagent.model.ConfluenceSourceConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}