Google Analytics API v3 (revision 41)



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

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

public final class Accounts
extends GenericJson

An account collection provides a list of Analytics accounts to which a user has access. The account collection is the entry point to all management information. Each resource in the collection corresponds to a single Analytics account.

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
Accounts()
           
 
Method Summary
 Accounts clone()
           
 List<Account> getItems()
          A list of accounts.
 Integer getItemsPerPage()
          The maximum number of entries the response can contain, regardless of the actual number of entries returned.
 String getKind()
          Collection type.
 String getNextLink()
          Next link for this account collection.
 String getPreviousLink()
          Previous link for this account collection.
 Integer getStartIndex()
          The starting index of the entries, which is 1 by default or otherwise specified by the start- index query parameter.
 Integer getTotalResults()
          The total number of results for the query, regardless of the number of results in the response.
 String getUsername()
          Email ID of the authenticated user
 Accounts set(String fieldName, Object value)
           
 Accounts setItems(List<Account> items)
          A list of accounts.
 Accounts setItemsPerPage(Integer itemsPerPage)
          The maximum number of entries the response can contain, regardless of the actual number of entries returned.
 Accounts setKind(String kind)
          Collection type.
 Accounts setNextLink(String nextLink)
          Next link for this account collection.
 Accounts setPreviousLink(String previousLink)
          Previous link for this account collection.
 Accounts setStartIndex(Integer startIndex)
          The starting index of the entries, which is 1 by default or otherwise specified by the start- index query parameter.
 Accounts setTotalResults(Integer totalResults)
          The total number of results for the query, regardless of the number of results in the response.
 Accounts setUsername(String username)
          Email ID of the authenticated user
 
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

Accounts

public Accounts()
Method Detail

getItems

public List<Account> getItems()
A list of accounts.

Returns:
value or null for none

setItems

public Accounts setItems(List<Account> items)
A list of accounts.

Parameters:
items - items or null for none

getItemsPerPage

public Integer getItemsPerPage()
The maximum number of entries the response can contain, regardless of the actual number of entries returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter.

Returns:
value or null for none

setItemsPerPage

public Accounts setItemsPerPage(Integer itemsPerPage)
The maximum number of entries the response can contain, regardless of the actual number of entries returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter.

Parameters:
itemsPerPage - itemsPerPage or null for none

getKind

public String getKind()
Collection type.

Returns:
value or null for none

setKind

public Accounts setKind(String kind)
Collection type.

Parameters:
kind - kind or null for none

getNextLink

public String getNextLink()
Next link for this account collection.

Returns:
value or null for none

setNextLink

public Accounts setNextLink(String nextLink)
Next link for this account collection.

Parameters:
nextLink - nextLink or null for none

getPreviousLink

public String getPreviousLink()
Previous link for this account collection.

Returns:
value or null for none

setPreviousLink

public Accounts setPreviousLink(String previousLink)
Previous link for this account collection.

Parameters:
previousLink - previousLink or null for none

getStartIndex

public Integer getStartIndex()
The starting index of the entries, which is 1 by default or otherwise specified by the start- index query parameter.

Returns:
value or null for none

setStartIndex

public Accounts setStartIndex(Integer startIndex)
The starting index of the entries, which is 1 by default or otherwise specified by the start- index query parameter.

Parameters:
startIndex - startIndex or null for none

getTotalResults

public Integer getTotalResults()
The total number of results for the query, regardless of the number of results in the response.

Returns:
value or null for none

setTotalResults

public Accounts setTotalResults(Integer totalResults)
The total number of results for the query, regardless of the number of results in the response.

Parameters:
totalResults - totalResults or null for none

getUsername

public String getUsername()
Email ID of the authenticated user

Returns:
value or null for none

setUsername

public Accounts setUsername(String username)
Email ID of the authenticated user

Parameters:
username - username or null for none

set

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

clone

public Accounts clone()
Overrides:
clone in class GenericJson