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

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

There is a newer version: 1.3.35
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.bedrockagent.model



public class UpdateDataSourceRequest private constructor(builder: Builder) {
    /**
     * Contains details about the storage configuration of the data source.
     */
    public val dataSourceConfiguration: aws.sdk.kotlin.services.bedrockagent.model.DataSourceConfiguration? = builder.dataSourceConfiguration
    /**
     * The unique identifier of the data source.
     */
    public val dataSourceId: kotlin.String? = builder.dataSourceId
    /**
     * Specifies a new description for the data source.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The unique identifier of the knowledge base to which the data source belongs.
     */
    public val knowledgeBaseId: kotlin.String? = builder.knowledgeBaseId
    /**
     * Specifies a new name for the data source.
     */
    public val name: kotlin.String? = builder.name
    /**
     * Contains details about server-side encryption of the data source.
     */
    public val serverSideEncryptionConfiguration: aws.sdk.kotlin.services.bedrockagent.model.ServerSideEncryptionConfiguration? = builder.serverSideEncryptionConfiguration
    /**
     * Contains details about how to ingest the documents in the data source.
     */
    public val vectorIngestionConfiguration: aws.sdk.kotlin.services.bedrockagent.model.VectorIngestionConfiguration? = builder.vectorIngestionConfiguration

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateDataSourceRequest(")
        append("dataSourceConfiguration=$dataSourceConfiguration,")
        append("dataSourceId=$dataSourceId,")
        append("description=$description,")
        append("knowledgeBaseId=$knowledgeBaseId,")
        append("name=$name,")
        append("serverSideEncryptionConfiguration=$serverSideEncryptionConfiguration,")
        append("vectorIngestionConfiguration=$vectorIngestionConfiguration")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = dataSourceConfiguration?.hashCode() ?: 0
        result = 31 * result + (dataSourceId?.hashCode() ?: 0)
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (knowledgeBaseId?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (serverSideEncryptionConfiguration?.hashCode() ?: 0)
        result = 31 * result + (vectorIngestionConfiguration?.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 UpdateDataSourceRequest

        if (dataSourceConfiguration != other.dataSourceConfiguration) return false
        if (dataSourceId != other.dataSourceId) return false
        if (description != other.description) return false
        if (knowledgeBaseId != other.knowledgeBaseId) return false
        if (name != other.name) return false
        if (serverSideEncryptionConfiguration != other.serverSideEncryptionConfiguration) return false
        if (vectorIngestionConfiguration != other.vectorIngestionConfiguration) return false

        return true
    }

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

    public class Builder {
        /**
         * Contains details about the storage configuration of the data source.
         */
        public var dataSourceConfiguration: aws.sdk.kotlin.services.bedrockagent.model.DataSourceConfiguration? = null
        /**
         * The unique identifier of the data source.
         */
        public var dataSourceId: kotlin.String? = null
        /**
         * Specifies a new description for the data source.
         */
        public var description: kotlin.String? = null
        /**
         * The unique identifier of the knowledge base to which the data source belongs.
         */
        public var knowledgeBaseId: kotlin.String? = null
        /**
         * Specifies a new name for the data source.
         */
        public var name: kotlin.String? = null
        /**
         * Contains details about server-side encryption of the data source.
         */
        public var serverSideEncryptionConfiguration: aws.sdk.kotlin.services.bedrockagent.model.ServerSideEncryptionConfiguration? = null
        /**
         * Contains details about how to ingest the documents in the data source.
         */
        public var vectorIngestionConfiguration: aws.sdk.kotlin.services.bedrockagent.model.VectorIngestionConfiguration? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.bedrockagent.model.UpdateDataSourceRequest) : this() {
            this.dataSourceConfiguration = x.dataSourceConfiguration
            this.dataSourceId = x.dataSourceId
            this.description = x.description
            this.knowledgeBaseId = x.knowledgeBaseId
            this.name = x.name
            this.serverSideEncryptionConfiguration = x.serverSideEncryptionConfiguration
            this.vectorIngestionConfiguration = x.vectorIngestionConfiguration
        }

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

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy