|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.twilio.sdk.resource.Resource
com.twilio.sdk.resource.InstanceResource
com.twilio.sdk.resource.instance.UsageTrigger
public class UsageTrigger
The Class UsageTrigger.
For more information see https://www.twilio.com/docs/api/rest/usage-triggers
| Constructor Summary | |
|---|---|
UsageTrigger(TwilioRestClient client)
Instantiates a new usageRecord. |
|
UsageTrigger(TwilioRestClient client,
Map<String,Object> properties)
Instantiates a new recordingRecord. |
|
UsageTrigger(TwilioRestClient client,
String sid)
Instantiates a new usageRecord. |
|
| Method Summary | |
|---|---|
boolean |
delete()
Delete |
String |
getAccountSid()
Get the account sid |
String |
getCallbackMethod()
Gets the callback Method |
String |
getCallbackUrl()
Gets the callback URL |
BigDecimal |
getCurrentValue()
Gets the current value. |
Date |
getDateCreated()
Gets the date created. |
Date |
getDateFired()
Gets the date fired |
Date |
getDateUpdated()
Gets the date updated. |
String |
getFriendlyName()
Gets the friendly name. |
Recurrence |
getRecurring()
Gets the recurrence. |
String |
getSid()
Gets the sid. |
Trigger |
getTriggerBy()
Gets the trigger. |
BigDecimal |
getTriggerValue()
Gets the trigger value. |
String |
getUri()
Get the URI |
UsageCategory |
getUsageCategory()
Gets the usage category. |
String |
getUsageRecordUri()
Gets the usage record URI |
| Methods inherited from class com.twilio.sdk.resource.InstanceResource |
|---|
getObject, getProperty, update, update |
| Methods inherited from class com.twilio.sdk.resource.Resource |
|---|
setRequestAccountSid |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UsageTrigger(TwilioRestClient client)
client - the client
public UsageTrigger(TwilioRestClient client,
String sid)
client - the clientsid - the sid
public UsageTrigger(TwilioRestClient client,
Map<String,Object> properties)
client - the clientproperties - the properties| Method Detail |
|---|
public String getSid()
public Date getDateCreated()
public Date getDateUpdated()
public String getFriendlyName()
public Recurrence getRecurring()
Recurrencepublic UsageCategory getUsageCategory()
UsageCategorypublic Trigger getTriggerBy()
Triggerpublic BigDecimal getTriggerValue()
public BigDecimal getCurrentValue()
public String getUsageRecordUri()
public String getCallbackUrl()
public String getCallbackMethod()
public Date getDateFired()
public String getUri()
public String getAccountSid()
public boolean delete()
throws TwilioRestException
TwilioRestException - the twilio rest exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||