Google Analytics API v3 (revision 41)



com.google.api.services.analytics.model
Class Segment

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

public final class Segment
extends GenericJson

JSON template for an Analytics advanced segment.

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 Analytics 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
Segment()
           
 
Method Summary
 Segment clone()
           
 DateTime getCreated()
          Time the advanced segment was created.
 String getDefinition()
          Advanced segment definition.
 String getId()
          Advanced segment ID.
 String getKind()
          Resource type for Analytics advanced segment.
 String getName()
          Advanced segment name.
 String getSegmentId()
          Segment ID.
 String getSelfLink()
          Link for this advanced segment.
 DateTime getUpdated()
          Time the advanced segment was last modified.
 Segment set(String fieldName, Object value)
           
 Segment setCreated(DateTime created)
          Time the advanced segment was created.
 Segment setDefinition(String definition)
          Advanced segment definition.
 Segment setId(String id)
          Advanced segment ID.
 Segment setKind(String kind)
          Resource type for Analytics advanced segment.
 Segment setName(String name)
          Advanced segment name.
 Segment setSegmentId(String segmentId)
          Segment ID.
 Segment setSelfLink(String selfLink)
          Link for this advanced segment.
 Segment setUpdated(DateTime updated)
          Time the advanced segment was last modified.
 
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

Segment

public Segment()
Method Detail

getCreated

public DateTime getCreated()
Time the advanced segment was created.

Returns:
value or null for none

setCreated

public Segment setCreated(DateTime created)
Time the advanced segment was created.

Parameters:
created - created or null for none

getDefinition

public String getDefinition()
Advanced segment definition.

Returns:
value or null for none

setDefinition

public Segment setDefinition(String definition)
Advanced segment definition.

Parameters:
definition - definition or null for none

getId

public String getId()
Advanced segment ID.

Returns:
value or null for none

setId

public Segment setId(String id)
Advanced segment ID.

Parameters:
id - id or null for none

getKind

public String getKind()
Resource type for Analytics advanced segment.

Returns:
value or null for none

setKind

public Segment setKind(String kind)
Resource type for Analytics advanced segment.

Parameters:
kind - kind or null for none

getName

public String getName()
Advanced segment name.

Returns:
value or null for none

setName

public Segment setName(String name)
Advanced segment name.

Parameters:
name - name or null for none

getSegmentId

public String getSegmentId()
Segment ID. Can be used with the 'segment' parameter in Data Feed.

Returns:
value or null for none

setSegmentId

public Segment setSegmentId(String segmentId)
Segment ID. Can be used with the 'segment' parameter in Data Feed.

Parameters:
segmentId - segmentId or null for none

getSelfLink

public String getSelfLink()
Link for this advanced segment.

Returns:
value or null for none

setSelfLink

public Segment setSelfLink(String selfLink)
Link for this advanced segment.

Parameters:
selfLink - selfLink or null for none

getUpdated

public DateTime getUpdated()
Time the advanced segment was last modified.

Returns:
value or null for none

setUpdated

public Segment setUpdated(DateTime updated)
Time the advanced segment was last modified.

Parameters:
updated - updated or null for none

set

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

clone

public Segment clone()
Overrides:
clone in class GenericJson