
commonMain.aws.sdk.kotlin.services.lexruntimev2.model.StartConversationResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lexruntimev2.model
import aws.smithy.kotlin.runtime.SdkDsl
import kotlinx.coroutines.flow.Flow
public class StartConversationResponse private constructor(builder: Builder) {
/**
* Represents the stream of events from Amazon Lex V2 to your application. The events are encoded as HTTP/2 data frames.
*/
public val responseEventStream: Flow? = builder.responseEventStream
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lexruntimev2.model.StartConversationResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StartConversationResponse(")
append("responseEventStream=$responseEventStream")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = responseEventStream?.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 StartConversationResponse
if (responseEventStream != other.responseEventStream) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lexruntimev2.model.StartConversationResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Represents the stream of events from Amazon Lex V2 to your application. The events are encoded as HTTP/2 data frames.
*/
public var responseEventStream: Flow? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lexruntimev2.model.StartConversationResponse) : this() {
this.responseEventStream = x.responseEventStream
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lexruntimev2.model.StartConversationResponse = StartConversationResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy