Interface GetImportResponse.Builder

  • Method Details

    • importId

      GetImportResponse.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

      GetImportResponse.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

      GetImportResponse.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

      GetImportResponse.Builder importSource(ImportSource importSource)

      The source S3 bucket.

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

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

      The source S3 bucket.

      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

      GetImportResponse.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

      GetImportResponse.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

      GetImportResponse.Builder importStatus(String importStatus)

      The status of the import.

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

      GetImportResponse.Builder importStatus(ImportStatus importStatus)

      The status of the import.

      Parameters:
      importStatus - The status of the import.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • createdTimestamp

      GetImportResponse.Builder createdTimestamp(Instant createdTimestamp)

      The timestamp of the import's creation.

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

      GetImportResponse.Builder updatedTimestamp(Instant updatedTimestamp)

      The timestamp of when the import was updated.

      Parameters:
      updatedTimestamp - The timestamp of when the import was updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • importStatistics

      GetImportResponse.Builder importStatistics(ImportStatistics importStatistics)

      Provides statistics for the import. CloudTrail does not update import statistics in real-time. Returned values for parameters such as EventsCompleted may be lower than the actual value, because CloudTrail updates statistics incrementally over the course of the import.

      Parameters:
      importStatistics - Provides statistics for the import. CloudTrail does not update import statistics in real-time. Returned values for parameters such as EventsCompleted may be lower than the actual value, because CloudTrail updates statistics incrementally over the course of the import.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • importStatistics

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

      Provides statistics for the import. CloudTrail does not update import statistics in real-time. Returned values for parameters such as EventsCompleted may be lower than the actual value, because CloudTrail updates statistics incrementally over the course of the import.

      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: