public class SyncMapItem extends Resource
Modifier and Type | Class and Description |
---|---|
static class |
SyncMapItem.QueryFromBoundType |
static class |
SyncMapItem.QueryResultOrder |
Modifier and Type | Method and 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 SID of the Account that created the resource.
|
String |
getCreatedBy()
Returns The identity of the Map Item's creator.
|
Map<String,Object> |
getData()
Returns An arbitrary, schema-less object that the Map Item stores.
|
org.joda.time.DateTime |
getDateCreated()
Returns The ISO 8601 date and time in GMT when the resource was created.
|
org.joda.time.DateTime |
getDateExpires()
Returns The ISO 8601 date and time in GMT when the Map Item expires.
|
org.joda.time.DateTime |
getDateUpdated()
Returns The ISO 8601 date and time in GMT when the resource was last updated.
|
String |
getKey()
Returns The unique, user-defined key for the Map Item.
|
String |
getMapSid()
Returns The SID of the Sync Map that contains the Map Item.
|
String |
getRevision()
Returns The current revision of the Map Item, represented as a string.
|
String |
getServiceSid()
Returns The SID of the Sync Service that the resource is associated with.
|
URI |
getUrl()
Returns The absolute URL of the Map Item resource.
|
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)
Create a SyncMapItemUpdater to execute update.
|
public static SyncMapItemFetcher fetcher(String pathServiceSid, String pathMapSid, String pathKey)
pathServiceSid
- The SID of the Sync Service with the Sync Map Item
resource to fetchpathMapSid
- The SID of the Sync Map with the Sync Map Item resource to
fetchpathKey
- The key value of the Sync Map Item resource to fetchpublic static SyncMapItemDeleter deleter(String pathServiceSid, String pathMapSid, String pathKey)
pathServiceSid
- The SID of the Sync Service with the Sync Map Item
resource to deletepathMapSid
- The SID of the Sync Map with the Sync Map Item resource to
deletepathKey
- The key value of the Sync Map Item resource to deletepublic static SyncMapItemCreator creator(String pathServiceSid, String pathMapSid, String key, Map<String,Object> data)
pathServiceSid
- The SID of the Sync Service to create the Map Item inpathMapSid
- The SID of the Sync Map to add the new Map Item tokey
- The unique, user-defined key for the Map Itemdata
- A JSON string that represents an arbitrary, schema-less object
that the Map Item storespublic static SyncMapItemReader reader(String pathServiceSid, String pathMapSid)
pathServiceSid
- The SID of the Sync Service with the Map Item
resources to readpathMapSid
- The SID of the Sync Map with the Sync Map Item resource to
fetchpublic static SyncMapItemUpdater updater(String pathServiceSid, String pathMapSid, String pathKey)
pathServiceSid
- The SID of the Sync Service with the Sync Map Item
resource to updatepathMapSid
- The SID of the Sync Map with the Sync Map Item resource to
updatepathKey
- The key value of the Sync Map Item resource to updatepublic static SyncMapItem fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static SyncMapItem fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getKey()
public final String getAccountSid()
public final String getServiceSid()
public final String getMapSid()
public final URI getUrl()
public final String getRevision()
public final Map<String,Object> getData()
public final org.joda.time.DateTime getDateExpires()
public final org.joda.time.DateTime getDateCreated()
public final org.joda.time.DateTime getDateUpdated()
public final String getCreatedBy()
Copyright © 2019 Twilio, Inc. All Rights Reserved.