public enum PerformanceTargetErrorReason extends Enum<PerformanceTargetErrorReason>
Java class for PerformanceTargetError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="PerformanceTargetError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="SPEND_TARGET_REQUIRES_DATE_RANGE"/>
<enumeration value="VOLUME_TARGET_VALUE_REQUIRES_DATE_RANGE"/>
<enumeration value="START_DATE_AFTER_END_DATE"/>
<enumeration value="INCOMPATIBLE_EFFICIENCY_TARGET_TYPE"/>
<enumeration value="EFFICIENCY_TARGET_VALUE_AND_TYPE_ARE_MUTUALLY_REQUIRED"/>
<enumeration value="OVERLAPPING_DATE_RANGE"/>
<enumeration value="HISTORICAL_PERFORMANCE_TARGETS_CANNOT_BE_MODIFIED"/>
<enumeration value="SPEND_TARGET_AND_SPEND_TARGET_TYPE_ARE_MUTUALLY_REQUIRED"/>
<enumeration value="PERFORMANCE_TARGET_ERROR"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
EFFICIENCY_TARGET_VALUE_AND_TYPE_ARE_MUTUALLY_REQUIRED
Efficiency target value and type have to both be null or set to some value.
|
HISTORICAL_PERFORMANCE_TARGETS_CANNOT_BE_MODIFIED
It is not possible to set performance targets that have already ended.
|
INCOMPATIBLE_EFFICIENCY_TARGET_TYPE
The efficiency target type is incompatible with the volume goal type.
|
OVERLAPPING_DATE_RANGE
A modified or newly added performance target's date range overlaps with one or more other
date ranges of other performance targets assigned to the same parent.
|
PERFORMANCE_TARGET_ERROR
Default error
Used for return value only.
|
SPEND_TARGET_AND_SPEND_TARGET_TYPE_ARE_MUTUALLY_REQUIRED
Spend target and spend target type have to both be null or set to some value.
|
SPEND_TARGET_REQUIRES_DATE_RANGE
Spend target requires both start date and end date to be specified.
|
START_DATE_AFTER_END_DATE
The end date is before the start date.
|
VOLUME_TARGET_VALUE_REQUIRES_DATE_RANGE
Volume target value requires both start date and end date to be specified.
|
| Modifier and Type | Method and Description |
|---|---|
static PerformanceTargetErrorReason |
fromValue(String v) |
String |
value() |
static PerformanceTargetErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PerformanceTargetErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PerformanceTargetErrorReason SPEND_TARGET_REQUIRES_DATE_RANGE
public static final PerformanceTargetErrorReason VOLUME_TARGET_VALUE_REQUIRES_DATE_RANGE
public static final PerformanceTargetErrorReason START_DATE_AFTER_END_DATE
public static final PerformanceTargetErrorReason INCOMPATIBLE_EFFICIENCY_TARGET_TYPE
public static final PerformanceTargetErrorReason EFFICIENCY_TARGET_VALUE_AND_TYPE_ARE_MUTUALLY_REQUIRED
public static final PerformanceTargetErrorReason OVERLAPPING_DATE_RANGE
public static final PerformanceTargetErrorReason HISTORICAL_PERFORMANCE_TARGETS_CANNOT_BE_MODIFIED
public static final PerformanceTargetErrorReason SPEND_TARGET_AND_SPEND_TARGET_TYPE_ARE_MUTUALLY_REQUIRED
public static final PerformanceTargetErrorReason PERFORMANCE_TARGET_ERROR
public static PerformanceTargetErrorReason[] values()
for (PerformanceTargetErrorReason c : PerformanceTargetErrorReason.values()) System.out.println(c);
public static PerformanceTargetErrorReason 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 PerformanceTargetErrorReason fromValue(String v)
Copyright © 2023. All rights reserved.