public class OrganizationCollectionRequest extends BaseCollectionRequest<OrganizationCollectionResponse,IOrganizationCollectionPage> implements IOrganizationCollectionRequest
| Constructor and Description |
|---|
OrganizationCollectionRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request builder for this collection of Organization
|
| Modifier and Type | Method and Description |
|---|---|
IOrganizationCollectionPage |
buildFromResponse(OrganizationCollectionResponse response) |
IOrganizationCollectionRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
IOrganizationCollectionPage |
get() |
void |
get(ICallback<IOrganizationCollectionPage> callback) |
Organization |
post(Organization newOrganization) |
void |
post(Organization newOrganization,
ICallback<Organization> callback) |
IOrganizationCollectionRequest |
select(java.lang.String value)
Sets the select clause for the request
|
IOrganizationCollectionRequest |
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, setUseCachespublic OrganizationCollectionRequest(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<IOrganizationCollectionPage> callback)
get in interface IOrganizationCollectionRequestpublic IOrganizationCollectionPage get() throws ClientException
get in interface IOrganizationCollectionRequestClientExceptionpublic void post(Organization newOrganization, ICallback<Organization> callback)
post in interface IOrganizationCollectionRequestpublic Organization post(Organization newOrganization) throws ClientException
post in interface IOrganizationCollectionRequestClientExceptionpublic IOrganizationCollectionRequest expand(java.lang.String value)
expand in interface IOrganizationCollectionRequestvalue - the expand clausepublic IOrganizationCollectionRequest select(java.lang.String value)
select in interface IOrganizationCollectionRequestvalue - the select clausepublic IOrganizationCollectionRequest top(int value)
top in interface IOrganizationCollectionRequestvalue - the max number of items to returnpublic IOrganizationCollectionPage buildFromResponse(OrganizationCollectionResponse response)