public enum DraftErrorReason extends Enum<DraftErrorReason>
Java class for DraftError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="DraftError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="CANNOT_CHANGE_ARCHIVED_DRAFT"/>
<enumeration value="CANNOT_CHANGE_PROMOTED_DRAFT"/>
<enumeration value="CANNOT_CHANGE_PROMOTE_FAILED_DRAFT"/>
<enumeration value="CUSTOMER_CANNOT_CREATE_DRAFT"/>
<enumeration value="CAMPAIGN_CANNOT_CREATE_DRAFT"/>
<enumeration value="DUPLICATE_DRAFT_NAME"/>
<enumeration value="INVALID_DRAFT_CHANGE"/>
<enumeration value="INVALID_STATUS_TRANSITION"/>
<enumeration value="MAX_NUMBER_OF_DRAFTS_PER_CAMPAIGN_REACHED"/>
<enumeration value="DRAFT_ERROR"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
CAMPAIGN_CANNOT_CREATE_DRAFT
This campaign is not allowed to create drafts.
|
CANNOT_CHANGE_ARCHIVED_DRAFT
The draft is archived and cannot be modified further.
|
CANNOT_CHANGE_PROMOTE_FAILED_DRAFT
The draft has failed to be promoted and cannot be modified further.
|
CANNOT_CHANGE_PROMOTED_DRAFT
The draft has been promoted and cannot be modified further.
|
CUSTOMER_CANNOT_CREATE_DRAFT
This customer is not allowed to create drafts.
|
DRAFT_ERROR |
DUPLICATE_DRAFT_NAME
A draft with this name already exists.
|
INVALID_DRAFT_CHANGE
This modification cannot be made on a draft.
|
INVALID_STATUS_TRANSITION
The draft cannot be transitioned to the specified status from the its current status.
|
MAX_NUMBER_OF_DRAFTS_PER_CAMPAIGN_REACHED
The campaign has reached the maximum number of drafts that can be created for a campaign
throughout its lifetime.
|
| Modifier and Type | Method and Description |
|---|---|
static DraftErrorReason |
fromValue(String v) |
String |
value() |
static DraftErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DraftErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DraftErrorReason CANNOT_CHANGE_ARCHIVED_DRAFT
public static final DraftErrorReason CANNOT_CHANGE_PROMOTED_DRAFT
public static final DraftErrorReason CANNOT_CHANGE_PROMOTE_FAILED_DRAFT
public static final DraftErrorReason CUSTOMER_CANNOT_CREATE_DRAFT
public static final DraftErrorReason CAMPAIGN_CANNOT_CREATE_DRAFT
public static final DraftErrorReason DUPLICATE_DRAFT_NAME
public static final DraftErrorReason INVALID_DRAFT_CHANGE
public static final DraftErrorReason INVALID_STATUS_TRANSITION
public static final DraftErrorReason MAX_NUMBER_OF_DRAFTS_PER_CAMPAIGN_REACHED
public static final DraftErrorReason DRAFT_ERROR
public static DraftErrorReason[] values()
for (DraftErrorReason c : DraftErrorReason.values()) System.out.println(c);
public static DraftErrorReason 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 DraftErrorReason fromValue(String v)
Copyright © 2023. All rights reserved.