commonMain.aws.sdk.kotlin.services.lexmodelbuildingservice.model.BuiltinIntentMetadata.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
/**
* Provides metadata for a built-in intent.
*/
public class BuiltinIntentMetadata private constructor(builder: Builder) {
/**
* A unique identifier for the built-in intent. To find the signature for an intent, see [Standard Built-in Intents](https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/built-in-intent-ref/standard-intents) in the *Alexa Skills Kit*.
*/
public val signature: kotlin.String? = builder.signature
/**
* A list of identifiers for the 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.BuiltinIntentMetadata = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BuiltinIntentMetadata(")
append("signature=$signature,")
append("supportedLocales=$supportedLocales")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = signature?.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 BuiltinIntentMetadata
if (signature != other.signature) return false
if (supportedLocales != other.supportedLocales) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lexmodelbuildingservice.model.BuiltinIntentMetadata = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A unique identifier for the built-in intent. To find the signature for an intent, see [Standard Built-in Intents](https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/built-in-intent-ref/standard-intents) in the *Alexa Skills Kit*.
*/
public var signature: kotlin.String? = null
/**
* A list of identifiers for the locales that the intent supports.
*/
public var supportedLocales: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lexmodelbuildingservice.model.BuiltinIntentMetadata) : this() {
this.signature = x.signature
this.supportedLocales = x.supportedLocales
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lexmodelbuildingservice.model.BuiltinIntentMetadata = BuiltinIntentMetadata(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy