Interface GetImportResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CloudTrailResponse.Builder
,CopyableBuilder<GetImportResponse.Builder,
,GetImportResponse> SdkBuilder<GetImportResponse.Builder,
,GetImportResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetImportResponse
-
Method Summary
Modifier and TypeMethodDescriptioncreatedTimestamp
(Instant createdTimestamp) The timestamp of the import's creation.destinations
(String... destinations) The ARN of the destination event data store.destinations
(Collection<String> destinations) The ARN of the destination event data store.endEventTime
(Instant endEventTime) Used withStartEventTime
to bound aStartImport
request, and limit imported trail events to only those events logged within a specified time period.The ID of the import.default GetImportResponse.Builder
importSource
(Consumer<ImportSource.Builder> importSource) The source S3 bucket.importSource
(ImportSource importSource) The source S3 bucket.default GetImportResponse.Builder
importStatistics
(Consumer<ImportStatistics.Builder> importStatistics) Provides statistics for the import.importStatistics
(ImportStatistics importStatistics) Provides statistics for the import.importStatus
(String importStatus) The status of the import.importStatus
(ImportStatus importStatus) The status of the import.startEventTime
(Instant startEventTime) Used withEndEventTime
to bound aStartImport
request, and limit imported trail events to only those events logged within a specified time period.updatedTimestamp
(Instant updatedTimestamp) The timestamp of when the import was updated.Methods inherited from interface software.amazon.awssdk.services.cloudtrail.model.CloudTrailResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
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
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
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
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
The source S3 bucket.
This is a convenience method that creates an instance of theImportSource.Builder
avoiding the need to create one manually viaImportSource.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toimportSource(ImportSource)
.- Parameters:
importSource
- a consumer that will call methods onImportSource.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
startEventTime
Used with
EndEventTime
to bound aStartImport
request, and limit imported trail events to only those events logged within a specified time period.- Parameters:
startEventTime
- Used withEndEventTime
to bound aStartImport
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
Used with
StartEventTime
to bound aStartImport
request, and limit imported trail events to only those events logged within a specified time period.- Parameters:
endEventTime
- Used withStartEventTime
to bound aStartImport
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
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
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
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
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
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 asEventsCompleted
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
This is a convenience method that creates an instance of theEventsCompleted
may be lower than the actual value, because CloudTrail updates statistics incrementally over the course of the import.ImportStatistics.Builder
avoiding the need to create one manually viaImportStatistics.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toimportStatistics(ImportStatistics)
.- Parameters:
importStatistics
- a consumer that will call methods onImportStatistics.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-