com.twilio.sdk.resource.instance
Class UsageTrigger

java.lang.Object
  extended by com.twilio.sdk.resource.Resource
      extended by com.twilio.sdk.resource.InstanceResource
          extended by com.twilio.sdk.resource.instance.UsageTrigger

public class UsageTrigger
extends InstanceResource

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

UsageTrigger

public UsageTrigger(TwilioRestClient client)
Instantiates a new usageRecord.

Parameters:
client - the client

UsageTrigger

public UsageTrigger(TwilioRestClient client,
                    String sid)
Instantiates a new usageRecord.

Parameters:
client - the client
sid - the sid

UsageTrigger

public UsageTrigger(TwilioRestClient client,
                    Map<String,Object> properties)
Instantiates a new recordingRecord.

Parameters:
client - the client
properties - the properties
Method Detail

getSid

public String getSid()
Gets the sid.

Returns:
the sid

getDateCreated

public Date getDateCreated()
Gets the date created.

Returns:
the date created

getDateUpdated

public Date getDateUpdated()
Gets the date updated.

Returns:
the date updated

getFriendlyName

public String getFriendlyName()
Gets the friendly name.

Returns:
the friendly name

getRecurring

public Recurrence getRecurring()
Gets the recurrence.

Returns:
the recurrence
See Also:
Recurrence

getUsageCategory

public UsageCategory getUsageCategory()
Gets the usage category.

Returns:
the usage category
See Also:
UsageCategory

getTriggerBy

public Trigger getTriggerBy()
Gets the trigger.

Returns:
the trigger
See Also:
Trigger

getTriggerValue

public BigDecimal getTriggerValue()
Gets the trigger value.

Returns:
the trigger value

getCurrentValue

public BigDecimal getCurrentValue()
Gets the current value.

Returns:
the current value

getUsageRecordUri

public String getUsageRecordUri()
Gets the usage record URI

Returns:
the usage record URI

getCallbackUrl

public String getCallbackUrl()
Gets the callback URL

Returns:
the callback URL

getCallbackMethod

public String getCallbackMethod()
Gets the callback Method

Returns:
the callback Method

getDateFired

public Date getDateFired()
Gets the date fired

Returns:
the date fired

getUri

public String getUri()
Get the URI

Returns:
the URI

getAccountSid

public String getAccountSid()
Get the account sid

Returns:
account sid

delete

public boolean delete()
               throws TwilioRestException
Delete

Returns:
true, if successful
Throws:
TwilioRestException - the twilio rest exception


Copyright © 2011 Twilio, Inc. All Rights Reserved.