Class SyncMapItem
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.preview.sync.service.syncmap.SyncMapItem
-
- All Implemented Interfaces:
Serializable
public class SyncMapItem extends Resource
PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact [email protected].- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SyncMapItem.QueryFromBoundType
static class
SyncMapItem.QueryResultOrder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SyncMapItemCreator
creator(String pathServiceSid, String pathMapSid, String key, Map<String,Object> data)
Create a SyncMapItemCreator to execute create.static SyncMapItemDeleter
deleter(String pathServiceSid, String pathMapSid, String pathKey)
Create a SyncMapItemDeleter to execute delete.boolean
equals(Object o)
static SyncMapItemFetcher
fetcher(String pathServiceSid, String pathMapSid, String pathKey)
Create a SyncMapItemFetcher to execute fetch.static SyncMapItem
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a SyncMapItem object using the provided ObjectMapper.static SyncMapItem
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a SyncMapItem object using the provided ObjectMapper.String
getAccountSid()
Returns The The account_sid.String
getCreatedBy()
Returns The The created_by.Map<String,Object>
getData()
Returns The The data.org.joda.time.DateTime
getDateCreated()
Returns The The date_created.org.joda.time.DateTime
getDateUpdated()
Returns The The date_updated.String
getKey()
Returns The The key.String
getMapSid()
Returns The The map_sid.String
getRevision()
Returns The The revision.String
getServiceSid()
Returns The The service_sid.URI
getUrl()
Returns The The url.int
hashCode()
static SyncMapItemReader
reader(String pathServiceSid, String pathMapSid)
Create a SyncMapItemReader to execute read.String
toString()
static SyncMapItemUpdater
updater(String pathServiceSid, String pathMapSid, String pathKey, Map<String,Object> data)
Create a SyncMapItemUpdater to execute update.
-
-
-
Method Detail
-
fetcher
public static SyncMapItemFetcher fetcher(String pathServiceSid, String pathMapSid, String pathKey)
Create a SyncMapItemFetcher to execute fetch.- Parameters:
pathServiceSid
- The service_sidpathMapSid
- The map_sidpathKey
- The key- Returns:
- SyncMapItemFetcher capable of executing the fetch
-
deleter
public static SyncMapItemDeleter deleter(String pathServiceSid, String pathMapSid, String pathKey)
Create a SyncMapItemDeleter to execute delete.- Parameters:
pathServiceSid
- The service_sidpathMapSid
- The map_sidpathKey
- The key- Returns:
- SyncMapItemDeleter capable of executing the delete
-
creator
public static SyncMapItemCreator creator(String pathServiceSid, String pathMapSid, String key, Map<String,Object> data)
Create a SyncMapItemCreator to execute create.- Parameters:
pathServiceSid
- The service_sidpathMapSid
- The map_sidkey
- The keydata
- The data- Returns:
- SyncMapItemCreator capable of executing the create
-
reader
public static SyncMapItemReader reader(String pathServiceSid, String pathMapSid)
Create a SyncMapItemReader to execute read.- Parameters:
pathServiceSid
- The service_sidpathMapSid
- The map_sid- Returns:
- SyncMapItemReader capable of executing the read
-
updater
public static SyncMapItemUpdater updater(String pathServiceSid, String pathMapSid, String pathKey, Map<String,Object> data)
Create a SyncMapItemUpdater to execute update.- Parameters:
pathServiceSid
- The service_sidpathMapSid
- The map_sidpathKey
- The keydata
- The data- Returns:
- SyncMapItemUpdater capable of executing the update
-
fromJson
public static SyncMapItem fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a SyncMapItem object using the provided ObjectMapper.- Parameters:
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapper- Returns:
- SyncMapItem object represented by the provided JSON
-
fromJson
public static SyncMapItem fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a SyncMapItem object using the provided ObjectMapper.- Parameters:
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapper- Returns:
- SyncMapItem object represented by the provided JSON
-
getKey
public final String getKey()
Returns The The key.- Returns:
- The key
-
getAccountSid
public final String getAccountSid()
Returns The The account_sid.- Returns:
- The account_sid
-
getServiceSid
public final String getServiceSid()
Returns The The service_sid.- Returns:
- The service_sid
-
getMapSid
public final String getMapSid()
Returns The The map_sid.- Returns:
- The map_sid
-
getUrl
public final URI getUrl()
Returns The The url.- Returns:
- The url
-
getRevision
public final String getRevision()
Returns The The revision.- Returns:
- The revision
-
getDateCreated
public final org.joda.time.DateTime getDateCreated()
Returns The The date_created.- Returns:
- The date_created
-
getDateUpdated
public final org.joda.time.DateTime getDateUpdated()
Returns The The date_updated.- Returns:
- The date_updated
-
getCreatedBy
public final String getCreatedBy()
Returns The The created_by.- Returns:
- The created_by
-
-