public class GetEventsBuilder
extends java.lang.Object
DbxTeamTeamLogRequests.getEventsBuilder()
.
Use this class to set optional request parameters and complete the request.
Modifier and Type | Method and Description |
---|---|
GetTeamEventsResult |
start()
Issues the request.
|
GetEventsBuilder |
withAccountId(java.lang.String accountId)
Set value for optional field.
|
GetEventsBuilder |
withCategory(EventCategory category)
Set value for optional field.
|
GetEventsBuilder |
withEventType(EventTypeArg eventType)
Set value for optional field.
|
GetEventsBuilder |
withLimit(java.lang.Long limit)
Set value for optional field.
|
GetEventsBuilder |
withTime(TimeRange time)
Set value for optional field.
|
public GetEventsBuilder withLimit(java.lang.Long limit)
If left unset or set to null
, defaults to 1000L
.
limit
- The maximal number of results to return per call. Note that
some calls may not return GetTeamEventsArg.getLimit()
number of
events, and may even return no events, even with `has_more` set to
true. In this case, callers should fetch again using DbxTeamTeamLogRequests.getEventsContinue(String)
. Must be greater
than or equal to 1 and be less than or equal to 1000. Defaults to
1000L
when set to null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public GetEventsBuilder withAccountId(java.lang.String accountId)
accountId
- Filter the events by account ID. Return only events
with this account_id as either Actor, Context, or Participants. Must
have length of at least 40 and have length of at most 40.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public GetEventsBuilder withTime(TimeRange time)
time
- Filter by time range.public GetEventsBuilder withCategory(EventCategory category)
category
- Filter the returned events to a single category. Note
that category shouldn't be provided together with event_type.public GetEventsBuilder withEventType(EventTypeArg eventType)
eventType
- Filter the returned events to a single event type. Note
that event_type shouldn't be provided together with category.public GetTeamEventsResult start() throws GetTeamEventsErrorException, DbxException