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 classFlow.Status
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FlowCreatorcreator(String friendlyName, Flow.Status status, Map<String,Object> definition)static FlowDeleterdeleter(String pathSid)booleanequals(Object o)static FlowFetcherfetcher(String pathSid)static FlowfromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON InputStream into a Flow object using the provided ObjectMapper.static FlowfromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON String into a Flow object using the provided ObjectMapper.StringgetAccountSid()StringgetCommitMessage()ZonedDateTimegetDateCreated()ZonedDateTimegetDateUpdated()Map<String,Object>getDefinition()List<Map<String,Object>>getErrors()StringgetFriendlyName()Map<String,String>getLinks()IntegergetRevision()StringgetSid()Flow.StatusgetStatus()URIgetUrl()BooleangetValid()List<Map<String,Object>>getWarnings()URIgetWebhookUrl()inthashCode()static FlowReaderreader()static FlowUpdaterupdater(String pathSid, Flow.Status status)
-
-
-
Method Detail
-
creator
public static FlowCreator creator(String friendlyName, Flow.Status status, Map<String,Object> definition)
-
fetcher
public static FlowFetcher fetcher(String pathSid)
-
deleter
public static FlowDeleter deleter(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()
-
-