/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.lexmodelbuilding.model; import java.io.Serializable; import javax.annotation.Generated; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class GetMigrationResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable { /** *

* The unique identifier of the migration. This is the same as the identifier used when calling the * GetMigration operation. *

*/ private String migrationId; /** *

* The name of the Amazon Lex V1 bot migrated to Amazon Lex V2. *

*/ private String v1BotName; /** *

* The version of the Amazon Lex V1 bot migrated to Amazon Lex V2. *

*/ private String v1BotVersion; /** *

* The locale of the Amazon Lex V1 bot migrated to Amazon Lex V2. *

*/ private String v1BotLocale; /** *

* The unique identifier of the Amazon Lex V2 bot that the Amazon Lex V1 is being migrated to. *

*/ private String v2BotId; /** *

* The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot. *

*/ private String v2BotRole; /** *

* 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. *

*/ private String migrationStatus; /** *

* The strategy used to conduct the migration. *

* */ private String migrationStrategy; /** *

* The date and time that the migration started. *

*/ private java.util.Date migrationTimestamp; /** *

* 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 * in the Amazon Lex V2 developer guide. *

*/ private java.util.List alerts; /** *

* The unique identifier of the migration. This is the same as the identifier used when calling the * GetMigration operation. *

* * @param migrationId * The unique identifier of the migration. This is the same as the identifier used when calling the * GetMigration operation. */ public void setMigrationId(String migrationId) { this.migrationId = migrationId; } /** *

* The unique identifier of the migration. This is the same as the identifier used when calling the * GetMigration operation. *

* * @return The unique identifier of the migration. This is the same as the identifier used when calling the * GetMigration operation. */ public String getMigrationId() { return this.migrationId; } /** *

* The unique identifier of the migration. This is the same as the identifier used when calling the * GetMigration operation. *

* * @param migrationId * The unique identifier of the migration. This is the same as the identifier used when calling the * GetMigration operation. * @return Returns a reference to this object so that method calls can be chained together. */ public GetMigrationResult withMigrationId(String migrationId) { setMigrationId(migrationId); return this; } /** *

* The name of the Amazon Lex V1 bot migrated to Amazon Lex V2. *

* * @param v1BotName * The name of the Amazon Lex V1 bot migrated to Amazon Lex V2. */ public void setV1BotName(String v1BotName) { this.v1BotName = v1BotName; } /** *

* The name of the Amazon Lex V1 bot migrated to Amazon Lex V2. *

* * @return The name of the Amazon Lex V1 bot migrated to Amazon Lex V2. */ public String getV1BotName() { return this.v1BotName; } /** *

* The name of the Amazon Lex V1 bot migrated to Amazon Lex V2. *

* * @param v1BotName * The name of the Amazon Lex V1 bot migrated to Amazon Lex V2. * @return Returns a reference to this object so that method calls can be chained together. */ public GetMigrationResult withV1BotName(String v1BotName) { setV1BotName(v1BotName); return this; } /** *

* The version of the Amazon Lex V1 bot migrated to Amazon Lex V2. *

* * @param v1BotVersion * The version of the Amazon Lex V1 bot migrated to Amazon Lex V2. */ public void setV1BotVersion(String v1BotVersion) { this.v1BotVersion = v1BotVersion; } /** *

* The version of the Amazon Lex V1 bot migrated to Amazon Lex V2. *

* * @return The version of the Amazon Lex V1 bot migrated to Amazon Lex V2. */ public String getV1BotVersion() { return this.v1BotVersion; } /** *

* The version of the Amazon Lex V1 bot migrated to Amazon Lex V2. *

* * @param v1BotVersion * The version of the Amazon Lex V1 bot migrated to Amazon Lex V2. * @return Returns a reference to this object so that method calls can be chained together. */ public GetMigrationResult withV1BotVersion(String v1BotVersion) { setV1BotVersion(v1BotVersion); return this; } /** *

* The locale of the Amazon Lex V1 bot migrated to Amazon Lex V2. *

* * @param v1BotLocale * The locale of the Amazon Lex V1 bot migrated to Amazon Lex V2. * @see Locale */ public void setV1BotLocale(String v1BotLocale) { this.v1BotLocale = v1BotLocale; } /** *

* The locale of the Amazon Lex V1 bot migrated to Amazon Lex V2. *

* * @return The locale of the Amazon Lex V1 bot migrated to Amazon Lex V2. * @see Locale */ public String getV1BotLocale() { return this.v1BotLocale; } /** *

* The locale of the Amazon Lex V1 bot migrated to Amazon Lex V2. *

* * @param v1BotLocale * The locale of the Amazon Lex V1 bot migrated to Amazon Lex V2. * @return Returns a reference to this object so that method calls can be chained together. * @see Locale */ public GetMigrationResult withV1BotLocale(String v1BotLocale) { setV1BotLocale(v1BotLocale); return this; } /** *

* The locale of the Amazon Lex V1 bot migrated to Amazon Lex V2. *

* * @param v1BotLocale * The locale of the Amazon Lex V1 bot migrated to Amazon Lex V2. * @return Returns a reference to this object so that method calls can be chained together. * @see Locale */ public GetMigrationResult withV1BotLocale(Locale v1BotLocale) { this.v1BotLocale = v1BotLocale.toString(); return this; } /** *

* The unique identifier of the Amazon Lex V2 bot that the Amazon Lex V1 is being migrated to. *

* * @param v2BotId * The unique identifier of the Amazon Lex V2 bot that the Amazon Lex V1 is being migrated to. */ public void setV2BotId(String v2BotId) { this.v2BotId = v2BotId; } /** *

* The unique identifier of the Amazon Lex V2 bot that the Amazon Lex V1 is being migrated to. *

* * @return The unique identifier of the Amazon Lex V2 bot that the Amazon Lex V1 is being migrated to. */ public String getV2BotId() { return this.v2BotId; } /** *

* The unique identifier of the Amazon Lex V2 bot that the Amazon Lex V1 is being migrated to. *

* * @param v2BotId * The unique identifier of the Amazon Lex V2 bot that the Amazon Lex V1 is being migrated to. * @return Returns a reference to this object so that method calls can be chained together. */ public GetMigrationResult withV2BotId(String v2BotId) { setV2BotId(v2BotId); return this; } /** *

* The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot. *

* * @param v2BotRole * The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot. */ public void setV2BotRole(String v2BotRole) { this.v2BotRole = v2BotRole; } /** *

* The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot. *

* * @return The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot. */ public String getV2BotRole() { return this.v2BotRole; } /** *

* The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot. *

* * @param v2BotRole * The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot. * @return Returns a reference to this object so that method calls can be chained together. */ public GetMigrationResult withV2BotRole(String v2BotRole) { setV2BotRole(v2BotRole); return this; } /** *

* 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. *

* * @param migrationStatus * 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. * @see MigrationStatus */ public void setMigrationStatus(String migrationStatus) { this.migrationStatus = migrationStatus; } /** *

* 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. *

* * @return 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. * @see MigrationStatus */ public String getMigrationStatus() { return this.migrationStatus; } /** *

* 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. *

* * @param migrationStatus * 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. * @return Returns a reference to this object so that method calls can be chained together. * @see MigrationStatus */ public GetMigrationResult withMigrationStatus(String migrationStatus) { setMigrationStatus(migrationStatus); return this; } /** *

* 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. *

* * @param migrationStatus * 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. * @return Returns a reference to this object so that method calls can be chained together. * @see MigrationStatus */ public GetMigrationResult withMigrationStatus(MigrationStatus migrationStatus) { this.migrationStatus = migrationStatus.toString(); return this; } /** *

* The strategy used to conduct the migration. *

* * * @param migrationStrategy * The strategy used to conduct the migration.

*