public class PlannerPlanRequest extends BaseRequest implements IPlannerPlanRequest
functionOptions, queryOptions, REQUEST_STATS_HEADER_VALUE_FORMAT_STRING
Constructor and Description |
---|
PlannerPlanRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request for the PlannerPlan
|
Modifier and Type | Method and Description |
---|---|
void |
delete()
Delete this item from the service
|
void |
delete(ICallback<PlannerPlan> callback)
Delete this item from the service
|
IPlannerPlanRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
PlannerPlan |
get()
Gets the PlannerPlan from the service
|
void |
get(ICallback<PlannerPlan> callback)
Gets the PlannerPlan from the service
|
PlannerPlan |
patch(PlannerPlan sourcePlannerPlan)
Patches this PlannerPlan with a source
|
void |
patch(PlannerPlan sourcePlannerPlan,
ICallback<PlannerPlan> callback)
Patches this PlannerPlan with a source
|
PlannerPlan |
post(PlannerPlan newPlannerPlan)
Creates a PlannerPlan with a new object
|
void |
post(PlannerPlan newPlannerPlan,
ICallback<PlannerPlan> callback)
Creates a PlannerPlan with a new object
|
IPlannerPlanRequest |
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 PlannerPlanRequest(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<PlannerPlan> callback)
get
in interface IPlannerPlanRequest
callback
- the callback to be called after success or failurepublic PlannerPlan get() throws ClientException
get
in interface IPlannerPlanRequest
ClientException
- this exception occurs if the request was unable to complete for any reasonpublic void delete(ICallback<PlannerPlan> callback)
delete
in interface IPlannerPlanRequest
callback
- the callback when the deletion action has completedpublic void delete() throws ClientException
delete
in interface IPlannerPlanRequest
ClientException
- if there was an exception during the delete operationpublic void patch(PlannerPlan sourcePlannerPlan, ICallback<PlannerPlan> callback)
patch
in interface IPlannerPlanRequest
sourcePlannerPlan
- the source object with updatescallback
- the callback to be called after success or failurepublic PlannerPlan patch(PlannerPlan sourcePlannerPlan) throws ClientException
patch
in interface IPlannerPlanRequest
sourcePlannerPlan
- the source object with updatesClientException
- this exception occurs if the request was unable to complete for any reasonpublic void post(PlannerPlan newPlannerPlan, ICallback<PlannerPlan> callback)
post
in interface IPlannerPlanRequest
newPlannerPlan
- the new object to createcallback
- the callback to be called after success or failurepublic PlannerPlan post(PlannerPlan newPlannerPlan) throws ClientException
post
in interface IPlannerPlanRequest
newPlannerPlan
- the new object to createClientException
- this exception occurs if the request was unable to complete for any reasonpublic IPlannerPlanRequest select(java.lang.String value)
select
in interface IPlannerPlanRequest
value
- the select clausepublic IPlannerPlanRequest expand(java.lang.String value)
expand
in interface IPlannerPlanRequest
value
- the expand clause