public enum ContentStatus extends Enum<ContentStatus>
Java class for ContentStatus.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="ContentStatus">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="ACTIVE"/>
<enumeration value="INACTIVE"/>
<enumeration value="ARCHIVED"/>
<enumeration value="UNKNOWN"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
ACTIVE
Indicates the
Content has been created and is eligible to have
ads served against it. |
ARCHIVED
Indicates the
Content has been archived; user-visible. |
INACTIVE
Indicates the
Content has been deactivated and cannot have ads
served against it. |
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.
|
| Modifier and Type | Method and Description |
|---|---|
static ContentStatus |
fromValue(String v) |
String |
value() |
static ContentStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ContentStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ContentStatus ACTIVE
Content has been created and is eligible to have
ads served against it.public static final ContentStatus INACTIVE
Content has been deactivated and cannot have ads
served against it.public static final ContentStatus ARCHIVED
Content has been archived; user-visible.public static final ContentStatus UNKNOWN
public static ContentStatus[] values()
for (ContentStatus c : ContentStatus.values()) System.out.println(c);
public static ContentStatus 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 ContentStatus fromValue(String v)
Copyright © 2018. All Rights Reserved.