
commonMain.aws.sdk.kotlin.services.qbusiness.model.GroupStatusDetail.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
/**
* Provides the details of a group's status.
*/
public class GroupStatusDetail private constructor(builder: Builder) {
/**
* The details of an error associated a group status.
*/
public val errorDetail: aws.sdk.kotlin.services.qbusiness.model.ErrorDetail? = builder.errorDetail
/**
* The Unix timestamp when the Amazon Q Business application was last updated.
*/
public val lastUpdatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUpdatedAt
/**
* The status of a group.
*/
public val status: aws.sdk.kotlin.services.qbusiness.model.GroupStatus? = builder.status
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.qbusiness.model.GroupStatusDetail = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GroupStatusDetail(")
append("errorDetail=$errorDetail,")
append("lastUpdatedAt=$lastUpdatedAt,")
append("status=$status")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = errorDetail?.hashCode() ?: 0
result = 31 * result + (lastUpdatedAt?.hashCode() ?: 0)
result = 31 * result + (status?.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 GroupStatusDetail
if (errorDetail != other.errorDetail) return false
if (lastUpdatedAt != other.lastUpdatedAt) return false
if (status != other.status) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.qbusiness.model.GroupStatusDetail = Builder(this).apply(block).build()
public class Builder {
/**
* The details of an error associated a group status.
*/
public var errorDetail: aws.sdk.kotlin.services.qbusiness.model.ErrorDetail? = null
/**
* The Unix timestamp when the Amazon Q Business application was last updated.
*/
public var lastUpdatedAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The status of a group.
*/
public var status: aws.sdk.kotlin.services.qbusiness.model.GroupStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.qbusiness.model.GroupStatusDetail) : this() {
this.errorDetail = x.errorDetail
this.lastUpdatedAt = x.lastUpdatedAt
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.qbusiness.model.GroupStatusDetail = GroupStatusDetail(this)
/**
* construct an [aws.sdk.kotlin.services.qbusiness.model.ErrorDetail] inside the given [block]
*/
public fun errorDetail(block: aws.sdk.kotlin.services.qbusiness.model.ErrorDetail.Builder.() -> kotlin.Unit) {
this.errorDetail = aws.sdk.kotlin.services.qbusiness.model.ErrorDetail.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy