Package com.github.copilot.sdk.generated
Enum Class PermissionCompletedKind
- All Implemented Interfaces:
Serializable,Comparable<PermissionCompletedKind>,Constable
@Generated("copilot-sdk-codegen")
public enum PermissionCompletedKind
extends Enum<PermissionCompletedKind>
The outcome of the permission request
- Since:
- 1.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTheapprovedvariant.Theapproved-for-locationvariant.Theapproved-for-sessionvariant.Thedenied-by-content-exclusion-policyvariant.Thedenied-by-permission-request-hookvariant.Thedenied-by-rulesvariant.Thedenied-interactively-by-uservariant.Thedenied-no-approval-rule-and-could-not-request-from-uservariant. -
Method Summary
Modifier and TypeMethodDescriptionstatic PermissionCompletedKindgetValue()static PermissionCompletedKindReturns the enum constant of this class with the specified name.static PermissionCompletedKind[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
APPROVED
Theapprovedvariant. -
APPROVED_FOR_SESSION
Theapproved-for-sessionvariant. -
APPROVED_FOR_LOCATION
Theapproved-for-locationvariant. -
DENIED_BY_RULES
Thedenied-by-rulesvariant. -
DENIED_NO_APPROVAL_RULE_AND_COULD_NOT_REQUEST_FROM_USER
Thedenied-no-approval-rule-and-could-not-request-from-uservariant. -
DENIED_INTERACTIVELY_BY_USER
Thedenied-interactively-by-uservariant. -
DENIED_BY_CONTENT_EXCLUSION_POLICY
Thedenied-by-content-exclusion-policyvariant. -
DENIED_BY_PERMISSION_REQUEST_HOOK
Thedenied-by-permission-request-hookvariant.
-
-
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
-
getValue
-
fromValue
-