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 returnjava.lang.IllegalArgumentException
- if invalid object Id is givenpublic GetRequest.Builder setIncludeStart(boolean includeStart)
setStartId(String)
method.includeStart
- whether or not to return the start indexpublic GetRequest.Builder setLimit(java.lang.Integer limit)
limit
- the maximum number of objects to returnjava.lang.IllegalArgumentException
- if negative or too large limit is givenpublic GetRequest.Builder setReturningIdsOnly(boolean returningIdsOnly)
returningIdsOnly
- whether to only return object keyspublic GetRequest build()
GetRequest
using values set on this builder