public class Queue extends SidResource
Modifier and Type | Method and Description |
---|---|
static QueueCreator |
create(String accountSid)
Create a QueueCreator to execute create.
|
static QueueDeleter |
delete(String accountSid,
String sid)
Create a QueueDeleter to execute delete.
|
boolean |
equals(Object o) |
static QueueFetcher |
fetch(String accountSid,
String sid)
Create a QueueFetcher to execute fetch.
|
static Queue |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Queue object using the provided
ObjectMapper.
|
static Queue |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Queue object using the provided ObjectMapper.
|
String |
getAccountSid()
Returns The The account_sid.
|
Integer |
getAverageWaitTime()
Returns The Average wait time of members in the queue.
|
Integer |
getCurrentSize()
Returns The The count of calls currently in the queue..
|
org.joda.time.DateTime |
getDateCreated()
Returns The The date_created.
|
org.joda.time.DateTime |
getDateUpdated()
Returns The The date_updated.
|
String |
getFriendlyName()
Returns The A user-provided string that identifies this queue..
|
Integer |
getMaxSize()
Returns The The max number of calls allowed in the queue.
|
String |
getSid()
Returns The A string that uniquely identifies this queue.
|
String |
getUri()
Returns The The uri.
|
int |
hashCode() |
static QueueReader |
read(String accountSid)
Create a QueueReader to execute read.
|
String |
toString() |
static QueueUpdater |
update(String accountSid,
String sid)
Create a QueueUpdater to execute update.
|
public static QueueFetcher fetch(String accountSid, String sid)
accountSid
- The account_sidsid
- Fetch by unique queue Sidpublic static QueueUpdater update(String accountSid, String sid)
accountSid
- The account_sidsid
- The sidpublic static QueueDeleter delete(String accountSid, String sid)
accountSid
- The account_sidsid
- Delete by unique queue Sidpublic static QueueReader read(String accountSid)
accountSid
- The account_sidpublic static QueueCreator create(String accountSid)
accountSid
- The account_sidpublic static Queue fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static Queue fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getAccountSid()
public final Integer getAverageWaitTime()
public final Integer getCurrentSize()
public final org.joda.time.DateTime getDateCreated()
public final org.joda.time.DateTime getDateUpdated()
public final String getFriendlyName()
public final Integer getMaxSize()
public final String getSid()
getSid
in class SidResource
public final String getUri()
Copyright © 2011 Twilio, Inc. All Rights Reserved.