public static class ListRequest.Builder
extends java.lang.Object
ListRequests.| Modifier and Type | Method and Description |
|---|---|
ListRequest |
build() |
ListRequest.Builder |
setIncludeStart(boolean includeStart)
Sets whether or not to include the object whose ID is specified via
the
setStartId(String) method. |
ListRequest.Builder |
setLimit(java.lang.Integer limit)
Sets the maximum number of objects to return.
|
ListRequest.Builder |
setReturningIdsOnly(boolean returningIdsOnly)
Sets whether just objects containing just their key are returned, or
whether the complete objects are returned.
|
ListRequest.Builder |
setStartId(java.lang.String startId)
Sets the Id of the first object to return.
|
public ListRequest.Builder setStartId(java.lang.String startId)
setIncludeStart(boolean) method.startId - the Id of the first object to returnjava.lang.IllegalArgumentException - if invalid object Id is givenpublic ListRequest.Builder setIncludeStart(boolean includeStart)
setStartId(String) method.includeStart - whether or not to return the start indexpublic ListRequest.Builder setLimit(java.lang.Integer limit)
limit - the maximum number of objects to returnjava.lang.IllegalArgumentException - if negative or too large limit is givenpublic ListRequest.Builder setReturningIdsOnly(boolean returningIdsOnly)
returningIdsOnly - whether to only return object keyspublic ListRequest build()
ListRequest using values set on this builder