Record Class DescribeLogStreamsOptions
java.lang.Object
java.lang.Record
codes.grow.packages.cloudwatchlogs.DescribeLogStreamsOptions
- Record Components:
prefix- name prefix (not allowed withorderBy LAST_EVENT_TIME)orderBy- sort key (defaultLOG_STREAM_NAME)descending- descending order (default false)pageSize- streams per request, 1–50 (default 50)limit- stop after this many streams
public record DescribeLogStreamsOptions(String prefix, LogStreamOrder orderBy, Boolean descending, Integer pageSize, Integer limit)
extends Record
Options of
describeLogStreams.
Build with builder(); unset values are null and take the documented default.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDescribeLogStreamsOptions(String prefix, LogStreamOrder orderBy, Boolean descending, Integer pageSize, Integer limit) Creates an instance of aDescribeLogStreamsOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Starts a builder.static DescribeLogStreamsOptionsdefaults()Options with every default.Returns the value of thedescendingrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.limit()Returns the value of thelimitrecord component.orderBy()Returns the value of theorderByrecord component.pageSize()Returns the value of thepageSizerecord component.prefix()Returns the value of theprefixrecord component.Returns a builder holding these values.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DescribeLogStreamsOptions
public DescribeLogStreamsOptions(String prefix, LogStreamOrder orderBy, Boolean descending, Integer pageSize, Integer limit) Creates an instance of aDescribeLogStreamsOptionsrecord class.- Parameters:
prefix- the value for theprefixrecord componentorderBy- the value for theorderByrecord componentdescending- the value for thedescendingrecord componentpageSize- the value for thepageSizerecord componentlimit- the value for thelimitrecord component
-
-
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). -
prefix
Returns the value of theprefixrecord component.- Returns:
- the value of the
prefixrecord component
-
orderBy
Returns the value of theorderByrecord component.- Returns:
- the value of the
orderByrecord component
-
descending
Returns the value of thedescendingrecord component.- Returns:
- the value of the
descendingrecord 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
-