public enum LogUploadMode extends Enum<LogUploadMode>
Enum Constant and Description |
---|
ALWAYS |
NEVER |
ONLY_ON_ERROR |
Modifier and Type | Method and Description |
---|---|
boolean |
shouldUploadLogs(Optional<ExitCode> commandExitCode)
Depending on the exit code, returns whether the log should be uploaded.
|
static LogUploadMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LogUploadMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LogUploadMode NEVER
public static final LogUploadMode ONLY_ON_ERROR
public static final LogUploadMode ALWAYS
public static LogUploadMode[] values()
for (LogUploadMode c : LogUploadMode.values()) System.out.println(c);
public static LogUploadMode 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 null