Interface StartImportResponse.Builder

  • Method Details

    • importId

      StartImportResponse.Builder importId(String importId)

      The ID of the import.

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

      StartImportResponse.Builder destinations(Collection<String> destinations)

      The ARN of the destination event data store.

      Parameters:
      destinations - The ARN of the destination event data store.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • destinations

      StartImportResponse.Builder destinations(String... destinations)

      The ARN of the destination event data store.

      Parameters:
      destinations - The ARN of the destination event data store.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • importSource

      StartImportResponse.Builder importSource(ImportSource importSource)

      The source S3 bucket for the import.

      Parameters:
      importSource - The source S3 bucket for the import.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • importSource

      default StartImportResponse.Builder importSource(Consumer<ImportSource.Builder> importSource)

      The source S3 bucket for the import.

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

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

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

      StartImportResponse.Builder startEventTime(Instant startEventTime)

      Used with EndEventTime to bound a StartImport request, and limit imported trail events to only those events logged within a specified time period.

      Parameters:
      startEventTime - Used with EndEventTime to bound a StartImport request, and limit imported trail events to only those events logged within a specified time period.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • endEventTime

      StartImportResponse.Builder endEventTime(Instant endEventTime)

      Used with StartEventTime to bound a StartImport request, and limit imported trail events to only those events logged within a specified time period.

      Parameters:
      endEventTime - Used with StartEventTime to bound a StartImport request, and limit imported trail events to only those events logged within a specified time period.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • importStatus

      StartImportResponse.Builder importStatus(String importStatus)

      Shows the status of the import after a StartImport request. An import finishes with a status of COMPLETED if there were no failures, or FAILED if there were failures.

      Parameters:
      importStatus - Shows the status of the import after a StartImport request. An import finishes with a status of COMPLETED if there were no failures, or FAILED if there were failures.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • importStatus

      StartImportResponse.Builder importStatus(ImportStatus importStatus)

      Shows the status of the import after a StartImport request. An import finishes with a status of COMPLETED if there were no failures, or FAILED if there were failures.

      Parameters:
      importStatus - Shows the status of the import after a StartImport request. An import finishes with a status of COMPLETED if there were no failures, or FAILED if there were failures.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • createdTimestamp

      StartImportResponse.Builder createdTimestamp(Instant createdTimestamp)

      The timestamp for the import's creation.

      Parameters:
      createdTimestamp - The timestamp for the import's creation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updatedTimestamp

      StartImportResponse.Builder updatedTimestamp(Instant updatedTimestamp)

      The timestamp of the import's last update, if applicable.

      Parameters:
      updatedTimestamp - The timestamp of the import's last update, if applicable.
      Returns:
      Returns a reference to this object so that method calls can be chained together.