public enum RetentionAction extends java.lang.Enum<RetentionAction>
| Enum Constant and Description |
|---|
DELETE_AND_ALLOW_RECOVERY
This action emulates the behavior when the Deleted Items folder is emptied.
|
MARK_AS_PAST_RETENTION_LIMIT
This action marks a message as expired after it reaches its retention age.
|
MOVE_TO_ARCHIVE
This action moves a message to the user's archive mailbox.
|
MOVE_TO_DELETED_ITEMS
This action will move the message to the Deleted Items folder.
|
MOVE_TO_FOLDER
This action will move the message to a folder.
|
NONE
None.
|
PERMANENTLY_DELETE
This action permanently deletes a message.
|
| Modifier and Type | Method and Description |
|---|---|
static RetentionAction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RetentionAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RetentionAction MOVE_TO_DELETED_ITEMS
public static final RetentionAction MOVE_TO_FOLDER
public static final RetentionAction DELETE_AND_ALLOW_RECOVERY
public static final RetentionAction PERMANENTLY_DELETE
public static final RetentionAction MARK_AS_PAST_RETENTION_LIMIT
public static final RetentionAction MOVE_TO_ARCHIVE
public static final RetentionAction NONE
public static RetentionAction[] values()
for (RetentionAction c : RetentionAction.values()) System.out.println(c);
public static RetentionAction 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 null