public class TimerManagementServiceClient extends com.amazon.ask.model.services.BaseServiceClient implements TimerManagementService
| Constructor and Description |
|---|
TimerManagementServiceClient(com.amazon.ask.model.services.ApiConfiguration apiConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
com.amazon.ask.model.services.ApiResponse<TimerResponse> |
callCreateTimer(TimerRequest timerRequest)
Create a new timer.
|
com.amazon.ask.model.services.ApiResponse<Void> |
callDeleteTimer(String id)
Delete a timer by ID.
|
com.amazon.ask.model.services.ApiResponse<Void> |
callDeleteTimers()
Delete all timers created by the skill.
|
com.amazon.ask.model.services.ApiResponse<TimerResponse> |
callGetTimer(String id)
Get timer by ID.
|
com.amazon.ask.model.services.ApiResponse<TimersResponse> |
callGetTimers()
Get all timers created by the skill.
|
com.amazon.ask.model.services.ApiResponse<Void> |
callPauseTimer(String id)
Pause a timer.
|
com.amazon.ask.model.services.ApiResponse<Void> |
callResumeTimer(String id)
Resume a timer.
|
TimerResponse |
createTimer(TimerRequest timerRequest)
Create a new timer.
|
void |
deleteTimer(String id)
Delete a timer by ID.
|
void |
deleteTimers()
Delete all timers created by the skill.
|
TimerResponse |
getTimer(String id)
Get timer by ID.
|
TimersResponse |
getTimers()
Get all timers created by the skill.
|
void |
pauseTimer(String id)
Pause a timer.
|
void |
resumeTimer(String id)
Resume a timer.
|
public TimerManagementServiceClient(com.amazon.ask.model.services.ApiConfiguration apiConfiguration)
public com.amazon.ask.model.services.ApiResponse<Void> callDeleteTimers() throws com.amazon.ask.model.services.ServiceException
callDeleteTimers in interface TimerManagementServicecom.amazon.ask.model.services.ServiceException - if fails to make API callpublic void deleteTimers()
throws com.amazon.ask.model.services.ServiceException
deleteTimers in interface TimerManagementServicecom.amazon.ask.model.services.ServiceException - if fails to make API callpublic com.amazon.ask.model.services.ApiResponse<TimersResponse> callGetTimers() throws com.amazon.ask.model.services.ServiceException
callGetTimers in interface TimerManagementServicecom.amazon.ask.model.services.ServiceException - if fails to make API callpublic TimersResponse getTimers() throws com.amazon.ask.model.services.ServiceException
getTimers in interface TimerManagementServicecom.amazon.ask.model.services.ServiceException - if fails to make API callpublic com.amazon.ask.model.services.ApiResponse<Void> callDeleteTimer(String id) throws com.amazon.ask.model.services.ServiceException
callDeleteTimer in interface TimerManagementServiceid - (required)com.amazon.ask.model.services.ServiceException - if fails to make API callpublic void deleteTimer(String id) throws com.amazon.ask.model.services.ServiceException
deleteTimer in interface TimerManagementServiceid - (required)com.amazon.ask.model.services.ServiceException - if fails to make API callpublic com.amazon.ask.model.services.ApiResponse<TimerResponse> callGetTimer(String id) throws com.amazon.ask.model.services.ServiceException
callGetTimer in interface TimerManagementServiceid - (required)com.amazon.ask.model.services.ServiceException - if fails to make API callpublic TimerResponse getTimer(String id) throws com.amazon.ask.model.services.ServiceException
getTimer in interface TimerManagementServiceid - (required)com.amazon.ask.model.services.ServiceException - if fails to make API callpublic com.amazon.ask.model.services.ApiResponse<Void> callPauseTimer(String id) throws com.amazon.ask.model.services.ServiceException
callPauseTimer in interface TimerManagementServiceid - (required)com.amazon.ask.model.services.ServiceException - if fails to make API callpublic void pauseTimer(String id) throws com.amazon.ask.model.services.ServiceException
pauseTimer in interface TimerManagementServiceid - (required)com.amazon.ask.model.services.ServiceException - if fails to make API callpublic com.amazon.ask.model.services.ApiResponse<Void> callResumeTimer(String id) throws com.amazon.ask.model.services.ServiceException
callResumeTimer in interface TimerManagementServiceid - (required)com.amazon.ask.model.services.ServiceException - if fails to make API callpublic void resumeTimer(String id) throws com.amazon.ask.model.services.ServiceException
resumeTimer in interface TimerManagementServiceid - (required)com.amazon.ask.model.services.ServiceException - if fails to make API callpublic com.amazon.ask.model.services.ApiResponse<TimerResponse> callCreateTimer(TimerRequest timerRequest) throws com.amazon.ask.model.services.ServiceException
callCreateTimer in interface TimerManagementServicetimerRequest - (required)com.amazon.ask.model.services.ServiceException - if fails to make API callpublic TimerResponse createTimer(TimerRequest timerRequest) throws com.amazon.ask.model.services.ServiceException
createTimer in interface TimerManagementServicetimerRequest - (required)com.amazon.ask.model.services.ServiceException - if fails to make API callCopyright © 2023. All rights reserved.