public final class Segment 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 Analytics API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Segment() |
Modifier and Type | Method and Description |
---|---|
Segment |
clone() |
DateTime |
getCreated()
Time the segment was created.
|
String |
getDefinition()
Segment definition.
|
String |
getId()
Segment ID.
|
String |
getKind()
Resource type for Analytics segment.
|
String |
getName()
Segment name.
|
String |
getSegmentId()
Segment ID.
|
String |
getSelfLink()
Link for this segment.
|
String |
getType()
Type for a segment.
|
DateTime |
getUpdated()
Time the segment was last modified.
|
Segment |
set(String fieldName,
Object value) |
Segment |
setCreated(DateTime created)
Time the segment was created.
|
Segment |
setDefinition(String definition)
Segment definition.
|
Segment |
setId(String id)
Segment ID.
|
Segment |
setKind(String kind)
Resource type for Analytics segment.
|
Segment |
setName(String name)
Segment name.
|
Segment |
setSegmentId(String segmentId)
Segment ID.
|
Segment |
setSelfLink(String selfLink)
Link for this segment.
|
Segment |
setType(String type)
Type for a segment.
|
Segment |
setUpdated(DateTime updated)
Time the segment was last modified.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public DateTime getCreated()
null
for nonepublic Segment setCreated(DateTime created)
created
- created or null
for nonepublic String getDefinition()
null
for nonepublic Segment setDefinition(String definition)
definition
- definition or null
for nonepublic String getId()
null
for nonepublic String getKind()
null
for nonepublic Segment setKind(String kind)
kind
- kind or null
for nonepublic String getName()
null
for nonepublic String getSegmentId()
null
for nonepublic Segment setSegmentId(String segmentId)
segmentId
- segmentId or null
for nonepublic String getSelfLink()
null
for nonepublic Segment setSelfLink(String selfLink)
selfLink
- selfLink or null
for nonepublic String getType()
null
for nonepublic Segment setType(String type)
type
- type or null
for nonepublic DateTime getUpdated()
null
for nonepublic Segment setUpdated(DateTime updated)
updated
- updated or null
for nonepublic Segment set(String fieldName, Object value)
set
in class GenericJson
public Segment clone()
clone
in class GenericJson