Interface GetLogEventsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CloudWatchLogsResponse.Builder
,CopyableBuilder<GetLogEventsResponse.Builder,
,GetLogEventsResponse> SdkBuilder<GetLogEventsResponse.Builder,
,GetLogEventsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetLogEventsResponse
public static interface GetLogEventsResponse.Builder
extends CloudWatchLogsResponse.Builder, SdkPojo, CopyableBuilder<GetLogEventsResponse.Builder,GetLogEventsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionevents
(Collection<OutputLogEvent> events) The events.events
(Consumer<OutputLogEvent.Builder>... events) The events.events
(OutputLogEvent... events) The events.nextBackwardToken
(String nextBackwardToken) The token for the next set of items in the backward direction.nextForwardToken
(String nextForwardToken) The token for the next set of items in the forward direction.Methods inherited from interface software.amazon.awssdk.services.cloudwatchlogs.model.CloudWatchLogsResponse.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
-
events
The events.
- Parameters:
events
- The events.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
events
The events.
- Parameters:
events
- The events.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
events
The events.
This is a convenience method that creates an instance of theOutputLogEvent.Builder
avoiding the need to create one manually viaOutputLogEvent.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toevents(List<OutputLogEvent>)
.- Parameters:
events
- a consumer that will call methods onOutputLogEvent.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextForwardToken
The token for the next set of items in the forward direction. The token expires after 24 hours. If you have reached the end of the stream, it returns the same token you passed in.
- Parameters:
nextForwardToken
- The token for the next set of items in the forward direction. The token expires after 24 hours. If you have reached the end of the stream, it returns the same token you passed in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextBackwardToken
The token for the next set of items in the backward direction. The token expires after 24 hours. This token is not null. If you have reached the end of the stream, it returns the same token you passed in.
- Parameters:
nextBackwardToken
- The token for the next set of items in the backward direction. The token expires after 24 hours. This token is not null. If you have reached the end of the stream, it returns the same token you passed in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-