Interface GetMigrationResponse.Builder

  • Method Details

    • migrationId

      GetMigrationResponse.Builder migrationId(String migrationId)

      The unique identifier of the migration job.

      Parameters:
      migrationId - The unique identifier of the migration job.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

      The current status of the migration job. Valid values are PENDING, IN_PROGRESS, SUCCEEDED, and FAILED.

      Parameters:
      status - The current status of the migration job. Valid values are PENDING, IN_PROGRESS, SUCCEEDED, and FAILED.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • applicationId

      GetMigrationResponse.Builder applicationId(String applicationId)

      The unique identifier of the OpenSearch application associated with the migration.

      Parameters:
      applicationId - The unique identifier of the OpenSearch application associated with the migration.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • source

      The source configuration for the migration, including the data source ARN.

      Parameters:
      source - The source configuration for the migration, including the data source ARN.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • source

      The source configuration for the migration, including the data source ARN.

      This is a convenience method that creates an instance of the MigrationSource.Builder avoiding the need to create one manually via MigrationSource.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to source(MigrationSource).

      Parameters:
      source - a consumer that will call methods on MigrationSource.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • exportedCount

      GetMigrationResponse.Builder exportedCount(Integer exportedCount)

      The number of saved objects exported from the source data source.

      Parameters:
      exportedCount - The number of saved objects exported from the source data source.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • importedCount

      GetMigrationResponse.Builder importedCount(Integer importedCount)

      The number of saved objects successfully imported into the target workspace.

      Parameters:
      importedCount - The number of saved objects successfully imported into the target workspace.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • error

      Error details if the migration failed or completed with errors.

      Parameters:
      error - Error details if the migration failed or completed with errors.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • error

      Error details if the migration failed or completed with errors.

      This is a convenience method that creates an instance of the MigrationError.Builder avoiding the need to create one manually via MigrationError.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to error(MigrationError).

      Parameters:
      error - a consumer that will call methods on MigrationError.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • createdAt

      GetMigrationResponse.Builder createdAt(Instant createdAt)

      The date and time when the migration job was created.

      Parameters:
      createdAt - The date and time when the migration job was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updatedAt

      GetMigrationResponse.Builder updatedAt(Instant updatedAt)

      The date and time when the migration job was last updated.

      Parameters:
      updatedAt - The date and time when the migration job was last updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.