public class Channel extends SidResource
Modifier and Type | Class and Description |
---|---|
static class |
Channel.ChannelType |
Modifier and Type | Method and Description |
---|---|
static ChannelCreator |
create(String serviceSid,
String friendlyName,
String uniqueName)
Create a ChannelCreator to execute create.
|
static ChannelDeleter |
delete(String serviceSid,
String sid)
Create a ChannelDeleter to execute delete.
|
boolean |
equals(Object o) |
static ChannelFetcher |
fetch(String serviceSid,
String sid)
Create a ChannelFetcher to execute fetch.
|
static Channel |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Channel object using the provided
ObjectMapper.
|
static Channel |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Channel object using the provided ObjectMapper.
|
String |
getAccountSid()
Returns The The account_sid.
|
com.fasterxml.jackson.databind.JsonNode |
getAttributes()
Returns The The attributes.
|
String |
getCreatedBy()
Returns The The created_by.
|
org.joda.time.DateTime |
getDateCreated()
Returns The The date_created.
|
org.joda.time.DateTime |
getDateUpdated()
Returns The The date_updated.
|
String |
getFriendlyName()
Returns The The friendly_name.
|
Map<String,String> |
getLinks()
Returns The The links.
|
String |
getServiceSid()
Returns The The service_sid.
|
String |
getSid()
Returns The The sid.
|
Channel.ChannelType |
getType()
Returns The The type.
|
String |
getUniqueName()
Returns The The unique_name.
|
URI |
getUrl()
Returns The The url.
|
int |
hashCode() |
static ChannelReader |
read(String serviceSid)
Create a ChannelReader to execute read.
|
String |
toString() |
static ChannelUpdater |
update(String serviceSid,
String sid)
Create a ChannelUpdater to execute update.
|
public static ChannelFetcher fetch(String serviceSid, String sid)
serviceSid
- The service_sidsid
- The sidpublic static ChannelDeleter delete(String serviceSid, String sid)
serviceSid
- The service_sidsid
- The sidpublic static ChannelCreator create(String serviceSid, String friendlyName, String uniqueName)
serviceSid
- The service_sidfriendlyName
- The friendly_nameuniqueName
- The unique_namepublic static ChannelReader read(String serviceSid)
serviceSid
- The service_sidpublic static ChannelUpdater update(String serviceSid, String sid)
serviceSid
- The service_sidsid
- The sidpublic static Channel fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static Channel fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getSid()
getSid
in class SidResource
public final String getAccountSid()
public final String getServiceSid()
public final String getFriendlyName()
public final String getUniqueName()
public final com.fasterxml.jackson.databind.JsonNode getAttributes()
public final Channel.ChannelType getType()
public final org.joda.time.DateTime getDateCreated()
public final org.joda.time.DateTime getDateUpdated()
public final String getCreatedBy()
public final URI getUrl()
Copyright © 2011 Twilio, Inc. All Rights Reserved.