public class Reservation extends Resource
Modifier and Type | Class and Description |
---|---|
static class |
Reservation.CallStatus |
static class |
Reservation.ConferenceEvent |
static class |
Reservation.Status |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static ReservationFetcher |
fetcher(String pathWorkspaceSid,
String pathWorkerSid,
String pathSid)
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 SID of the Account that created the resource.
|
ZonedDateTime |
getDateCreated()
Returns The ISO 8601 date and time in GMT when the resource was created.
|
ZonedDateTime |
getDateUpdated()
Returns The ISO 8601 date and time in GMT when the resource was last updated.
|
Map<String,String> |
getLinks()
Returns The URLs of related resources.
|
Reservation.Status |
getReservationStatus()
Returns The current status of the reservation.
|
String |
getSid()
Returns The unique string that identifies the resource.
|
String |
getTaskSid()
Returns The SID of the reserved Task resource.
|
URI |
getUrl()
Returns The absolute URL of the WorkerReservation resource.
|
String |
getWorkerName()
Returns The friendly_name of the Worker that is reserved.
|
String |
getWorkerSid()
Returns The SID of the reserved Worker resource.
|
String |
getWorkspaceSid()
Returns The SID of the Workspace that this worker is contained within..
|
int |
hashCode() |
static ReservationReader |
reader(String pathWorkspaceSid,
String pathWorkerSid)
Create a ReservationReader to execute read.
|
static ReservationUpdater |
updater(String pathWorkspaceSid,
String pathWorkerSid,
String pathSid)
Create a ReservationUpdater to execute update.
|
public static ReservationReader reader(String pathWorkspaceSid, String pathWorkerSid)
pathWorkspaceSid
- The SID of the Workspace with the WorkerReservation
resources to readpathWorkerSid
- The SID of the reserved Worker resource with the
WorkerReservation resources to readpublic static ReservationFetcher fetcher(String pathWorkspaceSid, String pathWorkerSid, String pathSid)
pathWorkspaceSid
- The SID of the Workspace with the WorkerReservation
resource to fetchpathWorkerSid
- The SID of the reserved Worker resource with the
WorkerReservation resource to fetchpathSid
- The SID of the WorkerReservation resource to fetchpublic static ReservationUpdater updater(String pathWorkspaceSid, String pathWorkerSid, String pathSid)
pathWorkspaceSid
- The SID of the Workspace with the WorkerReservation
resources to updatepathWorkerSid
- The SID of the reserved Worker resource with the
WorkerReservation resources to updatepathSid
- The SID of the WorkerReservation resource to updatepublic 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 ZonedDateTime getDateCreated()
public final ZonedDateTime 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()
public final URI getUrl()
public final Map<String,String> getLinks()
Copyright © 2019 Twilio, Inc. All Rights Reserved.