com.twilio.sdk.resource.instance
Class UsageRecord

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

public class UsageRecord
extends InstanceResource

The Class Usage.

For more information see https://www.twilio.com/docs/api/rest/usage-records


Constructor Summary
UsageRecord(TwilioRestClient client)
          Instantiates a new usageRecord.
UsageRecord(TwilioRestClient client, Map<String,Object> properties)
          Instantiates a new UsageRecord.
UsageRecord(TwilioRestClient client, String sid)
          Instantiates a new usageRecord.
 
Method Summary
 UsageCategory getCategory()
           
 Long getCount()
           
 String getCountUnit()
           
 String getCountUnits()
          Deprecated. 
 String getDescription()
           
 Date getEndDate()
           
 BigDecimal getPrice()
           
 String getPriceUnit()
           
 Date getStartDate()
           
 String[] getSubresourceUris()
           
 String getUri()
           
 BigDecimal getUsage()
           
 String getUsageUnit()
           
 String getUsageUnits()
          Deprecated. 
 
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

UsageRecord

public UsageRecord(TwilioRestClient client)
Instantiates a new usageRecord.

Parameters:
client - the client

UsageRecord

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

Parameters:
client - the client
sid - the sid

UsageRecord

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

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

getCategory

public UsageCategory getCategory()

getDescription

public String getDescription()

getStartDate

public Date getStartDate()

getEndDate

public Date getEndDate()

getUsage

public BigDecimal getUsage()

getUsageUnits

@Deprecated
public String getUsageUnits()
Deprecated. 


getUsageUnit

public String getUsageUnit()

getCount

public Long getCount()

getCountUnits

@Deprecated
public String getCountUnits()
Deprecated. 


getCountUnit

public String getCountUnit()

getPrice

public BigDecimal getPrice()

getPriceUnit

public String getPriceUnit()

getUri

public String getUri()

getSubresourceUris

public String[] getSubresourceUris()


Copyright © 2011 Twilio, Inc. All Rights Reserved.