Class LiveTailOptions.Builder
java.lang.Object
codes.grow.packages.cloudwatchlogs.LiveTailOptions.Builder
- Enclosing class:
LiveTailOptions
Builder of
LiveTailOptions.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the options.onError(Consumer<CloudWatchLogsException> value) Sets onError: called with the error that ends the session (mapped to the SDK exceptions).onUpdate(Consumer<LiveTailUpdate> value) Sets onUpdate: called for everysessionUpdateframe (also empty keep-alive updates).
-
Method Details
-
onError
Sets onError: called with the error that ends the session (mapped to the SDK exceptions).- Parameters:
value- the value- Returns:
- this builder
-
onUpdate
Sets onUpdate: called for everysessionUpdateframe (also empty keep-alive updates).- Parameters:
value- the value- Returns:
- this builder
-
build
Builds the options.- Returns:
- the options
-