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 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 the OutputLogEvent.Builder avoiding the need to create one manually via OutputLogEvent.builder() .

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to events(List<OutputLogEvent>).

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

      GetLogEventsResponse.Builder nextForwardToken(String 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

      GetLogEventsResponse.Builder nextBackwardToken(String 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.