public class ContactCollectionRequest extends BaseCollectionRequest<ContactCollectionResponse,IContactCollectionPage> implements IContactCollectionRequest
| Constructor and Description |
|---|
ContactCollectionRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request builder for this collection of Contact
|
| Modifier and Type | Method and Description |
|---|---|
IContactCollectionPage |
buildFromResponse(ContactCollectionResponse response) |
IContactCollectionRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
IContactCollectionPage |
get() |
void |
get(ICallback<IContactCollectionPage> callback) |
Contact |
post(Contact newContact) |
void |
post(Contact newContact,
ICallback<Contact> callback) |
IContactCollectionRequest |
select(java.lang.String value)
Sets the select clause for the request
|
IContactCollectionRequest |
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 ContactCollectionRequest(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<IContactCollectionPage> callback)
get in interface IContactCollectionRequestpublic IContactCollectionPage get() throws ClientException
get in interface IContactCollectionRequestClientExceptionpublic void post(Contact newContact, ICallback<Contact> callback)
post in interface IContactCollectionRequestpublic Contact post(Contact newContact) throws ClientException
post in interface IContactCollectionRequestClientExceptionpublic IContactCollectionRequest expand(java.lang.String value)
expand in interface IContactCollectionRequestvalue - the expand clausepublic IContactCollectionRequest select(java.lang.String value)
select in interface IContactCollectionRequestvalue - the select clausepublic IContactCollectionRequest top(int value)
top in interface IContactCollectionRequestvalue - the max number of items to returnpublic IContactCollectionPage buildFromResponse(ContactCollectionResponse response)