public class SegmentCollectionRequest extends BaseCollectionRequest<SegmentCollectionResponse,ISegmentCollectionPage> implements ISegmentCollectionRequest
| Constructor and Description |
|---|
SegmentCollectionRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request builder for this collection of Segment
|
| Modifier and Type | Method and Description |
|---|---|
ISegmentCollectionPage |
buildFromResponse(SegmentCollectionResponse response) |
ISegmentCollectionRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
ISegmentCollectionRequest |
filter(java.lang.String value)
Sets the filter clause for the request
|
ISegmentCollectionPage |
get() |
void |
get(ICallback<? super ISegmentCollectionPage> callback) |
ISegmentCollectionRequest |
orderBy(java.lang.String value)
Sets the order by clause for the request
|
Segment |
post(Segment newSegment) |
void |
post(Segment newSegment,
ICallback<? super Segment> callback) |
ISegmentCollectionRequest |
select(java.lang.String value)
Sets the select clause for the request
|
ISegmentCollectionRequest |
skip(int value)
Sets the skip value for the request
|
ISegmentCollectionRequest |
skipToken(java.lang.String skipToken)
Add Skip token for pagination
|
ISegmentCollectionRequest |
top(int value)
Sets the top value for the request
|
addFunctionOption, addHeader, addQueryOption, getBaseRequest, getCollectionPageClass, getDelay, getHeaders, getHttpMethod, getHttpRequest, getHttpRequest, getHttpRequest, getMaxRedirects, getMaxRetries, getOptions, getRequestUrl, getShouldRedirect, getShouldRetry, getUseCaches, post, send, setDelay, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCaches, withHttpMethodclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddHeader, getDelay, getHeaders, getHttpMethod, getHttpRequest, getHttpRequest, getHttpRequest, getMaxRedirects, getMaxRetries, getOptions, getRequestUrl, getShouldRedirect, getShouldRetry, getUseCaches, setDelay, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCaches, withHttpMethodpublic SegmentCollectionRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
requestUrl - the request URLclient - the service clientrequestOptions - the options for this requestpublic void get(ICallback<? super ISegmentCollectionPage> callback)
get in interface ISegmentCollectionRequestpublic ISegmentCollectionPage get() throws ClientException
get in interface ISegmentCollectionRequestClientExceptionpublic void post(Segment newSegment, ICallback<? super Segment> callback)
post in interface ISegmentCollectionRequestpublic Segment post(Segment newSegment) throws ClientException
post in interface ISegmentCollectionRequestClientExceptionpublic ISegmentCollectionRequest expand(java.lang.String value)
expand in interface ISegmentCollectionRequestvalue - the expand clausepublic ISegmentCollectionRequest filter(java.lang.String value)
filter in interface ISegmentCollectionRequestvalue - the filter clausepublic ISegmentCollectionRequest orderBy(java.lang.String value)
orderBy in interface ISegmentCollectionRequestvalue - the order by clausepublic ISegmentCollectionRequest select(java.lang.String value)
select in interface ISegmentCollectionRequestvalue - the select clausepublic ISegmentCollectionRequest top(int value)
top in interface ISegmentCollectionRequestvalue - the max number of items to returnpublic ISegmentCollectionRequest skip(int value)
skip in interface ISegmentCollectionRequestvalue - of the number of items to skippublic ISegmentCollectionRequest skipToken(java.lang.String skipToken)
skipToken in interface ISegmentCollectionRequestskipToken - - Token for paginationpublic ISegmentCollectionPage buildFromResponse(SegmentCollectionResponse response)