Interface GetTableMigrationResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetTableMigrationResponse.Builder,,GetTableMigrationResponse> S3TablesResponse.Builder,SdkBuilder<GetTableMigrationResponse.Builder,,GetTableMigrationResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetTableMigrationResponse
-
Method Summary
Modifier and TypeMethodDescriptionThe date and time that the migration was created.dataMigration(Consumer<DataMigrationOverview.Builder> dataMigration) The maintenance settings and migration policies for the destination table.dataMigration(DataMigrationOverview dataMigration) The maintenance settings and migration policies for the destination table.failureReason(Consumer<MigrationFailureReason.Builder> failureReason) The reason that the migration failed.failureReason(MigrationFailureReason failureReason) The reason that the migration failed.hasValidPlan(Boolean hasValidPlan) A Boolean value that specifies whether planning produced a plan that the migration can run.migrationId(String migrationId) The ID of the migration.migrationOutput(Consumer<MigrationOutputOverview.Builder> migrationOutput) The bucket and prefixes for the migration's reports, and the location of each report once it is written.migrationOutput(MigrationOutputOverview migrationOutput) The bucket and prefixes for the migration's reports, and the location of each report once it is written.migrationStats(Consumer<MigrationStats.Builder> migrationStats) The number of objects that migrated, failed or are pending.migrationStats(MigrationStats migrationStats) The number of objects that migrated, failed or are pending.The name of the destination table.The namespace of the destination table.planningStats(Consumer<PlanningStats.Builder> planningStats) Statistics about the source and the partitions in the migration.planningStats(PlanningStats planningStats) Statistics about the source and the partitions in the migration.reviewMigrationPlan(Boolean reviewMigrationPlan) A Boolean value that specifies whether the migration waits in thependingReviewstate, so that you can review the compatibility reports before it migrates any data.The Amazon Resource Name (ARN) of the IAM role that the migration uses.source(Consumer<SourceConfiguration.Builder> source) The source table of the migration.source(SourceConfiguration source) The source table of the migration.sourceType(String sourceType) The type of the migration's source.sourceType(MigrationSourceType sourceType) The type of the migration's source.The state of the migration.state(MigrationState state) The state of the migration.stateUpdatedAt(Instant stateUpdatedAt) The date and time that the migration's state last changed.The Amazon Resource Name (ARN) of the destination table, once the migration creates it.tableBucketARN(String tableBucketARN) The Amazon Resource Name (ARN) of the table bucket that contains the destination table.The type of the migration.type(MigrationType type) The type of the migration.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.s3tables.model.S3TablesResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
migrationId
The ID of the migration.
- Parameters:
migrationId- The ID of the migration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tableBucketARN
The Amazon Resource Name (ARN) of the table bucket that contains the destination table.
- Parameters:
tableBucketARN- The Amazon Resource Name (ARN) of the table bucket that contains the destination table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
namespace
The namespace of the destination table.
- Parameters:
namespace- The namespace of the destination table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tableARN
The Amazon Resource Name (ARN) of the destination table, once the migration creates it.
- Parameters:
tableARN- The Amazon Resource Name (ARN) of the destination table, once the migration creates it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the destination table.
- Parameters:
name- The name of the destination table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
The type of the migration. Valid values:
-
start- A migration thatStartTableMigrationstarted. -
sync- A migration thatSyncTableMigrationstarted.
- Parameters:
type- The type of the migration. Valid values:-
start- A migration thatStartTableMigrationstarted. -
sync- A migration thatSyncTableMigrationstarted.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
type
The type of the migration. Valid values:
-
start- A migration thatStartTableMigrationstarted. -
sync- A migration thatSyncTableMigrationstarted.
- Parameters:
type- The type of the migration. Valid values:-
start- A migration thatStartTableMigrationstarted. -
sync- A migration thatSyncTableMigrationstarted.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
state
The state of the migration. Valid values:
-
new- S3 Tables accepted the request. -
planning- The migration is checking the source table, its objects and the destination for compatibility, and writing the compatibility reports. -
pendingReview- Planning finished, and the migration waits for you to continue or cancel it withUpdateTableMigration. -
queued- The migration is waiting to start migrating data. -
migrating- The migration is running the plan from theplanningstate: it copies data and commits it to the destination table. A migration reaches this state only ifhasValidPlanistrue. -
succeeded- Every planned object migrated. -
failed- The migration failed. CheckfailureReasonfor the cause. -
cancelling- You cancelled the migration, and it is finishing the work in progress. -
cancelled- The migration is cancelled.
A migration ends in the
succeeded,failedorcancelledstate. You can cancel it until it ends.- Parameters:
state- The state of the migration. Valid values:-
new- S3 Tables accepted the request. -
planning- The migration is checking the source table, its objects and the destination for compatibility, and writing the compatibility reports. -
pendingReview- Planning finished, and the migration waits for you to continue or cancel it withUpdateTableMigration. -
queued- The migration is waiting to start migrating data. -
migrating- The migration is running the plan from theplanningstate: it copies data and commits it to the destination table. A migration reaches this state only ifhasValidPlanistrue. -
succeeded- Every planned object migrated. -
failed- The migration failed. CheckfailureReasonfor the cause. -
cancelling- You cancelled the migration, and it is finishing the work in progress. -
cancelled- The migration is cancelled.
A migration ends in the
succeeded,failedorcancelledstate. You can cancel it until it ends.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
state
The state of the migration. Valid values:
-
new- S3 Tables accepted the request. -
planning- The migration is checking the source table, its objects and the destination for compatibility, and writing the compatibility reports. -
pendingReview- Planning finished, and the migration waits for you to continue or cancel it withUpdateTableMigration. -
queued- The migration is waiting to start migrating data. -
migrating- The migration is running the plan from theplanningstate: it copies data and commits it to the destination table. A migration reaches this state only ifhasValidPlanistrue. -
succeeded- Every planned object migrated. -
failed- The migration failed. CheckfailureReasonfor the cause. -
cancelling- You cancelled the migration, and it is finishing the work in progress. -
cancelled- The migration is cancelled.
A migration ends in the
succeeded,failedorcancelledstate. You can cancel it until it ends.- Parameters:
state- The state of the migration. Valid values:-
new- S3 Tables accepted the request. -
planning- The migration is checking the source table, its objects and the destination for compatibility, and writing the compatibility reports. -
pendingReview- Planning finished, and the migration waits for you to continue or cancel it withUpdateTableMigration. -
queued- The migration is waiting to start migrating data. -
migrating- The migration is running the plan from theplanningstate: it copies data and commits it to the destination table. A migration reaches this state only ifhasValidPlanistrue. -
succeeded- Every planned object migrated. -
failed- The migration failed. CheckfailureReasonfor the cause. -
cancelling- You cancelled the migration, and it is finishing the work in progress. -
cancelled- The migration is cancelled.
A migration ends in the
succeeded,failedorcancelledstate. You can cancel it until it ends.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
roleARN
The Amazon Resource Name (ARN) of the IAM role that the migration uses.
- Parameters:
roleARN- The Amazon Resource Name (ARN) of the IAM role that the migration uses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reviewMigrationPlan
A Boolean value that specifies whether the migration waits in the
pendingReviewstate, so that you can review the compatibility reports before it migrates any data.- Parameters:
reviewMigrationPlan- A Boolean value that specifies whether the migration waits in thependingReviewstate, so that you can review the compatibility reports before it migrates any data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hasValidPlan
A Boolean value that specifies whether planning produced a plan that the migration can run. If planning hasn't finished, this value isn't returned.
- Parameters:
hasValidPlan- A Boolean value that specifies whether planning produced a plan that the migration can run. If planning hasn't finished, this value isn't returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
The date and time that the migration was created.
- Parameters:
createdAt- The date and time that the migration was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stateUpdatedAt
The date and time that the migration's state last changed.
- Parameters:
stateUpdatedAt- The date and time that the migration's state last changed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureReason
The reason that the migration failed. The code names the cause, such as a migration role that S3 Tables can't assume or an Amazon Web Services Glue table that doesn't exist, or the report that lists the findings. This value is returned only when the migration is in the
failedstate.- Parameters:
failureReason- The reason that the migration failed. The code names the cause, such as a migration role that S3 Tables can't assume or an Amazon Web Services Glue table that doesn't exist, or the report that lists the findings. This value is returned only when the migration is in thefailedstate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureReason
default GetTableMigrationResponse.Builder failureReason(Consumer<MigrationFailureReason.Builder> failureReason) The reason that the migration failed. The code names the cause, such as a migration role that S3 Tables can't assume or an Amazon Web Services Glue table that doesn't exist, or the report that lists the findings. This value is returned only when the migration is in the
This is a convenience method that creates an instance of thefailedstate.MigrationFailureReason.Builderavoiding the need to create one manually viaMigrationFailureReason.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofailureReason(MigrationFailureReason).- Parameters:
failureReason- a consumer that will call methods onMigrationFailureReason.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
planningStats
Statistics about the source and the partitions in the migration. This value is returned after planning finishes.
- Parameters:
planningStats- Statistics about the source and the partitions in the migration. This value is returned after planning finishes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
planningStats
default GetTableMigrationResponse.Builder planningStats(Consumer<PlanningStats.Builder> planningStats) Statistics about the source and the partitions in the migration. This value is returned after planning finishes.
This is a convenience method that creates an instance of thePlanningStats.Builderavoiding the need to create one manually viaPlanningStats.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toplanningStats(PlanningStats).- Parameters:
planningStats- a consumer that will call methods onPlanningStats.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
migrationStats
The number of objects that migrated, failed or are pending. These counts are set when planning finishes and updated when the migration ends.
- Parameters:
migrationStats- The number of objects that migrated, failed or are pending. These counts are set when planning finishes and updated when the migration ends.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
migrationStats
default GetTableMigrationResponse.Builder migrationStats(Consumer<MigrationStats.Builder> migrationStats) The number of objects that migrated, failed or are pending. These counts are set when planning finishes and updated when the migration ends.
This is a convenience method that creates an instance of theMigrationStats.Builderavoiding the need to create one manually viaMigrationStats.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomigrationStats(MigrationStats).- Parameters:
migrationStats- a consumer that will call methods onMigrationStats.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sourceType
The type of the migration's source.
- Parameters:
sourceType- The type of the migration's source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sourceType
The type of the migration's source.
- Parameters:
sourceType- The type of the migration's source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
source
The source table of the migration.
- Parameters:
source- The source table of the migration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
source
The source table of the migration.
This is a convenience method that creates an instance of theSourceConfiguration.Builderavoiding the need to create one manually viaSourceConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosource(SourceConfiguration).- Parameters:
source- a consumer that will call methods onSourceConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dataMigration
The maintenance settings and migration policies for the destination table.
- Parameters:
dataMigration- The maintenance settings and migration policies for the destination table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataMigration
default GetTableMigrationResponse.Builder dataMigration(Consumer<DataMigrationOverview.Builder> dataMigration) The maintenance settings and migration policies for the destination table.
This is a convenience method that creates an instance of theDataMigrationOverview.Builderavoiding the need to create one manually viaDataMigrationOverview.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todataMigration(DataMigrationOverview).- Parameters:
dataMigration- a consumer that will call methods onDataMigrationOverview.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
migrationOutput
The bucket and prefixes for the migration's reports, and the location of each report once it is written.
- Parameters:
migrationOutput- The bucket and prefixes for the migration's reports, and the location of each report once it is written.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
migrationOutput
default GetTableMigrationResponse.Builder migrationOutput(Consumer<MigrationOutputOverview.Builder> migrationOutput) The bucket and prefixes for the migration's reports, and the location of each report once it is written.
This is a convenience method that creates an instance of theMigrationOutputOverview.Builderavoiding the need to create one manually viaMigrationOutputOverview.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomigrationOutput(MigrationOutputOverview).- Parameters:
migrationOutput- a consumer that will call methods onMigrationOutputOverview.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-