public class UpdateTriggerRequestExecutor extends RequestExecutor<java.lang.String>
TriggersApi. Use this class if you want to update
triggers through fluent API in chained fashion. Example of use:
KontaktCloud kontaktCloud = KontaktCloudFactory.create();
// define updated trigger object
kontaktCloud.triggers().update(ID)
.with(updatedTrigger)
.execute();
| Constructor and Description |
|---|
UpdateTriggerRequestExecutor(TriggersService triggersService,
java.util.UUID id)
Constructs request executor initialized with corresponding service class and trigger unique ID.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
execute()
Executes created request synchronously.
|
void |
execute(CloudCallback<java.lang.String> callback)
Executes created request asynchronously and invokes callback with the result.
|
UpdateTriggerRequestExecutor |
with(Trigger trigger)
Specifies trigger data to update.
|
public UpdateTriggerRequestExecutor(TriggersService triggersService, java.util.UUID id)
triggersService - the triggers API service.id - trigger unique identifier.public UpdateTriggerRequestExecutor with(Trigger trigger)
trigger - updated trigger data.public java.lang.String execute()
throws java.io.IOException,
KontaktCloudException
execute in class RequestExecutor<java.lang.String>java.io.IOException - exceptionKontaktCloudException - exceptionpublic void execute(CloudCallback<java.lang.String> callback)
execute in class RequestExecutor<java.lang.String>callback - the callback object.