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

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

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.lexmodelbuildingservice.model

import aws.smithy.kotlin.runtime.SdkDsl

public class GetMigrationsRequest private constructor(builder: Builder) {
    /**
     * The maximum number of migrations to return in the response. The default is 10.
     */
    public val maxResults: kotlin.Int? = builder.maxResults
    /**
     * Filters the list to contain only migrations in the specified state.
     */
    public val migrationStatusEquals: aws.sdk.kotlin.services.lexmodelbuildingservice.model.MigrationStatus? = builder.migrationStatusEquals
    /**
     * A pagination token that fetches the next page of migrations. If the response to this operation is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of migrations, specify the pagination token in the request.
     */
    public val nextToken: kotlin.String? = builder.nextToken
    /**
     * The field to sort the list of migrations by. You can sort by the Amazon Lex V1 bot name or the date and time that the migration was started.
     */
    public val sortByAttribute: aws.sdk.kotlin.services.lexmodelbuildingservice.model.MigrationSortAttribute? = builder.sortByAttribute
    /**
     * The order so sort the list.
     */
    public val sortByOrder: aws.sdk.kotlin.services.lexmodelbuildingservice.model.SortOrder? = builder.sortByOrder
    /**
     * Filters the list to contain only bots whose name contains the specified string. The string is matched anywhere in bot name.
     */
    public val v1BotNameContains: kotlin.String? = builder.v1BotNameContains

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

    override fun toString(): kotlin.String = buildString {
        append("GetMigrationsRequest(")
        append("maxResults=$maxResults,")
        append("migrationStatusEquals=$migrationStatusEquals,")
        append("nextToken=$nextToken,")
        append("sortByAttribute=$sortByAttribute,")
        append("sortByOrder=$sortByOrder,")
        append("v1BotNameContains=$v1BotNameContains")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = maxResults ?: 0
        result = 31 * result + (migrationStatusEquals?.hashCode() ?: 0)
        result = 31 * result + (nextToken?.hashCode() ?: 0)
        result = 31 * result + (sortByAttribute?.hashCode() ?: 0)
        result = 31 * result + (sortByOrder?.hashCode() ?: 0)
        result = 31 * result + (v1BotNameContains?.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 GetMigrationsRequest

        if (maxResults != other.maxResults) return false
        if (migrationStatusEquals != other.migrationStatusEquals) return false
        if (nextToken != other.nextToken) return false
        if (sortByAttribute != other.sortByAttribute) return false
        if (sortByOrder != other.sortByOrder) return false
        if (v1BotNameContains != other.v1BotNameContains) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The maximum number of migrations to return in the response. The default is 10.
         */
        public var maxResults: kotlin.Int? = null
        /**
         * Filters the list to contain only migrations in the specified state.
         */
        public var migrationStatusEquals: aws.sdk.kotlin.services.lexmodelbuildingservice.model.MigrationStatus? = null
        /**
         * A pagination token that fetches the next page of migrations. If the response to this operation is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of migrations, specify the pagination token in the request.
         */
        public var nextToken: kotlin.String? = null
        /**
         * The field to sort the list of migrations by. You can sort by the Amazon Lex V1 bot name or the date and time that the migration was started.
         */
        public var sortByAttribute: aws.sdk.kotlin.services.lexmodelbuildingservice.model.MigrationSortAttribute? = null
        /**
         * The order so sort the list.
         */
        public var sortByOrder: aws.sdk.kotlin.services.lexmodelbuildingservice.model.SortOrder? = null
        /**
         * Filters the list to contain only bots whose name contains the specified string. The string is matched anywhere in bot name.
         */
        public var v1BotNameContains: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.lexmodelbuildingservice.model.GetMigrationsRequest) : this() {
            this.maxResults = x.maxResults
            this.migrationStatusEquals = x.migrationStatusEquals
            this.nextToken = x.nextToken
            this.sortByAttribute = x.sortByAttribute
            this.sortByOrder = x.sortByOrder
            this.v1BotNameContains = x.v1BotNameContains
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy