public abstract class InstanceResource<C extends TwilioClient> extends Resource<C>
| Constructor and Description |
|---|
InstanceResource(C client)
Instantiates a new instance resource.
|
InstanceResource(C client,
Map<String,Object> properties)
Instantiates a new instance resource.
|
InstanceResource(C client,
Map<String,Object> properties,
Map<String,String> filters)
Instantiates a new instance resource.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getCastedObject(String name)
Gets property of Instance and attempts to cast to
desired result
|
Object |
getObject(String name)
Gets the property as an Object.
|
String |
getProperty(String name)
Gets the property.
|
String |
toJSON()
Return a JSON representation of the properties of the object that are currently loaded
|
void |
update(List<org.apache.http.NameValuePair> params)
Update.
|
void |
update(Map<String,String> params)
Update.
|
setRequestAccountSidpublic InstanceResource(C client)
client - the clientpublic InstanceResource(C client, Map<String,Object> properties)
client - the clientproperties - the propertiespublic String getProperty(String name)
name - the namepublic Object getObject(String name)
name - the name of the propertypublic <T> T getCastedObject(String name)
name - name of propertypublic void update(Map<String,String> params) throws TwilioRestException
params - the paramsTwilioRestException - the twilio rest exceptionpublic void update(List<org.apache.http.NameValuePair> params) throws TwilioRestException
params - the params listTwilioRestException - the twilio rest exceptionpublic String toJSON()
Copyright © 2011 Twilio, Inc. All Rights Reserved.