com.google.api.ads.adwords.lib.client
Enum AdWordsSession.Environment

java.lang.Object
  extended by java.lang.Enum<AdWordsSession.Environment>
      extended by com.google.api.ads.adwords.lib.client.AdWordsSession.Environment
All Implemented Interfaces:
Endpoint, Serializable, Comparable<AdWordsSession.Environment>
Enclosing class:
AdWordsSession

public static enum AdWordsSession.Environment
extends Enum<AdWordsSession.Environment>
implements Endpoint

Enum representing the endpoint server, aka environment.

Author:
Kevin Winter

Enum Constant Summary
PRODUCTION
           
SANDBOX
           
 
Method Summary
 String getEndpoint()
          Returns the endpoint to use.
static AdWordsSession.Environment valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AdWordsSession.Environment[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

PRODUCTION

public static final AdWordsSession.Environment PRODUCTION

SANDBOX

public static final AdWordsSession.Environment SANDBOX
Method Detail

values

public static AdWordsSession.Environment[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (AdWordsSession.Environment c : AdWordsSession.Environment.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static AdWordsSession.Environment valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getEndpoint

public String getEndpoint()
Description copied from interface: Endpoint
Returns the endpoint to use.

Specified by:
getEndpoint in interface Endpoint
Returns:
the endpoint


Copyright © 2012. All Rights Reserved.