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

commonMain.aws.sdk.kotlin.services.qbusiness.model.ContentRetrievalRule.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.qbusiness.model



/**
 * Rules for retrieving content from data sources connected to a Amazon Q Business application for a specific topic control configuration.
 */
public class ContentRetrievalRule private constructor(builder: Builder) {
    /**
     * Specifies data sources in a Amazon Q Business application to use for content generation.
     */
    public val eligibleDataSources: List? = builder.eligibleDataSources

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

    override fun toString(): kotlin.String = buildString {
        append("ContentRetrievalRule(")
        append("eligibleDataSources=$eligibleDataSources")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = eligibleDataSources?.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 ContentRetrievalRule

        if (eligibleDataSources != other.eligibleDataSources) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.qbusiness.model.ContentRetrievalRule = Builder(this).apply(block).build()

    public class Builder {
        /**
         * Specifies data sources in a Amazon Q Business application to use for content generation.
         */
        public var eligibleDataSources: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.qbusiness.model.ContentRetrievalRule) : this() {
            this.eligibleDataSources = x.eligibleDataSources
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy