
commonMain.aws.sdk.kotlin.services.qbusiness.model.Conversation.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
/**
* A conversation in an Amazon Q Business application.
*/
public class Conversation private constructor(builder: Builder) {
/**
* The identifier of the Amazon Q Business conversation.
*/
public val conversationId: kotlin.String? = builder.conversationId
/**
* The start time of the conversation.
*/
public val startTime: aws.smithy.kotlin.runtime.time.Instant? = builder.startTime
/**
* The title of the conversation.
*/
public val title: kotlin.String? = builder.title
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.qbusiness.model.Conversation = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Conversation(")
append("conversationId=$conversationId,")
append("startTime=$startTime,")
append("title=$title")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = conversationId?.hashCode() ?: 0
result = 31 * result + (startTime?.hashCode() ?: 0)
result = 31 * result + (title?.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 Conversation
if (conversationId != other.conversationId) return false
if (startTime != other.startTime) return false
if (title != other.title) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.qbusiness.model.Conversation = Builder(this).apply(block).build()
public class Builder {
/**
* The identifier of the Amazon Q Business conversation.
*/
public var conversationId: kotlin.String? = null
/**
* The start time of the conversation.
*/
public var startTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The title of the conversation.
*/
public var title: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.qbusiness.model.Conversation) : this() {
this.conversationId = x.conversationId
this.startTime = x.startTime
this.title = x.title
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.qbusiness.model.Conversation = Conversation(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy