public class Queue extends Resource
Modifier and Type | Method and Description |
---|---|
static QueueCreator |
creator()
Create a QueueCreator to execute create.
|
static QueueCreator |
creator(String accountSid)
Create a QueueCreator to execute create.
|
static QueueDeleter |
deleter(String sid)
Create a QueueDeleter to execute delete.
|
static QueueDeleter |
deleter(String accountSid,
String sid)
Create a QueueDeleter to execute delete.
|
boolean |
equals(Object o) |
static QueueFetcher |
fetcher(String sid)
Create a QueueFetcher to execute fetch.
|
static QueueFetcher |
fetcher(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 |
reader()
Create a QueueReader to execute read.
|
static QueueReader |
reader(String accountSid)
Create a QueueReader to execute read.
|
String |
toString() |
static QueueUpdater |
updater(String sid)
Create a QueueUpdater to execute update.
|
static QueueUpdater |
updater(String accountSid,
String sid)
Create a QueueUpdater to execute update.
|
public static QueueFetcher fetcher(String accountSid, String sid)
accountSid
- The account_sidsid
- Fetch by unique queue Sidpublic static QueueFetcher fetcher(String sid)
sid
- Fetch by unique queue Sidpublic static QueueUpdater updater(String accountSid, String sid)
accountSid
- The account_sidsid
- The sidpublic static QueueUpdater updater(String sid)
sid
- The sidpublic static QueueDeleter deleter(String accountSid, String sid)
accountSid
- The account_sidsid
- Delete by unique queue Sidpublic static QueueDeleter deleter(String sid)
sid
- Delete by unique queue Sidpublic static QueueReader reader(String accountSid)
accountSid
- The account_sidpublic static QueueReader reader()
public static QueueCreator creator(String accountSid)
accountSid
- The account_sidpublic static QueueCreator creator()
public 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()
public final String getUri()
Copyright © 2011 Twilio, Inc. All Rights Reserved.