Record Class LiveTailOptions
java.lang.Object
java.lang.Record
codes.grow.packages.cloudwatchlogs.LiveTailOptions
- Record Components:
onError- called with the error that ends the session (mapped to the SDK exceptions)onUpdate- called for everysessionUpdateframe (also empty keep-alive updates)
public record LiveTailOptions(Consumer<CloudWatchLogsException> onError, Consumer<LiveTailUpdate> onUpdate)
extends Record
Callbacks of
startLiveTail.
Build with builder(); unset values are null and take the documented default.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionLiveTailOptions(Consumer<CloudWatchLogsException> onError, Consumer<LiveTailUpdate> onUpdate) Creates an instance of aLiveTailOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic LiveTailOptions.Builderbuilder()Starts a builder.static LiveTailOptionsdefaults()Options with every default.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.onError()Returns the value of theonErrorrecord component.onUpdate()Returns the value of theonUpdaterecord component.Returns a builder holding these values.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LiveTailOptions
public LiveTailOptions(Consumer<CloudWatchLogsException> onError, Consumer<LiveTailUpdate> onUpdate) Creates an instance of aLiveTailOptionsrecord class.
-
-
Method Details
-
defaults
Options with every default.- Returns:
- the options
-
builder
Starts a builder.- Returns:
- a new builder
-
toBuilder
Returns a builder holding these values.- Returns:
- a new builder
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
onError
Returns the value of theonErrorrecord component.- Returns:
- the value of the
onErrorrecord component
-
onUpdate
Returns the value of theonUpdaterecord component.- Returns:
- the value of the
onUpdaterecord component
-