public final class Subscription extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Google Mirror API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Subscription() |
| Modifier and Type | Method and Description |
|---|---|
Subscription |
clone() |
String |
getCallbackUrl()
The URL where notifications should be delivered (must start with https://).
|
String |
getCollection()
The collection to subscribe to.
|
String |
getId()
The ID of the subscription.
|
String |
getKind()
The type of resource.
|
Notification |
getNotification()
Container object for notifications.
|
List<String> |
getOperation()
A list of operations that should be subscribed to.
|
DateTime |
getUpdated()
The time at which this subscription was last modified, formatted according to RFC 3339.
|
String |
getUserToken()
An opaque token sent to the subscriber in notifications so that it can determine the ID of the
user.
|
String |
getVerifyToken()
A secret token sent to the subscriber in notifications so that it can verify that the
notification was generated by Google.
|
Subscription |
set(String fieldName,
Object value) |
Subscription |
setCallbackUrl(String callbackUrl)
The URL where notifications should be delivered (must start with https://).
|
Subscription |
setCollection(String collection)
The collection to subscribe to.
|
Subscription |
setId(String id)
The ID of the subscription.
|
Subscription |
setKind(String kind)
The type of resource.
|
Subscription |
setNotification(Notification notification)
Container object for notifications.
|
Subscription |
setOperation(List<String> operation)
A list of operations that should be subscribed to.
|
Subscription |
setUpdated(DateTime updated)
The time at which this subscription was last modified, formatted according to RFC 3339.
|
Subscription |
setUserToken(String userToken)
An opaque token sent to the subscriber in notifications so that it can determine the ID of the
user.
|
Subscription |
setVerifyToken(String verifyToken)
A secret token sent to the subscriber in notifications so that it can verify that the
notification was generated by Google.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic String getCallbackUrl()
null for nonepublic Subscription setCallbackUrl(String callbackUrl)
callbackUrl - callbackUrl or null for nonepublic String getCollection()
null for nonepublic Subscription setCollection(String collection)
collection - collection or null for nonepublic String getId()
null for nonepublic Subscription setId(String id)
id - id or null for nonepublic String getKind()
null for nonepublic Subscription setKind(String kind)
kind - kind or null for nonepublic Notification getNotification()
null for nonepublic Subscription setNotification(Notification notification)
notification - notification or null for nonepublic List<String> getOperation()
null for nonepublic Subscription setOperation(List<String> operation)
operation - operation or null for nonepublic DateTime getUpdated()
null for nonepublic Subscription setUpdated(DateTime updated)
updated - updated or null for nonepublic String getUserToken()
null for nonepublic Subscription setUserToken(String userToken)
userToken - userToken or null for nonepublic String getVerifyToken()
null for nonepublic Subscription setVerifyToken(String verifyToken)
verifyToken - verifyToken or null for nonepublic Subscription set(String fieldName, Object value)
set in class GenericJsonpublic Subscription clone()
clone in class GenericJson