com.google.api.ads.dfa.lib.client
Enum DfaSession.Environment

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

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

Enum representing the endpoint server, aka environment.

Author:
Kevin Winter

Enum Constant Summary
PRODUCTION
           
TEST
           
 
Method Summary
 String getEndpoint()
          Returns the endpoint to use.
static DfaSession.Environment valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DfaSession.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 DfaSession.Environment PRODUCTION

TEST

public static final DfaSession.Environment TEST
Method Detail

values

public static DfaSession.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 (DfaSession.Environment c : DfaSession.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 DfaSession.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.