Record Class FilterLogEventsOptions
java.lang.Object
java.lang.Record
codes.grow.packages.cloudwatchlogs.FilterLogEventsOptions
- Record Components:
group- log group name or ARN (defaultconfig.logGroup)streams- only these streams (1–100; not with streamPrefix)streamPrefix- only streams with this prefix (not with streams)pattern- CloudWatch filter patternstart- inclusive startend- inclusive endpageSize- events per request, 1–10 000limit- stop after this many events
public record FilterLogEventsOptions(String group, List<String> streams, String streamPrefix, String pattern, Instant start, Instant end, Integer pageSize, Integer limit)
extends Record
Options of
filterLogEvents.
Build with builder(); unset values are null and take the documented default.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Starts a builder.static FilterLogEventsOptionsdefaults()Options with every default.end()Returns the value of theendrecord component.final booleanIndicates whether some other object is "equal to" this one.group()Returns the value of thegrouprecord component.final inthashCode()Returns a hash code value for this object.limit()Returns the value of thelimitrecord component.pageSize()Returns the value of thepageSizerecord component.pattern()Returns the value of thepatternrecord component.start()Returns the value of thestartrecord component.Returns the value of thestreamPrefixrecord component.streams()Returns the value of thestreamsrecord component.Returns a builder holding these values.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FilterLogEventsOptions
public FilterLogEventsOptions(String group, List<String> streams, String streamPrefix, String pattern, Instant start, Instant end, Integer pageSize, Integer limit) Applies defaults.- Parameters:
group- log group name or ARN (defaultconfig.logGroup)streams- only these streams (1–100; not with streamPrefix)streamPrefix- only streams with this prefix (not with streams)pattern- CloudWatch filter patternstart- inclusive startend- inclusive endpageSize- events per request, 1–10 000limit- stop after this many events
-
-
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). -
group
Returns the value of thegrouprecord component.- Returns:
- the value of the
grouprecord component
-
streams
Returns the value of thestreamsrecord component.- Returns:
- the value of the
streamsrecord component
-
streamPrefix
Returns the value of thestreamPrefixrecord component.- Returns:
- the value of the
streamPrefixrecord component
-
pattern
Returns the value of thepatternrecord component.- Returns:
- the value of the
patternrecord component
-
start
Returns the value of thestartrecord component.- Returns:
- the value of the
startrecord component
-
end
Returns the value of theendrecord component.- Returns:
- the value of the
endrecord component
-
pageSize
Returns the value of thepageSizerecord component.- Returns:
- the value of the
pageSizerecord component
-
limit
Returns the value of thelimitrecord component.- Returns:
- the value of the
limitrecord component
-