Package com.twilio.rest.events.v1
Class Sink
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.events.v1.Sink
-
- All Implemented Interfaces:
Serializable
public class Sink extends Resource
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSink.SinkTypestatic classSink.Status
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SinkCreatorcreator(String description, Map<String,Object> sinkConfiguration, Sink.SinkType sinkType)static SinkDeleterdeleter(String pathSid)booleanequals(Object o)static SinkFetcherfetcher(String pathSid)static SinkfromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON InputStream into a Sink object using the provided ObjectMapper.static SinkfromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON String into a Sink object using the provided ObjectMapper.ZonedDateTimegetDateCreated()ZonedDateTimegetDateUpdated()StringgetDescription()Map<String,String>getLinks()StringgetSid()Map<String,Object>getSinkConfiguration()Sink.SinkTypegetSinkType()Sink.StatusgetStatus()URIgetUrl()inthashCode()static SinkReaderreader()static SinkUpdaterupdater(String pathSid, String description)
-
-
-
Method Detail
-
creator
public static SinkCreator creator(String description, Map<String,Object> sinkConfiguration, Sink.SinkType sinkType)
-
fetcher
public static SinkFetcher fetcher(String pathSid)
-
deleter
public static SinkDeleter deleter(String pathSid)
-
reader
public static SinkReader reader()
-
updater
public static SinkUpdater updater(String pathSid, String description)
-
fromJson
public static Sink fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Sink object using the provided ObjectMapper.- Parameters:
json- Raw JSON StringobjectMapper- Jackson ObjectMapper- Returns:
- Sink object represented by the provided JSON
-
fromJson
public static Sink fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Sink object using the provided ObjectMapper.- Parameters:
json- Raw JSON InputStreamobjectMapper- Jackson ObjectMapper- Returns:
- Sink object represented by the provided JSON
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
getDescription
public final String getDescription()
-
getSid
public final String getSid()
-
getSinkType
public final Sink.SinkType getSinkType()
-
getStatus
public final Sink.Status getStatus()
-
getUrl
public final URI getUrl()
-
-