/*
* 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
* The unique identifier of the migration. This is the same as the identifier used when calling the
*
* The name of the Amazon Lex V1 bot migrated to Amazon Lex V2.
*
* The version of the Amazon Lex V1 bot migrated to Amazon Lex V2.
*
* The locale of the Amazon Lex V1 bot migrated to Amazon Lex V2.
*
* The unique identifier of the Amazon Lex V2 bot that the Amazon Lex V1 is being migrated to.
*
* The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot.
*
* Indicates the status of the migration. When the status is
* The strategy used to conduct the migration.
*
*
*
* The date and time that the migration started.
*
* 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.
*
* The unique identifier of the migration. This is the same as the identifier used when calling the
*
* The unique identifier of the migration. This is the same as the identifier used when calling the
*
* The unique identifier of the migration. This is the same as the identifier used when calling the
*
* The name of the Amazon Lex V1 bot migrated to Amazon Lex V2.
*
* The name of the Amazon Lex V1 bot migrated to Amazon Lex V2.
*
* The name of the Amazon Lex V1 bot migrated to Amazon Lex V2.
*
* The version of the Amazon Lex V1 bot migrated to Amazon Lex V2.
*
* The version of the Amazon Lex V1 bot migrated to Amazon Lex V2.
*
* The version of the Amazon Lex V1 bot migrated to Amazon Lex V2.
*
* The locale of the Amazon Lex V1 bot migrated to Amazon Lex V2.
*
* The locale of the Amazon Lex V1 bot migrated to Amazon Lex V2.
*
* The locale of the Amazon Lex V1 bot migrated to Amazon Lex V2.
*
* The locale of the Amazon Lex V1 bot migrated to Amazon Lex V2.
*
* The unique identifier of the Amazon Lex V2 bot that the Amazon Lex V1 is being migrated to.
*
* The unique identifier of the Amazon Lex V2 bot that the Amazon Lex V1 is being migrated to.
*
* The unique identifier of the Amazon Lex V2 bot that the Amazon Lex V1 is being migrated to.
*
* The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot.
*
* The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot.
*
* The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot.
*
* Indicates the status of the migration. When the status is
* Indicates the status of the migration. When the status is
* Indicates the status of the migration. When the status is
* Indicates the status of the migration. When the status is
* The strategy used to conduct the migration.
*
*
* GetMigration
operation.
* 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 migrationStrategy;
/**
* 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.
* GetMigration
operation.
* GetMigration
operation.
*/
public void setMigrationId(String migrationId) {
this.migrationId = migrationId;
}
/**
* GetMigration
operation.
* GetMigration
operation.
*/
public String getMigrationId() {
return this.migrationId;
}
/**
* GetMigration
operation.
* 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;
}
/**
* 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.
* 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;
}
/**
* 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.
* 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;
}
/**
* 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.
* 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;
}
/**
* 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.
* 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;
}
/**
*
*
*
* @param migrationStrategy
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* The date and time that the migration started. *
* * @param migrationTimestamp * The date and time that the migration started. */ public void setMigrationTimestamp(java.util.Date migrationTimestamp) { this.migrationTimestamp = migrationTimestamp; } /** ** The date and time that the migration started. *
* * @return The date and time that the migration started. */ public java.util.Date getMigrationTimestamp() { return this.migrationTimestamp; } /** ** The date and time that the migration started. *
* * @param migrationTimestamp * The date and time that the migration started. * @return Returns a reference to this object so that method calls can be chained together. */ public GetMigrationResult withMigrationTimestamp(java.util.Date migrationTimestamp) { setMigrationTimestamp(migrationTimestamp); return this; } /** ** 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. *
* * @return 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.
*/
public java.util.List
* 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.
*
* For more information, see Migrating a
* bot in the Amazon Lex V2 developer guide.
*/
public void setAlerts(java.util.Collection
* 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.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setAlerts(java.util.Collection)} or {@link #withAlerts(java.util.Collection)} if you want to override the
* existing values.
*
* For more information, see Migrating a
* bot in the Amazon Lex V2 developer guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetMigrationResult withAlerts(MigrationAlert... alerts) {
if (this.alerts == null) {
setAlerts(new java.util.ArrayList
* 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.
*
* For more information, see Migrating a
* bot in the Amazon Lex V2 developer guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetMigrationResult withAlerts(java.util.Collection