public class SharedInsightCollectionRequest extends BaseCollectionRequest<SharedInsightCollectionResponse,ISharedInsightCollectionPage> implements ISharedInsightCollectionRequest
Constructor and Description |
---|
SharedInsightCollectionRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request builder for this collection of SharedInsight
|
Modifier and Type | Method and Description |
---|---|
ISharedInsightCollectionPage |
buildFromResponse(SharedInsightCollectionResponse response) |
ISharedInsightCollectionRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
ISharedInsightCollectionPage |
get() |
void |
get(ICallback<ISharedInsightCollectionPage> callback) |
SharedInsight |
post(SharedInsight newSharedInsight) |
void |
post(SharedInsight newSharedInsight,
ICallback<SharedInsight> callback) |
ISharedInsightCollectionRequest |
select(java.lang.String value)
Sets the select clause for the request
|
ISharedInsightCollectionRequest |
top(int value)
Sets the top value for the request
|
addFunctionOption, addHeader, addQueryOption, getBaseRequest, getCollectionPageClass, getDelay, getHeaders, getHttpMethod, getMaxRedirects, getMaxRetries, getOptions, getRequestUrl, getShouldRedirect, getShouldRetry, getUseCaches, post, send, setDelay, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCaches
public SharedInsightCollectionRequest(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<ISharedInsightCollectionPage> callback)
get
in interface ISharedInsightCollectionRequest
public ISharedInsightCollectionPage get() throws ClientException
get
in interface ISharedInsightCollectionRequest
ClientException
public void post(SharedInsight newSharedInsight, ICallback<SharedInsight> callback)
post
in interface ISharedInsightCollectionRequest
public SharedInsight post(SharedInsight newSharedInsight) throws ClientException
post
in interface ISharedInsightCollectionRequest
ClientException
public ISharedInsightCollectionRequest expand(java.lang.String value)
expand
in interface ISharedInsightCollectionRequest
value
- the expand clausepublic ISharedInsightCollectionRequest select(java.lang.String value)
select
in interface ISharedInsightCollectionRequest
value
- the select clausepublic ISharedInsightCollectionRequest top(int value)
top
in interface ISharedInsightCollectionRequest
value
- the max number of items to returnpublic ISharedInsightCollectionPage buildFromResponse(SharedInsightCollectionResponse response)