
commonMain.aws.sdk.kotlin.services.qbusiness.model.GetDataSourceResponse.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
import aws.smithy.kotlin.runtime.time.Instant
public class GetDataSourceResponse private constructor(builder: Builder) {
/**
* The identifier of the Amazon Q Business application.
*/
public val applicationId: kotlin.String? = builder.applicationId
/**
* The details of how the data source connector is configured.
*/
public val configuration: aws.smithy.kotlin.runtime.content.Document? = builder.configuration
/**
* The Unix timestamp when the data source connector was created.
*/
public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
/**
* The Amazon Resource Name (ARN) of the data source.
*/
public val dataSourceArn: kotlin.String? = builder.dataSourceArn
/**
* The identifier of the data source connector.
*/
public val dataSourceId: kotlin.String? = builder.dataSourceId
/**
* The description for the data source connector.
*/
public val description: kotlin.String? = builder.description
/**
* The name for 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
/**
* When the `Status` field value is `FAILED`, the `ErrorMessage` field contains a description of the error that caused the data source connector to fail.
*/
public val error: aws.sdk.kotlin.services.qbusiness.model.ErrorDetail? = builder.error
/**
* The identifier of the index linked to the data source connector.
*/
public val indexId: kotlin.String? = builder.indexId
/**
* The Amazon Resource Name (ARN) of the role with permission to access the data source and required resources.
*/
public val roleArn: kotlin.String? = builder.roleArn
/**
* The current status of the data source connector. When the `Status` field value is `FAILED`, the `ErrorMessage` field contains a description of the error that caused the data source connector to fail.
*/
public val status: aws.sdk.kotlin.services.qbusiness.model.DataSourceStatus? = builder.status
/**
* The schedule for Amazon Q Business to update the index.
*/
public val syncSchedule: kotlin.String? = builder.syncSchedule
/**
* The type of the data source connector. For example, `S3`.
*/
public val type: kotlin.String? = builder.type
/**
* The Unix timestamp when the data source connector was last updated.
*/
public val updatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.updatedAt
/**
* Configuration information for an Amazon VPC (Virtual Private Cloud) to connect to your data source.
*/
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.GetDataSourceResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetDataSourceResponse(")
append("applicationId=$applicationId,")
append("configuration=$configuration,")
append("createdAt=$createdAt,")
append("dataSourceArn=$dataSourceArn,")
append("dataSourceId=$dataSourceId,")
append("description=$description,")
append("displayName=$displayName,")
append("documentEnrichmentConfiguration=$documentEnrichmentConfiguration,")
append("error=$error,")
append("indexId=$indexId,")
append("roleArn=$roleArn,")
append("status=$status,")
append("syncSchedule=$syncSchedule,")
append("type=$type,")
append("updatedAt=$updatedAt,")
append("vpcConfiguration=$vpcConfiguration")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = applicationId?.hashCode() ?: 0
result = 31 * result + (configuration?.hashCode() ?: 0)
result = 31 * result + (createdAt?.hashCode() ?: 0)
result = 31 * result + (dataSourceArn?.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 + (error?.hashCode() ?: 0)
result = 31 * result + (indexId?.hashCode() ?: 0)
result = 31 * result + (roleArn?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (syncSchedule?.hashCode() ?: 0)
result = 31 * result + (type?.hashCode() ?: 0)
result = 31 * result + (updatedAt?.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 GetDataSourceResponse
if (applicationId != other.applicationId) return false
if (configuration != other.configuration) return false
if (createdAt != other.createdAt) return false
if (dataSourceArn != other.dataSourceArn) 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 (error != other.error) return false
if (indexId != other.indexId) return false
if (roleArn != other.roleArn) return false
if (status != other.status) return false
if (syncSchedule != other.syncSchedule) return false
if (type != other.type) return false
if (updatedAt != other.updatedAt) return false
if (vpcConfiguration != other.vpcConfiguration) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.qbusiness.model.GetDataSourceResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The identifier of the Amazon Q Business application.
*/
public var applicationId: kotlin.String? = null
/**
* The details of how the data source connector is configured.
*/
public var configuration: aws.smithy.kotlin.runtime.content.Document? = null
/**
* The Unix timestamp when the data source connector was created.
*/
public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The Amazon Resource Name (ARN) of the data source.
*/
public var dataSourceArn: kotlin.String? = null
/**
* The identifier of the data source connector.
*/
public var dataSourceId: kotlin.String? = null
/**
* The description for the data source connector.
*/
public var description: kotlin.String? = null
/**
* The name for 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
/**
* When the `Status` field value is `FAILED`, the `ErrorMessage` field contains a description of the error that caused the data source connector to fail.
*/
public var error: aws.sdk.kotlin.services.qbusiness.model.ErrorDetail? = null
/**
* The identifier of the index linked to the data source connector.
*/
public var indexId: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of the role with permission to access the data source and required resources.
*/
public var roleArn: kotlin.String? = null
/**
* The current status of the data source connector. When the `Status` field value is `FAILED`, the `ErrorMessage` field contains a description of the error that caused the data source connector to fail.
*/
public var status: aws.sdk.kotlin.services.qbusiness.model.DataSourceStatus? = null
/**
* The schedule for Amazon Q Business to update the index.
*/
public var syncSchedule: kotlin.String? = null
/**
* The type of the data source connector. For example, `S3`.
*/
public var type: kotlin.String? = null
/**
* The Unix timestamp when the data source connector was last updated.
*/
public var updatedAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* Configuration information for an Amazon VPC (Virtual Private Cloud) to connect to your data source.
*/
public var vpcConfiguration: aws.sdk.kotlin.services.qbusiness.model.DataSourceVpcConfiguration? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.qbusiness.model.GetDataSourceResponse) : this() {
this.applicationId = x.applicationId
this.configuration = x.configuration
this.createdAt = x.createdAt
this.dataSourceArn = x.dataSourceArn
this.dataSourceId = x.dataSourceId
this.description = x.description
this.displayName = x.displayName
this.documentEnrichmentConfiguration = x.documentEnrichmentConfiguration
this.error = x.error
this.indexId = x.indexId
this.roleArn = x.roleArn
this.status = x.status
this.syncSchedule = x.syncSchedule
this.type = x.type
this.updatedAt = x.updatedAt
this.vpcConfiguration = x.vpcConfiguration
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.qbusiness.model.GetDataSourceResponse = GetDataSourceResponse(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.ErrorDetail] inside the given [block]
*/
public fun error(block: aws.sdk.kotlin.services.qbusiness.model.ErrorDetail.Builder.() -> kotlin.Unit) {
this.error = aws.sdk.kotlin.services.qbusiness.model.ErrorDetail.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