public class Reservation extends Resource
Modifier and Type | Class and Description |
---|---|
static class |
Reservation.Status |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static ReservationFetcher |
fetcher(String workspaceSid,
String workerSid,
String sid)
Create a ReservationFetcher to execute fetch.
|
static Reservation |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Reservation object using the provided
ObjectMapper.
|
static Reservation |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Reservation object using the provided
ObjectMapper.
|
String |
getAccountSid()
Returns The The account_sid.
|
org.joda.time.DateTime |
getDateCreated()
Returns The The date_created.
|
org.joda.time.DateTime |
getDateUpdated()
Returns The The date_updated.
|
Reservation.Status |
getReservationStatus()
Returns The The reservation_status.
|
String |
getSid()
Returns The The sid.
|
String |
getTaskSid()
Returns The The task_sid.
|
String |
getWorkerName()
Returns The The worker_name.
|
String |
getWorkerSid()
Returns The The worker_sid.
|
String |
getWorkspaceSid()
Returns The The workspace_sid.
|
int |
hashCode() |
static ReservationReader |
reader(String workspaceSid,
String workerSid)
Create a ReservationReader to execute read.
|
String |
toString() |
static ReservationUpdater |
updater(String workspaceSid,
String workerSid,
String sid)
Create a ReservationUpdater to execute update.
|
public static ReservationReader reader(String workspaceSid, String workerSid)
workspaceSid
- The workspace_sidworkerSid
- The worker_sidpublic static ReservationFetcher fetcher(String workspaceSid, String workerSid, String sid)
workspaceSid
- The workspace_sidworkerSid
- The worker_sidsid
- The sidpublic static ReservationUpdater updater(String workspaceSid, String workerSid, String sid)
workspaceSid
- The workspace_sidworkerSid
- The worker_sidsid
- The sidpublic static Reservation fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static Reservation fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getAccountSid()
public final org.joda.time.DateTime getDateCreated()
public final org.joda.time.DateTime getDateUpdated()
public final Reservation.Status getReservationStatus()
public final String getSid()
public final String getTaskSid()
public final String getWorkerName()
public final String getWorkerSid()
public final String getWorkspaceSid()
Copyright © 2011 Twilio, Inc. All Rights Reserved.