com.cloudera.api.model
Enum ApiScheduleInterval
java.lang.Object
java.lang.Enum<ApiScheduleInterval>
com.cloudera.api.model.ApiScheduleInterval
- All Implemented Interfaces:
- Serializable, Comparable<ApiScheduleInterval>
public enum ApiScheduleInterval
- extends Enum<ApiScheduleInterval>
Represents the unit for the repeat interval for schedules.
MINUTE
public static final ApiScheduleInterval MINUTE
HOUR
public static final ApiScheduleInterval HOUR
DAY
public static final ApiScheduleInterval DAY
WEEK
public static final ApiScheduleInterval WEEK
MONTH
public static final ApiScheduleInterval MONTH
YEAR
public static final ApiScheduleInterval YEAR
values
public static ApiScheduleInterval[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (ApiScheduleInterval c : ApiScheduleInterval.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ApiScheduleInterval valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.