Calendar API v3 (revision 41)



com.google.api.services.calendar.model
Class Subscription

java.lang.Object
  extended by java.util.AbstractMap<String,Object>
      extended by com.google.api.client.util.GenericData
          extended by com.google.api.client.json.GenericJson
              extended by com.google.api.services.calendar.model.Subscription
All Implemented Interfaces:
Cloneable, Map<String,Object>

public final class Subscription
extends GenericJson

Model definition for Subscription.

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 Calendar API. For a detailed explanation see: http://code.google.com/p/google-api-java-client/wiki/Json

Author:
Google, Inc.

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
Subscription()
           
 
Method Summary
 Subscription clone()
           
 String getAddress()
          The address of the receiving entity where notifications are delivered.
 String getChannel()
          The delivery channel mechanism to use for notifications
 Map<String,String> getChannelParams()
          Additional parameters controlling delivery channel behavior
 String getClientToken()
          An arbitrary string associated with the subscription that is delivered to the target address with each notification for this subscription.
 Long getExpiration()
          The expiration instant for this subscription if it is defined.
 String getId()
          A UUID for the subscription
 String getKind()
          A subscription to an API resource
 String getTopicId()
          An opaque topic id that identifies the backend resource which has been subscribed to.
 String getTopicUri()
          The canonicalized URI of the subscribed-to resource.
 Subscription set(String fieldName, Object value)
           
 Subscription setAddress(String address)
          The address of the receiving entity where notifications are delivered.
 Subscription setChannel(String channel)
          The delivery channel mechanism to use for notifications
 Subscription setChannelParams(Map<String,String> channelParams)
          Additional parameters controlling delivery channel behavior
 Subscription setClientToken(String clientToken)
          An arbitrary string associated with the subscription that is delivered to the target address with each notification for this subscription.
 Subscription setExpiration(Long expiration)
          The expiration instant for this subscription if it is defined.
 Subscription setId(String id)
          A UUID for the subscription
 Subscription setKind(String kind)
          A subscription to an API resource
 Subscription setTopicId(String topicId)
          An opaque topic id that identifies the backend resource which has been subscribed to.
 Subscription setTopicUri(String topicUri)
          The canonicalized URI of the subscribed-to resource.
 
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
 
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
 
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Subscription

public Subscription()
Method Detail

getAddress

public String getAddress()
The address of the receiving entity where notifications are delivered. Specific to the channel mechanism.

Returns:
value or null for none

setAddress

public Subscription setAddress(String address)
The address of the receiving entity where notifications are delivered. Specific to the channel mechanism.

Parameters:
address - address or null for none

getChannel

public String getChannel()
The delivery channel mechanism to use for notifications

Returns:
value or null for none

setChannel

public Subscription setChannel(String channel)
The delivery channel mechanism to use for notifications

Parameters:
channel - channel or null for none

getChannelParams

public Map<String,String> getChannelParams()
Additional parameters controlling delivery channel behavior

Returns:
value or null for none

setChannelParams

public Subscription setChannelParams(Map<String,String> channelParams)
Additional parameters controlling delivery channel behavior

Parameters:
channelParams - channelParams or null for none

getClientToken

public String getClientToken()
An arbitrary string associated with the subscription that is delivered to the target address with each notification for this subscription.

Returns:
value or null for none

setClientToken

public Subscription setClientToken(String clientToken)
An arbitrary string associated with the subscription that is delivered to the target address with each notification for this subscription.

Parameters:
clientToken - clientToken or null for none

getExpiration

public Long getExpiration()
The expiration instant for this subscription if it is defined.

Returns:
value or null for none

setExpiration

public Subscription setExpiration(Long expiration)
The expiration instant for this subscription if it is defined.

Parameters:
expiration - expiration or null for none

getId

public String getId()
A UUID for the subscription

Returns:
value or null for none

setId

public Subscription setId(String id)
A UUID for the subscription

Parameters:
id - id or null for none

getKind

public String getKind()
A subscription to an API resource

Returns:
value or null for none

setKind

public Subscription setKind(String kind)
A subscription to an API resource

Parameters:
kind - kind or null for none

getTopicId

public String getTopicId()
An opaque topic id that identifies the backend resource which has been subscribed to. Stable across different API versions

Returns:
value or null for none

setTopicId

public Subscription setTopicId(String topicId)
An opaque topic id that identifies the backend resource which has been subscribed to. Stable across different API versions

Parameters:
topicId - topicId or null for none

getTopicUri

public String getTopicUri()
The canonicalized URI of the subscribed-to resource.

Returns:
value or null for none

setTopicUri

public Subscription setTopicUri(String topicUri)
The canonicalized URI of the subscribed-to resource.

Parameters:
topicUri - topicUri or null for none

set

public Subscription set(String fieldName,
                        Object value)
Overrides:
set in class GenericJson

clone

public Subscription clone()
Overrides:
clone in class GenericJson