
commonMain.aws.sdk.kotlin.services.qbusiness.model.Index.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.time.Instant
/**
* Summary information for your Amazon Q Business index.
*/
public class Index private constructor(builder: Builder) {
/**
* The Unix timestamp when the index was created.
*/
public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
/**
* The name of the index.
*/
public val displayName: kotlin.String? = builder.displayName
/**
* The identifier for the index.
*/
public val indexId: kotlin.String? = builder.indexId
/**
* The current status of the index. When the status is `ACTIVE`, the index is ready.
*/
public val status: aws.sdk.kotlin.services.qbusiness.model.IndexStatus? = builder.status
/**
* The Unix timestamp when the index 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.qbusiness.model.Index = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Index(")
append("createdAt=$createdAt,")
append("displayName=$displayName,")
append("indexId=$indexId,")
append("status=$status,")
append("updatedAt=$updatedAt")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = createdAt?.hashCode() ?: 0
result = 31 * result + (displayName?.hashCode() ?: 0)
result = 31 * result + (indexId?.hashCode() ?: 0)
result = 31 * result + (status?.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 Index
if (createdAt != other.createdAt) return false
if (displayName != other.displayName) return false
if (indexId != other.indexId) return false
if (status != other.status) return false
if (updatedAt != other.updatedAt) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.qbusiness.model.Index = Builder(this).apply(block).build()
public class Builder {
/**
* The Unix timestamp when the index was created.
*/
public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The name of the index.
*/
public var displayName: kotlin.String? = null
/**
* The identifier for the index.
*/
public var indexId: kotlin.String? = null
/**
* The current status of the index. When the status is `ACTIVE`, the index is ready.
*/
public var status: aws.sdk.kotlin.services.qbusiness.model.IndexStatus? = null
/**
* The Unix timestamp when the index was last updated.
*/
public var updatedAt: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.qbusiness.model.Index) : this() {
this.createdAt = x.createdAt
this.displayName = x.displayName
this.indexId = x.indexId
this.status = x.status
this.updatedAt = x.updatedAt
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.qbusiness.model.Index = Index(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy