All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.lexmodelbuildingservice.model.GetBuiltinIntentsRequest.kt Maven / Gradle / Ivy

There is a newer version: 1.3.99
Show 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 GetBuiltinIntentsRequest private constructor(builder: Builder) {
    /**
     * A list of locales that the intent supports.
     */
    public val locale: aws.sdk.kotlin.services.lexmodelbuildingservice.model.Locale? = builder.locale
    /**
     * The maximum number of intents to return in the response. The default is 10.
     */
    public val maxResults: kotlin.Int? = builder.maxResults
    /**
     * A pagination token that fetches the next page of intents. If this API call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of intents, use the pagination token in the next request.
     */
    public val nextToken: kotlin.String? = builder.nextToken
    /**
     * Substring to match in built-in intent signatures. An intent will be returned if any part of its signature matches the substring. For example, "xyz" matches both "xyzabc" and "abcxyz." 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 signatureContains: kotlin.String? = builder.signatureContains

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lexmodelbuildingservice.model.GetBuiltinIntentsRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("GetBuiltinIntentsRequest(")
        append("locale=$locale,")
        append("maxResults=$maxResults,")
        append("nextToken=$nextToken,")
        append("signatureContains=$signatureContains")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = locale?.hashCode() ?: 0
        result = 31 * result + (maxResults ?: 0)
        result = 31 * result + (nextToken?.hashCode() ?: 0)
        result = 31 * result + (signatureContains?.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 GetBuiltinIntentsRequest

        if (locale != other.locale) return false
        if (maxResults != other.maxResults) return false
        if (nextToken != other.nextToken) return false
        if (signatureContains != other.signatureContains) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lexmodelbuildingservice.model.GetBuiltinIntentsRequest = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * A list of locales that the intent supports.
         */
        public var locale: aws.sdk.kotlin.services.lexmodelbuildingservice.model.Locale? = null
        /**
         * The maximum number of intents to return in the response. The default is 10.
         */
        public var maxResults: kotlin.Int? = null
        /**
         * A pagination token that fetches the next page of intents. If this API call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of intents, use the pagination token in the next request.
         */
        public var nextToken: kotlin.String? = null
        /**
         * Substring to match in built-in intent signatures. An intent will be returned if any part of its signature matches the substring. For example, "xyz" matches both "xyzabc" and "abcxyz." 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 signatureContains: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.lexmodelbuildingservice.model.GetBuiltinIntentsRequest) : this() {
            this.locale = x.locale
            this.maxResults = x.maxResults
            this.nextToken = x.nextToken
            this.signatureContains = x.signatureContains
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.lexmodelbuildingservice.model.GetBuiltinIntentsRequest = GetBuiltinIntentsRequest(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy