
commonMain.aws.sdk.kotlin.services.qbusiness.model.UpdateDataSourceRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.qbusiness.model
import aws.smithy.kotlin.runtime.content.Document
public class UpdateDataSourceRequest private constructor(builder: Builder) {
/**
* The identifier of the Amazon Q Business application the data source is attached to.
*/
public val applicationId: kotlin.String? = builder.applicationId
/**
* Provides the configuration information for an Amazon Q Business data source.
*/
public val configuration: aws.smithy.kotlin.runtime.content.Document? = builder.configuration
/**
* The identifier of the data source connector.
*/
public val dataSourceId: kotlin.String? = builder.dataSourceId
/**
* The description of the data source connector.
*/
public val description: kotlin.String? = builder.description
/**
* A name of the data source connector.
*/
public val displayName: kotlin.String? = builder.displayName
/**
* Provides the configuration information for altering document metadata and content during the document ingestion process.
*
* For more information, see [Custom document enrichment](https://docs.aws.amazon.com/amazonq/latest/business-use-dg/custom-document-enrichment.html).
*/
public val documentEnrichmentConfiguration: aws.sdk.kotlin.services.qbusiness.model.DocumentEnrichmentConfiguration? = builder.documentEnrichmentConfiguration
/**
* The identifier of the index attached to the data source connector.
*/
public val indexId: kotlin.String? = builder.indexId
/**
* The Amazon Resource Name (ARN) of an IAM role with permission to access the data source and required resources.
*/
public val roleArn: kotlin.String? = builder.roleArn
/**
* The chosen update frequency for your data source.
*/
public val syncSchedule: kotlin.String? = builder.syncSchedule
/**
* Provides configuration information needed to connect to an Amazon VPC (Virtual Private Cloud).
*/
public val vpcConfiguration: aws.sdk.kotlin.services.qbusiness.model.DataSourceVpcConfiguration? = builder.vpcConfiguration
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.qbusiness.model.UpdateDataSourceRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateDataSourceRequest(")
append("applicationId=$applicationId,")
append("configuration=$configuration,")
append("dataSourceId=$dataSourceId,")
append("description=$description,")
append("displayName=$displayName,")
append("documentEnrichmentConfiguration=$documentEnrichmentConfiguration,")
append("indexId=$indexId,")
append("roleArn=$roleArn,")
append("syncSchedule=$syncSchedule,")
append("vpcConfiguration=$vpcConfiguration")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = applicationId?.hashCode() ?: 0
result = 31 * result + (configuration?.hashCode() ?: 0)
result = 31 * result + (dataSourceId?.hashCode() ?: 0)
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (displayName?.hashCode() ?: 0)
result = 31 * result + (documentEnrichmentConfiguration?.hashCode() ?: 0)
result = 31 * result + (indexId?.hashCode() ?: 0)
result = 31 * result + (roleArn?.hashCode() ?: 0)
result = 31 * result + (syncSchedule?.hashCode() ?: 0)
result = 31 * result + (vpcConfiguration?.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 (applicationId != other.applicationId) return false
if (configuration != other.configuration) return false
if (dataSourceId != other.dataSourceId) return false
if (description != other.description) return false
if (displayName != other.displayName) return false
if (documentEnrichmentConfiguration != other.documentEnrichmentConfiguration) return false
if (indexId != other.indexId) return false
if (roleArn != other.roleArn) return false
if (syncSchedule != other.syncSchedule) return false
if (vpcConfiguration != other.vpcConfiguration) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.qbusiness.model.UpdateDataSourceRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The identifier of the Amazon Q Business application the data source is attached to.
*/
public var applicationId: kotlin.String? = null
/**
* Provides the configuration information for an Amazon Q Business data source.
*/
public var configuration: aws.smithy.kotlin.runtime.content.Document? = null
/**
* The identifier of the data source connector.
*/
public var dataSourceId: kotlin.String? = null
/**
* The description of the data source connector.
*/
public var description: kotlin.String? = null
/**
* A name of the data source connector.
*/
public var displayName: kotlin.String? = null
/**
* Provides the configuration information for altering document metadata and content during the document ingestion process.
*
* For more information, see [Custom document enrichment](https://docs.aws.amazon.com/amazonq/latest/business-use-dg/custom-document-enrichment.html).
*/
public var documentEnrichmentConfiguration: aws.sdk.kotlin.services.qbusiness.model.DocumentEnrichmentConfiguration? = null
/**
* The identifier of the index attached to the data source connector.
*/
public var indexId: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of an IAM role with permission to access the data source and required resources.
*/
public var roleArn: kotlin.String? = null
/**
* The chosen update frequency for your data source.
*/
public var syncSchedule: kotlin.String? = null
/**
* Provides configuration information needed to connect to an Amazon VPC (Virtual Private Cloud).
*/
public var vpcConfiguration: aws.sdk.kotlin.services.qbusiness.model.DataSourceVpcConfiguration? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.qbusiness.model.UpdateDataSourceRequest) : this() {
this.applicationId = x.applicationId
this.configuration = x.configuration
this.dataSourceId = x.dataSourceId
this.description = x.description
this.displayName = x.displayName
this.documentEnrichmentConfiguration = x.documentEnrichmentConfiguration
this.indexId = x.indexId
this.roleArn = x.roleArn
this.syncSchedule = x.syncSchedule
this.vpcConfiguration = x.vpcConfiguration
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.qbusiness.model.UpdateDataSourceRequest = UpdateDataSourceRequest(this)
/**
* construct an [aws.sdk.kotlin.services.qbusiness.model.DocumentEnrichmentConfiguration] inside the given [block]
*/
public fun documentEnrichmentConfiguration(block: aws.sdk.kotlin.services.qbusiness.model.DocumentEnrichmentConfiguration.Builder.() -> kotlin.Unit) {
this.documentEnrichmentConfiguration = aws.sdk.kotlin.services.qbusiness.model.DocumentEnrichmentConfiguration.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.qbusiness.model.DataSourceVpcConfiguration] inside the given [block]
*/
public fun vpcConfiguration(block: aws.sdk.kotlin.services.qbusiness.model.DataSourceVpcConfiguration.Builder.() -> kotlin.Unit) {
this.vpcConfiguration = aws.sdk.kotlin.services.qbusiness.model.DataSourceVpcConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy