All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.bedrockagent.model.SharePointDataSourceConfiguration.kt Maven / Gradle / Ivy

There is a newer version: 1.3.77
Show newest version
// 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 SharePoint as your data source.
 */
public class SharePointDataSourceConfiguration private constructor(builder: Builder) {
    /**
     * The configuration of the SharePoint content. For example, configuring specific types of SharePoint content.
     */
    public val crawlerConfiguration: aws.sdk.kotlin.services.bedrockagent.model.SharePointCrawlerConfiguration? = builder.crawlerConfiguration
    /**
     * The endpoint information to connect to your SharePoint data source.
     */
    public val sourceConfiguration: aws.sdk.kotlin.services.bedrockagent.model.SharePointSourceConfiguration? = builder.sourceConfiguration

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.bedrockagent.model.SharePointDataSourceConfiguration = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("SharePointDataSourceConfiguration(")
        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 SharePointDataSourceConfiguration

        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.SharePointDataSourceConfiguration = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The configuration of the SharePoint content. For example, configuring specific types of SharePoint content.
         */
        public var crawlerConfiguration: aws.sdk.kotlin.services.bedrockagent.model.SharePointCrawlerConfiguration? = null
        /**
         * The endpoint information to connect to your SharePoint data source.
         */
        public var sourceConfiguration: aws.sdk.kotlin.services.bedrockagent.model.SharePointSourceConfiguration? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.bedrockagent.model.SharePointDataSourceConfiguration) : this() {
            this.crawlerConfiguration = x.crawlerConfiguration
            this.sourceConfiguration = x.sourceConfiguration
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.bedrockagent.model.SharePointDataSourceConfiguration = SharePointDataSourceConfiguration(this)

        /**
         * construct an [aws.sdk.kotlin.services.bedrockagent.model.SharePointCrawlerConfiguration] inside the given [block]
         */
        public fun crawlerConfiguration(block: aws.sdk.kotlin.services.bedrockagent.model.SharePointCrawlerConfiguration.Builder.() -> kotlin.Unit) {
            this.crawlerConfiguration = aws.sdk.kotlin.services.bedrockagent.model.SharePointCrawlerConfiguration.invoke(block)
        }

        /**
         * construct an [aws.sdk.kotlin.services.bedrockagent.model.SharePointSourceConfiguration] inside the given [block]
         */
        public fun sourceConfiguration(block: aws.sdk.kotlin.services.bedrockagent.model.SharePointSourceConfiguration.Builder.() -> kotlin.Unit) {
            this.sourceConfiguration = aws.sdk.kotlin.services.bedrockagent.model.SharePointSourceConfiguration.invoke(block)
        }

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy