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