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

commonMain.aws.sdk.kotlin.services.lexmodelbuildingservice.model.MigrationAlert.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

/**
 * Provides information about alerts and warnings that Amazon Lex sends during a migration. The alerts include information about how to resolve the issue.
 */
public class MigrationAlert private constructor(builder: Builder) {
    /**
     * Additional details about the alert.
     */
    public val details: List? = builder.details
    /**
     * A message that describes why the alert was issued.
     */
    public val message: kotlin.String? = builder.message
    /**
     * A link to the Amazon Lex documentation that describes how to resolve the alert.
     */
    public val referenceUrls: List? = builder.referenceUrls
    /**
     * The type of alert. There are two kinds of alerts:
     * + `ERROR` - There was an issue with the migration that can't be resolved. The migration stops.
     * + `WARN` - There was an issue with the migration that requires manual changes to the new Amazon Lex V2 bot. The migration continues.
     */
    public val type: aws.sdk.kotlin.services.lexmodelbuildingservice.model.MigrationAlertType? = builder.type

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

    override fun toString(): kotlin.String = buildString {
        append("MigrationAlert(")
        append("details=$details,")
        append("message=$message,")
        append("referenceUrls=$referenceUrls,")
        append("type=$type")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = details?.hashCode() ?: 0
        result = 31 * result + (message?.hashCode() ?: 0)
        result = 31 * result + (referenceUrls?.hashCode() ?: 0)
        result = 31 * result + (type?.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 MigrationAlert

        if (details != other.details) return false
        if (message != other.message) return false
        if (referenceUrls != other.referenceUrls) return false
        if (type != other.type) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Additional details about the alert.
         */
        public var details: List? = null
        /**
         * A message that describes why the alert was issued.
         */
        public var message: kotlin.String? = null
        /**
         * A link to the Amazon Lex documentation that describes how to resolve the alert.
         */
        public var referenceUrls: List? = null
        /**
         * The type of alert. There are two kinds of alerts:
         * + `ERROR` - There was an issue with the migration that can't be resolved. The migration stops.
         * + `WARN` - There was an issue with the migration that requires manual changes to the new Amazon Lex V2 bot. The migration continues.
         */
        public var type: aws.sdk.kotlin.services.lexmodelbuildingservice.model.MigrationAlertType? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.lexmodelbuildingservice.model.MigrationAlert) : this() {
            this.details = x.details
            this.message = x.message
            this.referenceUrls = x.referenceUrls
            this.type = x.type
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy