Cloud Storage API v1beta2 (revision 2)



com.google.api.services.storage.model
Class Channel

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.storage.model.Channel
All Implemented Interfaces:
Cloneable, Map<String,Object>

public final class Channel
extends GenericJson

Model definition for Channel.

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 Cloud Storage API. For a detailed explanation see: http://code.google.com/p/google-http-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
Channel()
           
 
Method Summary
 Channel clone()
           
 String getAddress()
          The address of the receiving entity where events are delivered.
 Long getExpiration()
          The expiration instant for this channel if it is defined.
 String getId()
          A UUID for the channel
 String getKind()
          A channel watching an API resource
 Map<String,String> getParams()
          Additional parameters controlling delivery channel behavior
 String getResourceId()
          An opaque id that identifies the resource that is being watched.
 String getResourceUri()
          The canonicalized ID of the watched resource.
 String getToken()
          An arbitrary string associated with the channel that is delivered to the target address with each event delivered over this channel.
 String getType()
          The type of delivery mechanism used by this channel
 Channel set(String fieldName, Object value)
           
 Channel setAddress(String address)
          The address of the receiving entity where events are delivered.
 Channel setExpiration(Long expiration)
          The expiration instant for this channel if it is defined.
 Channel setId(String id)
          A UUID for the channel
 Channel setKind(String kind)
          A channel watching an API resource
 Channel setParams(Map<String,String> params)
          Additional parameters controlling delivery channel behavior
 Channel setResourceId(String resourceId)
          An opaque id that identifies the resource that is being watched.
 Channel setResourceUri(String resourceUri)
          The canonicalized ID of the watched resource.
 Channel setToken(String token)
          An arbitrary string associated with the channel that is delivered to the target address with each event delivered over this channel.
 Channel setType(String type)
          The type of delivery mechanism used by this channel
 
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

Channel

public Channel()
Method Detail

getAddress

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

Returns:
value or null for none

setAddress

public Channel setAddress(String address)
The address of the receiving entity where events are delivered. Specific to the channel type.

Parameters:
address - address or null for none

getExpiration

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

Returns:
value or null for none

setExpiration

public Channel setExpiration(Long expiration)
The expiration instant for this channel if it is defined.

Parameters:
expiration - expiration or null for none

getId

public String getId()
A UUID for the channel

Returns:
value or null for none

setId

public Channel setId(String id)
A UUID for the channel

Parameters:
id - id or null for none

getKind

public String getKind()
A channel watching an API resource

Returns:
value or null for none

setKind

public Channel setKind(String kind)
A channel watching an API resource

Parameters:
kind - kind or null for none

getParams

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

Returns:
value or null for none

setParams

public Channel setParams(Map<String,String> params)
Additional parameters controlling delivery channel behavior

Parameters:
params - params or null for none

getResourceId

public String getResourceId()
An opaque id that identifies the resource that is being watched. Stable across different API versions

Returns:
value or null for none

setResourceId

public Channel setResourceId(String resourceId)
An opaque id that identifies the resource that is being watched. Stable across different API versions

Parameters:
resourceId - resourceId or null for none

getResourceUri

public String getResourceUri()
The canonicalized ID of the watched resource.

Returns:
value or null for none

setResourceUri

public Channel setResourceUri(String resourceUri)
The canonicalized ID of the watched resource.

Parameters:
resourceUri - resourceUri or null for none

getToken

public String getToken()
An arbitrary string associated with the channel that is delivered to the target address with each event delivered over this channel.

Returns:
value or null for none

setToken

public Channel setToken(String token)
An arbitrary string associated with the channel that is delivered to the target address with each event delivered over this channel.

Parameters:
token - token or null for none

getType

public String getType()
The type of delivery mechanism used by this channel

Returns:
value or null for none

setType

public Channel setType(String type)
The type of delivery mechanism used by this channel

Parameters:
type - type or null for none

set

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

clone

public Channel clone()
Overrides:
clone in class GenericJson