com.google.api.ads.dfa.lib.client
Enum DfaSession.Environment
java.lang.Object
java.lang.Enum<DfaSession.Environment>
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
PRODUCTION
public static final DfaSession.Environment PRODUCTION
TEST
public static final DfaSession.Environment TEST
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.