public class FlowRevision extends Resource
Modifier and Type | Class and Description |
---|---|
static class |
FlowRevision.Status |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static FlowRevisionFetcher |
fetcher(String pathSid,
String pathRevision)
Create a FlowRevisionFetcher to execute fetch.
|
static FlowRevision |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a FlowRevision object using the provided
ObjectMapper.
|
static FlowRevision |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a FlowRevision object using the provided
ObjectMapper.
|
String |
getAccountSid()
Returns The SID of the Account that created the resource.
|
String |
getCommitMessage()
Returns Description of change made in the revision.
|
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,Object> |
getDefinition()
Returns JSON representation of flow definition.
|
List<Map<String,Object>> |
getErrors()
Returns List of error in the flow definition.
|
String |
getFriendlyName()
Returns The string that you assigned to describe the Flow.
|
Integer |
getRevision()
Returns The latest revision number of the Flow's definition.
|
String |
getSid()
Returns The unique string that identifies the resource.
|
FlowRevision.Status |
getStatus()
Returns The status of the Flow.
|
URI |
getUrl()
Returns The absolute URL of the resource.
|
Boolean |
getValid()
Returns Boolean if the flow definition is valid.
|
int |
hashCode() |
static FlowRevisionReader |
reader(String pathSid)
Create a FlowRevisionReader to execute read.
|
public static FlowRevisionReader reader(String pathSid)
pathSid
- The SID that identifies the resource to fetchpublic static FlowRevisionFetcher fetcher(String pathSid, String pathRevision)
pathSid
- The SID that identifies the resource to fetchpathRevision
- Specific Revision number or can be `LatestPublished` and
`LatestRevision`public static FlowRevision fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static FlowRevision 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 getFriendlyName()
public final Map<String,Object> getDefinition()
public final FlowRevision.Status getStatus()
public final Integer getRevision()
public final String getCommitMessage()
public final Boolean getValid()
public final List<Map<String,Object>> getErrors()
public final ZonedDateTime getDateCreated()
public final ZonedDateTime getDateUpdated()
public final URI getUrl()
Copyright © 2019 Twilio, Inc. All Rights Reserved.