Package com.twilio.rest.studio.v2
Class Flow
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.studio.v2.Flow
-
- All Implemented Interfaces:
Serializable
public class Flow extends Resource
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Flow.Status
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FlowCreator
creator(String friendlyName, Flow.Status status, Map<String,Object> definition)
static FlowDeleter
deleter(String pathSid)
boolean
equals(Object o)
static FlowFetcher
fetcher(String pathSid)
static Flow
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Flow object using the provided ObjectMapper.static Flow
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Flow object using the provided ObjectMapper.String
getAccountSid()
String
getCommitMessage()
ZonedDateTime
getDateCreated()
ZonedDateTime
getDateUpdated()
Map<String,Object>
getDefinition()
List<Map<String,Object>>
getErrors()
String
getFriendlyName()
Map<String,String>
getLinks()
Integer
getRevision()
String
getSid()
Flow.Status
getStatus()
URI
getUrl()
Boolean
getValid()
List<Map<String,Object>>
getWarnings()
URI
getWebhookUrl()
int
hashCode()
static FlowReader
reader()
static FlowUpdater
updater(String pathSid, Flow.Status status)
-
-
-
Method Detail
-
creator
public static FlowCreator creator(String friendlyName, Flow.Status status, Map<String,Object> definition)
-
deleter
public static FlowDeleter deleter(String pathSid)
-
fetcher
public static FlowFetcher fetcher(String pathSid)
-
reader
public static FlowReader reader()
-
updater
public static FlowUpdater updater(String pathSid, Flow.Status status)
-
fromJson
public static Flow fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Flow object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- Flow object represented by the provided JSON
-
fromJson
public static Flow fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Flow object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- Flow object represented by the provided JSON
-
getSid
public final String getSid()
-
getAccountSid
public final String getAccountSid()
-
getFriendlyName
public final String getFriendlyName()
-
getStatus
public final Flow.Status getStatus()
-
getRevision
public final Integer getRevision()
-
getCommitMessage
public final String getCommitMessage()
-
getValid
public final Boolean getValid()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
getWebhookUrl
public final URI getWebhookUrl()
-
getUrl
public final URI getUrl()
-
-