/* * 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; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class StartMigrationRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The name of the Amazon Lex V1 bot that you are migrating to Amazon Lex V2. *
*/ private String v1BotName; /** *
* The version of the bot to migrate to Amazon Lex V2. You can migrate the $LATEST
version as well as
* any numbered version.
*
* The name of the Amazon Lex V2 bot that you are migrating the Amazon Lex V1 bot to. *
*
* If the Amazon Lex V2 bot doesn't exist, you must use the CREATE_NEW
migration strategy.
*
* If the Amazon Lex V2 bot exists, you must use the UPDATE_EXISTING
migration strategy to change the
* contents of the Amazon Lex V2 bot.
*
* The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot. *
*/ private String v2BotRole; /** ** 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.
*
* The name of the Amazon Lex V1 bot that you are migrating to Amazon Lex V2. *
* * @param v1BotName * The name of the Amazon Lex V1 bot that you are migrating to Amazon Lex V2. */ public void setV1BotName(String v1BotName) { this.v1BotName = v1BotName; } /** ** The name of the Amazon Lex V1 bot that you are migrating to Amazon Lex V2. *
* * @return The name of the Amazon Lex V1 bot that you are migrating to Amazon Lex V2. */ public String getV1BotName() { return this.v1BotName; } /** ** The name of the Amazon Lex V1 bot that you are migrating to Amazon Lex V2. *
* * @param v1BotName * The name of the Amazon Lex V1 bot that you are migrating to Amazon Lex V2. * @return Returns a reference to this object so that method calls can be chained together. */ public StartMigrationRequest withV1BotName(String v1BotName) { setV1BotName(v1BotName); return this; } /** *
* The version of the bot to migrate to Amazon Lex V2. You can migrate the $LATEST
version as well as
* any numbered version.
*
$LATEST
version as
* well as any numbered version.
*/
public void setV1BotVersion(String v1BotVersion) {
this.v1BotVersion = v1BotVersion;
}
/**
*
* The version of the bot to migrate to Amazon Lex V2. You can migrate the $LATEST
version as well as
* any numbered version.
*
$LATEST
version as
* well as any numbered version.
*/
public String getV1BotVersion() {
return this.v1BotVersion;
}
/**
*
* The version of the bot to migrate to Amazon Lex V2. You can migrate the $LATEST
version as well as
* any numbered version.
*
$LATEST
version as
* well as any numbered version.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StartMigrationRequest withV1BotVersion(String v1BotVersion) {
setV1BotVersion(v1BotVersion);
return this;
}
/**
* * The name of the Amazon Lex V2 bot that you are migrating the Amazon Lex V1 bot to. *
*
* If the Amazon Lex V2 bot doesn't exist, you must use the CREATE_NEW
migration strategy.
*
* If the Amazon Lex V2 bot exists, you must use the UPDATE_EXISTING
migration strategy to change the
* contents of the Amazon Lex V2 bot.
*
* If the Amazon Lex V2 bot doesn't exist, you must use the CREATE_NEW
migration strategy.
*
* If the Amazon Lex V2 bot exists, you must use the UPDATE_EXISTING
migration strategy to
* change the contents of the Amazon Lex V2 bot.
*
* The name of the Amazon Lex V2 bot that you are migrating the Amazon Lex V1 bot to. *
*
* If the Amazon Lex V2 bot doesn't exist, you must use the CREATE_NEW
migration strategy.
*
* If the Amazon Lex V2 bot exists, you must use the UPDATE_EXISTING
migration strategy to change the
* contents of the Amazon Lex V2 bot.
*
* If the Amazon Lex V2 bot doesn't exist, you must use the CREATE_NEW
migration strategy.
*
* If the Amazon Lex V2 bot exists, you must use the UPDATE_EXISTING
migration strategy to
* change the contents of the Amazon Lex V2 bot.
*
* The name of the Amazon Lex V2 bot that you are migrating the Amazon Lex V1 bot to. *
*
* If the Amazon Lex V2 bot doesn't exist, you must use the CREATE_NEW
migration strategy.
*
* If the Amazon Lex V2 bot exists, you must use the UPDATE_EXISTING
migration strategy to change the
* contents of the Amazon Lex V2 bot.
*
* If the Amazon Lex V2 bot doesn't exist, you must use the CREATE_NEW
migration strategy.
*
* If the Amazon Lex V2 bot exists, you must use the UPDATE_EXISTING
migration strategy to
* change the contents of the Amazon Lex V2 bot.
*
* 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 StartMigrationRequest withV2BotRole(String v2BotRole) { setV2BotRole(v2BotRole); return this; } /** ** 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.
*