Package dev.tripswitch.admin
Record Class ListEventsParams
java.lang.Object
java.lang.Record
dev.tripswitch.admin.ListEventsParams
public record ListEventsParams(String breakerId, Instant startTime, Instant endTime, String cursor, int limit)
extends Record
Parameters for listing events.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionListEventsParams(int limit) ListEventsParams(String breakerId, Instant startTime, Instant endTime, String cursor, int limit) Creates an instance of aListEventsParamsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebreakerIdrecord component.static ListEventsParams.Builderbuilder()cursor()Returns the value of thecursorrecord component.endTime()Returns the value of theendTimerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intlimit()Returns the value of thelimitrecord component.Returns the value of thestartTimerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ListEventsParams
public ListEventsParams() -
ListEventsParams
public ListEventsParams(int limit) -
ListEventsParams
public ListEventsParams(String breakerId, Instant startTime, Instant endTime, String cursor, int limit) Creates an instance of aListEventsParamsrecord class.- Parameters:
breakerId- the value for thebreakerIdrecord componentstartTime- the value for thestartTimerecord componentendTime- the value for theendTimerecord componentcursor- the value for thecursorrecord componentlimit- the value for thelimitrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
breakerId
Returns the value of thebreakerIdrecord component.- Returns:
- the value of the
breakerIdrecord component
-
startTime
Returns the value of thestartTimerecord component.- Returns:
- the value of the
startTimerecord component
-
endTime
Returns the value of theendTimerecord component.- Returns:
- the value of the
endTimerecord component
-
cursor
Returns the value of thecursorrecord component.- Returns:
- the value of the
cursorrecord component
-
limit
public int limit()Returns the value of thelimitrecord component.- Returns:
- the value of the
limitrecord component
-