Package com.independentsoft.graph
Enum Class Importance
- All Implemented Interfaces:
Serializable,Comparable<Importance>,Constable
Represents the importance level of a message, event, or task in Microsoft Graph.
Importance indicates the priority or urgency of an item. This enumeration is used across various Microsoft Graph resources including messages, events, and tasks to help users prioritize their work.
Usage in Microsoft Graph:
- Messages - Email importance (low, normal, high)
- Events - Meeting or calendar event priority
- Tasks - Task priority level
Example usage:
// Set high importance on a message
Message message = new Message();
message.setImportance(Importance.HIGH);
message.setSubject("Urgent: Please review");
// Set event importance
Event event = new Event();
event.setImportance(Importance.NORMAL);
event.setSubject("Team Meeting");
- Since:
- 1.0
- See Also:
- Message properties, Event properties
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic ImportanceReturns the enum constant of this class with the specified name.static Importance[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LOW
Low importance - item has below-normal priority. -
NORMAL
Normal importance - item has standard priority (default). -
HIGH
High importance - item has above-normal priority and should be addressed urgently. -
NONE
No importance set or unknown value.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-