Interface CancelImportTaskResponse.Builder

  • Method Details

    • importId

      The ID of the cancelled import task.

      Parameters:
      importId - The ID of the cancelled import task.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • importStatistics

      CancelImportTaskResponse.Builder importStatistics(ImportStatistics importStatistics)

      Statistics about the import progress at the time of cancellation.

      Parameters:
      importStatistics - Statistics about the import progress at the time of cancellation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • importStatistics

      default CancelImportTaskResponse.Builder importStatistics(Consumer<ImportStatistics.Builder> importStatistics)

      Statistics about the import progress at the time of cancellation.

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

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

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

      CancelImportTaskResponse.Builder importStatus(String importStatus)

      The final status of the import task. This will be set to CANCELLED.

      Parameters:
      importStatus - The final status of the import task. This will be set to CANCELLED.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • importStatus

      CancelImportTaskResponse.Builder importStatus(ImportStatus importStatus)

      The final status of the import task. This will be set to CANCELLED.

      Parameters:
      importStatus - The final status of the import task. This will be set to CANCELLED.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • creationTime

      CancelImportTaskResponse.Builder creationTime(Long creationTime)

      The timestamp when the import task was created, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.

      Parameters:
      creationTime - The timestamp when the import task was created, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastUpdatedTime

      CancelImportTaskResponse.Builder lastUpdatedTime(Long lastUpdatedTime)

      The timestamp when the import task was cancelled, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.

      Parameters:
      lastUpdatedTime - The timestamp when the import task was cancelled, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
      Returns:
      Returns a reference to this object so that method calls can be chained together.