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