commonMain.aws.sdk.kotlin.services.lexmodelbuildingservice.model.GetMigrationResponse.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
import aws.smithy.kotlin.runtime.time.Instant
public class GetMigrationResponse private constructor(builder: Builder) {
/**
* A list of alerts and warnings that indicate issues with the migration for the Amazon Lex V1 bot to Amazon Lex V2. You receive a warning when an Amazon Lex V1 feature has a different implementation if Amazon Lex V2.
*
* For more information, see [Migrating a bot](https://docs.aws.amazon.com/lexv2/latest/dg/migrate.html) in the *Amazon Lex V2 developer guide*.
*/
public val alerts: List? = builder.alerts
/**
* The unique identifier of the migration. This is the same as the identifier used when calling the `GetMigration` operation.
*/
public val migrationId: kotlin.String? = builder.migrationId
/**
* Indicates the status of the migration. When the status is `COMPLETE` the migration is finished and the bot is available in Amazon Lex V2. There may be alerts and warnings that need to be resolved to complete the migration.
*/
public val migrationStatus: aws.sdk.kotlin.services.lexmodelbuildingservice.model.MigrationStatus? = builder.migrationStatus
/**
* The strategy used to conduct the migration.
* + `CREATE_NEW` - Creates a new Amazon Lex V2 bot and migrates the Amazon Lex V1 bot to the new bot.
* + `UPDATE_EXISTING` - Overwrites the existing Amazon Lex V2 bot metadata and the locale being migrated. It doesn't change any other locales in the Amazon Lex V2 bot. If the locale doesn't exist, a new locale is created in the Amazon Lex V2 bot.
*/
public val migrationStrategy: aws.sdk.kotlin.services.lexmodelbuildingservice.model.MigrationStrategy? = builder.migrationStrategy
/**
* The date and time that the migration started.
*/
public val migrationTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.migrationTimestamp
/**
* The locale of the Amazon Lex V1 bot migrated to Amazon Lex V2.
*/
public val v1BotLocale: aws.sdk.kotlin.services.lexmodelbuildingservice.model.Locale? = builder.v1BotLocale
/**
* The name of the Amazon Lex V1 bot migrated to Amazon Lex V2.
*/
public val v1BotName: kotlin.String? = builder.v1BotName
/**
* The version of the Amazon Lex V1 bot migrated to Amazon Lex V2.
*/
public val v1BotVersion: kotlin.String? = builder.v1BotVersion
/**
* The unique identifier of the Amazon Lex V2 bot that the Amazon Lex V1 is being migrated to.
*/
public val v2BotId: kotlin.String? = builder.v2BotId
/**
* The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot.
*/
public val v2BotRole: kotlin.String? = builder.v2BotRole
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lexmodelbuildingservice.model.GetMigrationResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetMigrationResponse(")
append("alerts=$alerts,")
append("migrationId=$migrationId,")
append("migrationStatus=$migrationStatus,")
append("migrationStrategy=$migrationStrategy,")
append("migrationTimestamp=$migrationTimestamp,")
append("v1BotLocale=$v1BotLocale,")
append("v1BotName=$v1BotName,")
append("v1BotVersion=$v1BotVersion,")
append("v2BotId=$v2BotId,")
append("v2BotRole=$v2BotRole")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = alerts?.hashCode() ?: 0
result = 31 * result + (migrationId?.hashCode() ?: 0)
result = 31 * result + (migrationStatus?.hashCode() ?: 0)
result = 31 * result + (migrationStrategy?.hashCode() ?: 0)
result = 31 * result + (migrationTimestamp?.hashCode() ?: 0)
result = 31 * result + (v1BotLocale?.hashCode() ?: 0)
result = 31 * result + (v1BotName?.hashCode() ?: 0)
result = 31 * result + (v1BotVersion?.hashCode() ?: 0)
result = 31 * result + (v2BotId?.hashCode() ?: 0)
result = 31 * result + (v2BotRole?.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 GetMigrationResponse
if (alerts != other.alerts) return false
if (migrationId != other.migrationId) return false
if (migrationStatus != other.migrationStatus) return false
if (migrationStrategy != other.migrationStrategy) return false
if (migrationTimestamp != other.migrationTimestamp) return false
if (v1BotLocale != other.v1BotLocale) return false
if (v1BotName != other.v1BotName) return false
if (v1BotVersion != other.v1BotVersion) return false
if (v2BotId != other.v2BotId) return false
if (v2BotRole != other.v2BotRole) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lexmodelbuildingservice.model.GetMigrationResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A list of alerts and warnings that indicate issues with the migration for the Amazon Lex V1 bot to Amazon Lex V2. You receive a warning when an Amazon Lex V1 feature has a different implementation if Amazon Lex V2.
*
* For more information, see [Migrating a bot](https://docs.aws.amazon.com/lexv2/latest/dg/migrate.html) in the *Amazon Lex V2 developer guide*.
*/
public var alerts: List? = null
/**
* The unique identifier of the migration. This is the same as the identifier used when calling the `GetMigration` operation.
*/
public var migrationId: kotlin.String? = null
/**
* Indicates the status of the migration. When the status is `COMPLETE` the migration is finished and the bot is available in Amazon Lex V2. There may be alerts and warnings that need to be resolved to complete the migration.
*/
public var migrationStatus: aws.sdk.kotlin.services.lexmodelbuildingservice.model.MigrationStatus? = null
/**
* The strategy used to conduct the migration.
* + `CREATE_NEW` - Creates a new Amazon Lex V2 bot and migrates the Amazon Lex V1 bot to the new bot.
* + `UPDATE_EXISTING` - Overwrites the existing Amazon Lex V2 bot metadata and the locale being migrated. It doesn't change any other locales in the Amazon Lex V2 bot. If the locale doesn't exist, a new locale is created in the Amazon Lex V2 bot.
*/
public var migrationStrategy: aws.sdk.kotlin.services.lexmodelbuildingservice.model.MigrationStrategy? = null
/**
* The date and time that the migration started.
*/
public var migrationTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The locale of the Amazon Lex V1 bot migrated to Amazon Lex V2.
*/
public var v1BotLocale: aws.sdk.kotlin.services.lexmodelbuildingservice.model.Locale? = null
/**
* The name of the Amazon Lex V1 bot migrated to Amazon Lex V2.
*/
public var v1BotName: kotlin.String? = null
/**
* The version of the Amazon Lex V1 bot migrated to Amazon Lex V2.
*/
public var v1BotVersion: kotlin.String? = null
/**
* The unique identifier of the Amazon Lex V2 bot that the Amazon Lex V1 is being migrated to.
*/
public var v2BotId: kotlin.String? = null
/**
* The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot.
*/
public var v2BotRole: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lexmodelbuildingservice.model.GetMigrationResponse) : this() {
this.alerts = x.alerts
this.migrationId = x.migrationId
this.migrationStatus = x.migrationStatus
this.migrationStrategy = x.migrationStrategy
this.migrationTimestamp = x.migrationTimestamp
this.v1BotLocale = x.v1BotLocale
this.v1BotName = x.v1BotName
this.v1BotVersion = x.v1BotVersion
this.v2BotId = x.v2BotId
this.v2BotRole = x.v2BotRole
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lexmodelbuildingservice.model.GetMigrationResponse = GetMigrationResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy