public class ManagedAppRequest extends BaseRequest implements IManagedAppRequest
functionOptions, queryOptions, REQUEST_STATS_HEADER_VALUE_FORMAT_STRING
Constructor and Description |
---|
ManagedAppRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request for the ManagedApp
|
ManagedAppRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions,
java.lang.Class<? extends ManagedApp> responseClass)
The request for the ManagedApp
|
Modifier and Type | Method and Description |
---|---|
void |
delete()
Delete this item from the service
|
void |
delete(ICallback<ManagedApp> callback)
Delete this item from the service
|
IManagedAppRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
ManagedApp |
get()
Gets the ManagedApp from the service
|
void |
get(ICallback<ManagedApp> callback)
Gets the ManagedApp from the service
|
ManagedApp |
patch(ManagedApp sourceManagedApp)
Patches this ManagedApp with a source
|
void |
patch(ManagedApp sourceManagedApp,
ICallback<ManagedApp> callback)
Patches this ManagedApp with a source
|
ManagedApp |
post(ManagedApp newManagedApp)
Creates a ManagedApp with a new object
|
void |
post(ManagedApp newManagedApp,
ICallback<ManagedApp> callback)
Creates a ManagedApp with a new object
|
IManagedAppRequest |
select(java.lang.String value)
Sets the select clause for the request
|
addFunctionOption, addHeader, addQueryOption, getClient, getDelay, getFunctionOptions, getHeaders, getHttpMethod, getMaxRedirects, getMaxRetries, getOptions, getQueryOptions, getRequestUrl, getResponseType, getShouldRedirect, getShouldRetry, getUseCaches, send, send, setDelay, setHttpMethod, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCaches
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addHeader, getDelay, getHeaders, getHttpMethod, getMaxRedirects, getMaxRetries, getOptions, getRequestUrl, getShouldRedirect, getShouldRetry, getUseCaches, setDelay, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCaches
public ManagedAppRequest(java.lang.String requestUrl, IBaseClient client, java.util.List<? extends Option> requestOptions, java.lang.Class<? extends ManagedApp> responseClass)
requestUrl
- the request URLclient
- the service clientrequestOptions
- the options for this requestresponseClass
- the class of the responsepublic ManagedAppRequest(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<ManagedApp> callback)
get
in interface IManagedAppRequest
callback
- the callback to be called after success or failurepublic ManagedApp get() throws ClientException
get
in interface IManagedAppRequest
ClientException
- this exception occurs if the request was unable to complete for any reasonpublic void delete(ICallback<ManagedApp> callback)
delete
in interface IManagedAppRequest
callback
- the callback when the deletion action has completedpublic void delete() throws ClientException
delete
in interface IManagedAppRequest
ClientException
- if there was an exception during the delete operationpublic void patch(ManagedApp sourceManagedApp, ICallback<ManagedApp> callback)
patch
in interface IManagedAppRequest
sourceManagedApp
- the source object with updatescallback
- the callback to be called after success or failurepublic ManagedApp patch(ManagedApp sourceManagedApp) throws ClientException
patch
in interface IManagedAppRequest
sourceManagedApp
- the source object with updatesClientException
- this exception occurs if the request was unable to complete for any reasonpublic void post(ManagedApp newManagedApp, ICallback<ManagedApp> callback)
post
in interface IManagedAppRequest
newManagedApp
- the new object to createcallback
- the callback to be called after success or failurepublic ManagedApp post(ManagedApp newManagedApp) throws ClientException
post
in interface IManagedAppRequest
newManagedApp
- the new object to createClientException
- this exception occurs if the request was unable to complete for any reasonpublic IManagedAppRequest select(java.lang.String value)
select
in interface IManagedAppRequest
value
- the select clausepublic IManagedAppRequest expand(java.lang.String value)
expand
in interface IManagedAppRequest
value
- the expand clause