public enum RecordAction extends java.lang.Enum<RecordAction>
| Enum Constant and Description |
|---|
APPROVE |
CREATE |
DELETE |
DISCARD |
REJECT |
UPDATE |
| Modifier and Type | Field and Description |
|---|---|
boolean |
isDelete |
java.lang.String |
message |
DocStatus |
status |
| Modifier and Type | Method and Description |
|---|---|
boolean |
notCreateOrUpdate() |
org.elasticsearch.action.DocWriteRequest<?> |
request(IndexRecord record) |
static RecordAction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RecordAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RecordAction CREATE
public static final RecordAction UPDATE
public static final RecordAction DELETE
public static final RecordAction APPROVE
public static final RecordAction REJECT
public static final RecordAction DISCARD
public final DocStatus status
public final java.lang.String message
public final boolean isDelete
public static RecordAction[] values()
for (RecordAction c : RecordAction.values()) System.out.println(c);
public static RecordAction valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean notCreateOrUpdate()
public org.elasticsearch.action.DocWriteRequest<?> request(IndexRecord record)