commonMain.aws.sdk.kotlin.services.wisdom.model.GetQuickResponseResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wisdom-jvm Show documentation
Show all versions of wisdom-jvm Show documentation
The AWS SDK for Kotlin client for Wisdom
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.wisdom.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetQuickResponseResponse private constructor(builder: Builder) {
/**
* The quick response.
*/
public val quickResponse: aws.sdk.kotlin.services.wisdom.model.QuickResponseData? = builder.quickResponse
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.wisdom.model.GetQuickResponseResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetQuickResponseResponse(")
append("quickResponse=$quickResponse")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = quickResponse?.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 GetQuickResponseResponse
if (quickResponse != other.quickResponse) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.wisdom.model.GetQuickResponseResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The quick response.
*/
public var quickResponse: aws.sdk.kotlin.services.wisdom.model.QuickResponseData? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.wisdom.model.GetQuickResponseResponse) : this() {
this.quickResponse = x.quickResponse
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.wisdom.model.GetQuickResponseResponse = GetQuickResponseResponse(this)
/**
* construct an [aws.sdk.kotlin.services.wisdom.model.QuickResponseData] inside the given [block]
*/
public fun quickResponse(block: aws.sdk.kotlin.services.wisdom.model.QuickResponseData.Builder.() -> kotlin.Unit) {
this.quickResponse = aws.sdk.kotlin.services.wisdom.model.QuickResponseData.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}