forked from microsoftgraph/msgraph-sdk-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAccessPackageRequestState.java
More file actions
41 lines (39 loc) · 1.53 KB
/
Copy pathAccessPackageRequestState.java
File metadata and controls
41 lines (39 loc) · 1.53 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
package com.microsoft.graph.models;
import com.microsoft.kiota.serialization.ValuedEnum;
import java.util.Objects;
@jakarta.annotation.Generated("com.microsoft.kiota")
public enum AccessPackageRequestState implements ValuedEnum {
Submitted("submitted"),
PendingApproval("pendingApproval"),
Delivering("delivering"),
Delivered("delivered"),
DeliveryFailed("deliveryFailed"),
Denied("denied"),
Scheduled("scheduled"),
Canceled("canceled"),
PartiallyDelivered("partiallyDelivered"),
UnknownFutureValue("unknownFutureValue");
public final String value;
AccessPackageRequestState(final String value) {
this.value = value;
}
@jakarta.annotation.Nonnull
public String getValue() { return this.value; }
@jakarta.annotation.Nullable
public static AccessPackageRequestState forValue(@jakarta.annotation.Nonnull final String searchValue) {
Objects.requireNonNull(searchValue);
switch(searchValue) {
case "submitted": return Submitted;
case "pendingApproval": return PendingApproval;
case "delivering": return Delivering;
case "delivered": return Delivered;
case "deliveryFailed": return DeliveryFailed;
case "denied": return Denied;
case "scheduled": return Scheduled;
case "canceled": return Canceled;
case "partiallyDelivered": return PartiallyDelivered;
case "unknownFutureValue": return UnknownFutureValue;
default: return null;
}
}
}