public enum PlacementErrorReason extends Enum<PlacementErrorReason>
Java class for PlacementError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="PlacementError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="INVALID_ENTITY_TYPE"/>
<enumeration value="SHARED_INVENTORY_ASSIGNED"/>
<enumeration value="PLACEMENTS_CANNOT_INCLUDE_INVENTORY_FROM_MULTIPLE_DISTRIBUTOR_NETWORKS"/>
<enumeration value="PLACEMENTS_CANNOT_INCLUDE_BOTH_LOCAL_AND_SHARED_INVENTORY"/>
<enumeration value="UNKNOWN"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
INVALID_ENTITY_TYPE
Entity type is something other than inventory or content.
|
PLACEMENTS_CANNOT_INCLUDE_BOTH_LOCAL_AND_SHARED_INVENTORY
Shared inventory and local inventory cannot be in the same placement.
|
PLACEMENTS_CANNOT_INCLUDE_INVENTORY_FROM_MULTIPLE_DISTRIBUTOR_NETWORKS
Shared inventory from one distributor network cannot be in the same placement with
inventory from another distributor.
|
SHARED_INVENTORY_ASSIGNED
Shared inventory cannot be assigned to a placement.
|
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.
|
| Modifier and Type | Method and Description |
|---|---|
static PlacementErrorReason |
fromValue(String v) |
String |
value() |
static PlacementErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PlacementErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PlacementErrorReason INVALID_ENTITY_TYPE
public static final PlacementErrorReason SHARED_INVENTORY_ASSIGNED
public static final PlacementErrorReason PLACEMENTS_CANNOT_INCLUDE_INVENTORY_FROM_MULTIPLE_DISTRIBUTOR_NETWORKS
public static final PlacementErrorReason PLACEMENTS_CANNOT_INCLUDE_BOTH_LOCAL_AND_SHARED_INVENTORY
public static final PlacementErrorReason UNKNOWN
public static PlacementErrorReason[] values()
for (PlacementErrorReason c : PlacementErrorReason.values()) System.out.println(c);
public static PlacementErrorReason 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 PlacementErrorReason fromValue(String v)
Copyright © 2018. All Rights Reserved.