commonMain.aws.sdk.kotlin.services.lexmodelbuildingservice.model.GetBuiltinIntentResponse.kt Maven / Gradle / Ivy
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lexmodelbuildingservice.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetBuiltinIntentResponse private constructor(builder: Builder) {
/**
* The unique identifier for a built-in intent.
*/
public val signature: kotlin.String? = builder.signature
/**
* An array of `BuiltinIntentSlot` objects, one entry for each slot type in the intent.
*/
public val slots: List? = builder.slots
/**
* A list of locales that the intent supports.
*/
public val supportedLocales: List? = builder.supportedLocales
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lexmodelbuildingservice.model.GetBuiltinIntentResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetBuiltinIntentResponse(")
append("signature=$signature,")
append("slots=$slots,")
append("supportedLocales=$supportedLocales")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = signature?.hashCode() ?: 0
result = 31 * result + (slots?.hashCode() ?: 0)
result = 31 * result + (supportedLocales?.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 GetBuiltinIntentResponse
if (signature != other.signature) return false
if (slots != other.slots) return false
if (supportedLocales != other.supportedLocales) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lexmodelbuildingservice.model.GetBuiltinIntentResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The unique identifier for a built-in intent.
*/
public var signature: kotlin.String? = null
/**
* An array of `BuiltinIntentSlot` objects, one entry for each slot type in the intent.
*/
public var slots: List? = null
/**
* A list of locales that the intent supports.
*/
public var supportedLocales: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lexmodelbuildingservice.model.GetBuiltinIntentResponse) : this() {
this.signature = x.signature
this.slots = x.slots
this.supportedLocales = x.supportedLocales
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lexmodelbuildingservice.model.GetBuiltinIntentResponse = GetBuiltinIntentResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy