Record Class FilterLogEventsPage
java.lang.Object
java.lang.Record
codes.grow.packages.cloudwatchlogs.FilterLogEventsPage
- Record Components:
events- events ordered by timestamp, then event idnextToken- token of the next page (empty at the end; AWS may return empty pages that still carry a token)
public record FilterLogEventsPage(List<FilteredLogEvent> events, Optional<String> nextToken)
extends Record
One
FilterLogEvents page.-
Constructor Summary
ConstructorsConstructorDescriptionFilterLogEventsPage(List<FilteredLogEvent> events, Optional<String> nextToken) Normalises absent values (null lists become empty, null optionals empty). -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.events()Returns the value of theeventsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thenextTokenrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FilterLogEventsPage
Normalises absent values (null lists become empty, null optionals empty).- Parameters:
events- events ordered by timestamp, then event idnextToken- token of the next page (empty at the end; AWS may return empty pages that still carry a token)
-
-
Method Details
-
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). -
events
Returns the value of theeventsrecord component.- Returns:
- the value of the
eventsrecord component
-
nextToken
Returns the value of thenextTokenrecord component.- Returns:
- the value of the
nextTokenrecord component
-