Class StartMigrationRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.lexmodelbuilding.model.LexModelBuildingRequest
-
- software.amazon.awssdk.services.lexmodelbuilding.model.StartMigrationRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<StartMigrationRequest.Builder,StartMigrationRequest>
@Generated("software.amazon.awssdk:codegen") public final class StartMigrationRequest extends LexModelBuildingRequest implements ToCopyableBuilder<StartMigrationRequest.Builder,StartMigrationRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceStartMigrationRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StartMigrationRequest.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()MigrationStrategymigrationStrategy()The strategy used to conduct the migration.StringmigrationStrategyAsString()The strategy used to conduct the migration.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends StartMigrationRequest.Builder>serializableBuilderClass()StartMigrationRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.Stringv1BotName()The name of the Amazon Lex V1 bot that you are migrating to Amazon Lex V2.Stringv1BotVersion()The version of the bot to migrate to Amazon Lex V2.Stringv2BotName()The name of the Amazon Lex V2 bot that you are migrating the Amazon Lex V1 bot to.Stringv2BotRole()The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
v1BotName
public final String v1BotName()
The name of the Amazon Lex V1 bot that you are migrating to Amazon Lex V2.
- Returns:
- The name of the Amazon Lex V1 bot that you are migrating to Amazon Lex V2.
-
v1BotVersion
public final String v1BotVersion()
The version of the bot to migrate to Amazon Lex V2. You can migrate the
$LATESTversion as well as any numbered version.- Returns:
- The version of the bot to migrate to Amazon Lex V2. You can migrate the
$LATESTversion as well as any numbered version.
-
v2BotName
public final String v2BotName()
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_NEWmigration strategy. -
If the Amazon Lex V2 bot exists, you must use the
UPDATE_EXISTINGmigration strategy to change the contents of the Amazon Lex V2 bot.
- Returns:
- 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_NEWmigration strategy. -
If the Amazon Lex V2 bot exists, you must use the
UPDATE_EXISTINGmigration strategy to change the contents of the Amazon Lex V2 bot.
-
-
-
v2BotRole
public final String v2BotRole()
The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot.
- Returns:
- The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot.
-
migrationStrategy
public final MigrationStrategy 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.
If the service returns an enum value that is not available in the current SDK version,
migrationStrategywill returnMigrationStrategy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommigrationStrategyAsString().- Returns:
- 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.
-
- See Also:
MigrationStrategy
-
-
migrationStrategyAsString
public final String migrationStrategyAsString()
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.
If the service returns an enum value that is not available in the current SDK version,
migrationStrategywill returnMigrationStrategy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommigrationStrategyAsString().- Returns:
- 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.
-
- See Also:
MigrationStrategy
-
-
toBuilder
public StartMigrationRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<StartMigrationRequest.Builder,StartMigrationRequest>- Specified by:
toBuilderin classLexModelBuildingRequest
-
builder
public static StartMigrationRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends StartMigrationRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-