public class Execution extends Resource
Modifier and Type | Class and Description |
---|---|
static class |
Execution.Status |
Modifier and Type | Method and Description |
---|---|
static ExecutionCreator |
creator(String pathFlowSid,
PhoneNumber to,
PhoneNumber from)
Create a ExecutionCreator to execute create.
|
static ExecutionDeleter |
deleter(String pathFlowSid,
String pathSid)
Create a ExecutionDeleter to execute delete.
|
boolean |
equals(Object o) |
static ExecutionFetcher |
fetcher(String pathFlowSid,
String pathSid)
Create a ExecutionFetcher to execute fetch.
|
static Execution |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Execution object using the provided
ObjectMapper.
|
static Execution |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Execution object using the provided
ObjectMapper.
|
String |
getAccountSid()
Returns The SID of the Account that created the resource.
|
String |
getContactChannelAddress()
Returns The phone number, SIP address or Client identifier that triggered the
Execution.
|
Map<String,Object> |
getContext()
Returns The current state of the flow.
|
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.
|
String |
getFlowSid()
Returns The SID of the Flow.
|
Map<String,String> |
getLinks()
Returns Nested resource URLs.
|
String |
getSid()
Returns The unique string that identifies the resource.
|
Execution.Status |
getStatus()
Returns The status of the Execution.
|
URI |
getUrl()
Returns The absolute URL of the resource.
|
int |
hashCode() |
static ExecutionReader |
reader(String pathFlowSid)
Create a ExecutionReader to execute read.
|
static ExecutionUpdater |
updater(String pathFlowSid,
String pathSid,
Execution.Status status)
Create a ExecutionUpdater to execute update.
|
public static ExecutionReader reader(String pathFlowSid)
pathFlowSid
- The SID of the Flowpublic static ExecutionFetcher fetcher(String pathFlowSid, String pathSid)
pathFlowSid
- The SID of the FlowpathSid
- The SID of the Execution resource to fetchpublic static ExecutionCreator creator(String pathFlowSid, PhoneNumber to, PhoneNumber from)
pathFlowSid
- The SID of the Flowto
- The Contact phone number to start a Studio Flow Executionfrom
- The Twilio phone number or Messaging Service SID to send
messages or initiate calls from during the Flow Executionpublic static ExecutionDeleter deleter(String pathFlowSid, String pathSid)
pathFlowSid
- The SID of the FlowpathSid
- The SID of the Execution resource to deletepublic static ExecutionUpdater updater(String pathFlowSid, String pathSid, Execution.Status status)
pathFlowSid
- The SID of the FlowpathSid
- The SID of the Execution resource to updatestatus
- The status of the Executionpublic static Execution fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static Execution fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getSid()
public final String getAccountSid()
public final String getFlowSid()
public final String getContactChannelAddress()
public final Map<String,Object> getContext()
public final Execution.Status getStatus()
public final ZonedDateTime getDateCreated()
public final ZonedDateTime getDateUpdated()
public final URI getUrl()
public final Map<String,String> getLinks()
Copyright © 2019 Twilio, Inc. All Rights Reserved.