
commonMain.aws.sdk.kotlin.services.kendra.model.DataSourceSummary.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.kendra.model
import aws.smithy.kotlin.runtime.time.Instant
/**
* Summary information for a Amazon Kendra data source.
*/
public class DataSourceSummary private constructor(builder: Builder) {
/**
* The Unix timestamp when the data source connector was created.
*/
public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
/**
* The identifier for the data source.
*/
public val id: kotlin.String? = builder.id
/**
* The code for a language. This shows a supported language for all documents in the data source. English is supported by default. For more information on supported languages, including their codes, see [Adding documents in languages other than English](https://docs.aws.amazon.com/kendra/latest/dg/in-adding-languages.html).
*/
public val languageCode: kotlin.String? = builder.languageCode
/**
* The name of the data source.
*/
public val name: kotlin.String? = builder.name
/**
* The status of the data source. When the status is `ACTIVE` the data source is ready to use.
*/
public val status: aws.sdk.kotlin.services.kendra.model.DataSourceStatus? = builder.status
/**
* The type of the data source.
*/
public val type: aws.sdk.kotlin.services.kendra.model.DataSourceType? = builder.type
/**
* The Unix timestamp when the data source connector was last updated.
*/
public val updatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.updatedAt
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kendra.model.DataSourceSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DataSourceSummary(")
append("createdAt=$createdAt,")
append("id=$id,")
append("languageCode=$languageCode,")
append("name=$name,")
append("status=$status,")
append("type=$type,")
append("updatedAt=$updatedAt")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = createdAt?.hashCode() ?: 0
result = 31 * result + (id?.hashCode() ?: 0)
result = 31 * result + (languageCode?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (type?.hashCode() ?: 0)
result = 31 * result + (updatedAt?.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 DataSourceSummary
if (createdAt != other.createdAt) return false
if (id != other.id) return false
if (languageCode != other.languageCode) return false
if (name != other.name) return false
if (status != other.status) return false
if (type != other.type) return false
if (updatedAt != other.updatedAt) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kendra.model.DataSourceSummary = Builder(this).apply(block).build()
public class Builder {
/**
* The Unix timestamp when the data source connector was created.
*/
public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The identifier for the data source.
*/
public var id: kotlin.String? = null
/**
* The code for a language. This shows a supported language for all documents in the data source. English is supported by default. For more information on supported languages, including their codes, see [Adding documents in languages other than English](https://docs.aws.amazon.com/kendra/latest/dg/in-adding-languages.html).
*/
public var languageCode: kotlin.String? = null
/**
* The name of the data source.
*/
public var name: kotlin.String? = null
/**
* The status of the data source. When the status is `ACTIVE` the data source is ready to use.
*/
public var status: aws.sdk.kotlin.services.kendra.model.DataSourceStatus? = null
/**
* The type of the data source.
*/
public var type: aws.sdk.kotlin.services.kendra.model.DataSourceType? = null
/**
* The Unix timestamp when the data source connector was last updated.
*/
public var updatedAt: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kendra.model.DataSourceSummary) : this() {
this.createdAt = x.createdAt
this.id = x.id
this.languageCode = x.languageCode
this.name = x.name
this.status = x.status
this.type = x.type
this.updatedAt = x.updatedAt
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kendra.model.DataSourceSummary = DataSourceSummary(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy