Interface GetMigrationResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetMigrationResponse.Builder,GetMigrationResponse>,LexModelBuildingResponse.Builder,SdkBuilder<GetMigrationResponse.Builder,GetMigrationResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetMigrationResponse
public static interface GetMigrationResponse.Builder extends LexModelBuildingResponse.Builder, SdkPojo, CopyableBuilder<GetMigrationResponse.Builder,GetMigrationResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GetMigrationResponse.Builderalerts(Collection<MigrationAlert> alerts)A list of alerts and warnings that indicate issues with the migration for the Amazon Lex V1 bot to Amazon Lex V2.GetMigrationResponse.Builderalerts(Consumer<MigrationAlert.Builder>... alerts)A list of alerts and warnings that indicate issues with the migration for the Amazon Lex V1 bot to Amazon Lex V2.GetMigrationResponse.Builderalerts(MigrationAlert... alerts)A list of alerts and warnings that indicate issues with the migration for the Amazon Lex V1 bot to Amazon Lex V2.GetMigrationResponse.BuildermigrationId(String migrationId)The unique identifier of the migration.GetMigrationResponse.BuildermigrationStatus(String migrationStatus)Indicates the status of the migration.GetMigrationResponse.BuildermigrationStatus(MigrationStatus migrationStatus)Indicates the status of the migration.GetMigrationResponse.BuildermigrationStrategy(String migrationStrategy)The strategy used to conduct the migration.GetMigrationResponse.BuildermigrationStrategy(MigrationStrategy migrationStrategy)The strategy used to conduct the migration.GetMigrationResponse.BuildermigrationTimestamp(Instant migrationTimestamp)The date and time that the migration started.GetMigrationResponse.Builderv1BotLocale(String v1BotLocale)The locale of the Amazon Lex V1 bot migrated to Amazon Lex V2.GetMigrationResponse.Builderv1BotLocale(Locale v1BotLocale)The locale of the Amazon Lex V1 bot migrated to Amazon Lex V2.GetMigrationResponse.Builderv1BotName(String v1BotName)The name of the Amazon Lex V1 bot migrated to Amazon Lex V2.GetMigrationResponse.Builderv1BotVersion(String v1BotVersion)The version of the Amazon Lex V1 bot migrated to Amazon Lex V2.GetMigrationResponse.Builderv2BotId(String v2BotId)The unique identifier of the Amazon Lex V2 bot that the Amazon Lex V1 is being migrated to.GetMigrationResponse.Builderv2BotRole(String v2BotRole)The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.lexmodelbuilding.model.LexModelBuildingResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
migrationId
GetMigrationResponse.Builder migrationId(String migrationId)
The unique identifier of the migration. This is the same as the identifier used when calling the
GetMigrationoperation.- Parameters:
migrationId- The unique identifier of the migration. This is the same as the identifier used when calling theGetMigrationoperation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
v1BotName
GetMigrationResponse.Builder v1BotName(String v1BotName)
The name of the Amazon Lex V1 bot migrated to Amazon Lex V2.
- Parameters:
v1BotName- The name of the Amazon Lex V1 bot migrated to Amazon Lex V2.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
v1BotVersion
GetMigrationResponse.Builder v1BotVersion(String v1BotVersion)
The version of the Amazon Lex V1 bot migrated to Amazon Lex V2.
- Parameters:
v1BotVersion- The version of the Amazon Lex V1 bot migrated to Amazon Lex V2.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
v1BotLocale
GetMigrationResponse.Builder v1BotLocale(String v1BotLocale)
The locale of the Amazon Lex V1 bot migrated to Amazon Lex V2.
-
v1BotLocale
GetMigrationResponse.Builder v1BotLocale(Locale v1BotLocale)
The locale of the Amazon Lex V1 bot migrated to Amazon Lex V2.
-
v2BotId
GetMigrationResponse.Builder v2BotId(String v2BotId)
The unique identifier of the Amazon Lex V2 bot that the Amazon Lex V1 is being migrated to.
- Parameters:
v2BotId- The unique identifier of the Amazon Lex V2 bot that the Amazon Lex V1 is being migrated to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
v2BotRole
GetMigrationResponse.Builder v2BotRole(String v2BotRole)
The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot.
- Parameters:
v2BotRole- The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
migrationStatus
GetMigrationResponse.Builder migrationStatus(String migrationStatus)
Indicates the status of the migration. When the status is
COMPLETEthe 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.- Parameters:
migrationStatus- Indicates the status of the migration. When the status isCOMPLETEthe 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
MigrationStatus,MigrationStatus
-
migrationStatus
GetMigrationResponse.Builder migrationStatus(MigrationStatus migrationStatus)
Indicates the status of the migration. When the status is
COMPLETEthe 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.- Parameters:
migrationStatus- Indicates the status of the migration. When the status isCOMPLETEthe 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
MigrationStatus,MigrationStatus
-
migrationStrategy
GetMigrationResponse.Builder migrationStrategy(String 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.
- Parameters:
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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
MigrationStrategy,MigrationStrategy
-
-
migrationStrategy
GetMigrationResponse.Builder migrationStrategy(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.
- Parameters:
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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
MigrationStrategy,MigrationStrategy
-
-
migrationTimestamp
GetMigrationResponse.Builder migrationTimestamp(Instant migrationTimestamp)
The date and time that the migration started.
- Parameters:
migrationTimestamp- The date and time that the migration started.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alerts
GetMigrationResponse.Builder alerts(Collection<MigrationAlert> alerts)
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.
- Parameters:
alerts- 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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alerts
GetMigrationResponse.Builder alerts(MigrationAlert... alerts)
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.
- Parameters:
alerts- 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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alerts
GetMigrationResponse.Builder alerts(Consumer<MigrationAlert.Builder>... alerts)
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.
This is a convenience method that creates an instance of theMigrationAlert.Builderavoiding the need to create one manually viaMigrationAlert.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#alerts(List.) - Parameters:
alerts- a consumer that will call methods onMigrationAlert.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#alerts(java.util.Collection)
-
-