forked from microsoftgraph/msgraph-sdk-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathActionState.java
More file actions
45 lines (43 loc) · 1.38 KB
/
Copy pathActionState.java
File metadata and controls
45 lines (43 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package com.microsoft.graph.models;
import com.microsoft.kiota.serialization.ValuedEnum;
import java.util.Objects;
/**
* State of the action on the device
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public enum ActionState implements ValuedEnum {
/** Not a valid action state */
None("none"),
/** Action is pending */
Pending("pending"),
/** Action has been cancelled. */
Canceled("canceled"),
/** Action is active. */
Active("active"),
/** Action completed without errors. */
Done("done"),
/** Action failed */
Failed("failed"),
/** Action is not supported. */
NotSupported("notSupported");
public final String value;
ActionState(final String value) {
this.value = value;
}
@jakarta.annotation.Nonnull
public String getValue() { return this.value; }
@jakarta.annotation.Nullable
public static ActionState forValue(@jakarta.annotation.Nonnull final String searchValue) {
Objects.requireNonNull(searchValue);
switch(searchValue) {
case "none": return None;
case "pending": return Pending;
case "canceled": return Canceled;
case "active": return Active;
case "done": return Done;
case "failed": return Failed;
case "notSupported": return NotSupported;
default: return null;
}
}
}