public enum ServingStatus extends Enum<ServingStatus>
Java class for ServingStatus.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="ServingStatus">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="SERVING"/>
<enumeration value="NONE"/>
<enumeration value="ENDED"/>
<enumeration value="PENDING"/>
<enumeration value="SUSPENDED"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
ENDED
The campaign end date has been past.
|
NONE
This is the catch-all if none of the other statuses make sense.
|
PENDING
The campaign start date has not yet been reached.
|
SERVING
The campaign is currently serving ads.
|
SUSPENDED
The campaign has been suspended probably from lack of allocated funds.
|
| Modifier and Type | Method and Description |
|---|---|
static ServingStatus |
fromValue(String v) |
String |
value() |
static ServingStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ServingStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServingStatus SERVING
public static final ServingStatus NONE
public static final ServingStatus ENDED
public static final ServingStatus PENDING
public static final ServingStatus SUSPENDED
public static ServingStatus[] values()
for (ServingStatus c : ServingStatus.values()) System.out.println(c);
public static ServingStatus valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String value()
public static ServingStatus fromValue(String v)
Copyright © 2023. All rights reserved.