Class InteractionChannel
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.flexapi.v1.interaction.InteractionChannel
-
- All Implemented Interfaces:
Serializable
public class InteractionChannel extends Resource
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInteractionChannel.ChannelStatusstatic classInteractionChannel.Statusstatic classInteractionChannel.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static InteractionChannelFetcherfetcher(String pathInteractionSid, String pathSid)static InteractionChannelfromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON InputStream into a InteractionChannel object using the provided ObjectMapper.static InteractionChannelfromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON String into a InteractionChannel object using the provided ObjectMapper.IntegergetErrorCode()StringgetErrorMessage()StringgetInteractionSid()Map<String,String>getLinks()StringgetSid()InteractionChannel.ChannelStatusgetStatus()InteractionChannel.TypegetType()URIgetUrl()inthashCode()static InteractionChannelReaderreader(String pathInteractionSid)static InteractionChannelUpdaterupdater(String pathInteractionSid, String pathSid, InteractionChannel.Status status)
-
-
-
Method Detail
-
fetcher
public static InteractionChannelFetcher fetcher(String pathInteractionSid, String pathSid)
-
reader
public static InteractionChannelReader reader(String pathInteractionSid)
-
updater
public static InteractionChannelUpdater updater(String pathInteractionSid, String pathSid, InteractionChannel.Status status)
-
fromJson
public static InteractionChannel fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a InteractionChannel object using the provided ObjectMapper.- Parameters:
json- Raw JSON StringobjectMapper- Jackson ObjectMapper- Returns:
- InteractionChannel object represented by the provided JSON
-
fromJson
public static InteractionChannel fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a InteractionChannel object using the provided ObjectMapper.- Parameters:
json- Raw JSON InputStreamobjectMapper- Jackson ObjectMapper- Returns:
- InteractionChannel object represented by the provided JSON
-
getSid
public final String getSid()
-
getInteractionSid
public final String getInteractionSid()
-
getType
public final InteractionChannel.Type getType()
-
getStatus
public final InteractionChannel.ChannelStatus getStatus()
-
getErrorCode
public final Integer getErrorCode()
-
getErrorMessage
public final String getErrorMessage()
-
getUrl
public final URI getUrl()
-
-