Enum AppPermission
- java.lang.Object
-
- java.lang.Enum<AppPermission>
-
- io.github.cdklabs.projen.github.workflows.AppPermission
-
- All Implemented Interfaces:
Serializable,Comparable<AppPermission>
@Generated(value="jsii-pacmak/1.96.0 (build 921e240)", date="2024-03-28T21:16:43.094Z") @Stability(Experimental) public enum AppPermission extends Enum<AppPermission>
(experimental) The permissions available for an access token for a GitHub App.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AppPermissionvalueOf(String name)Returns the enum constant of this type with the specified name.static AppPermission[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
READ
@Stability(Experimental) public static final AppPermission READ
(experimental) Read-only acccess.
-
WRITE
@Stability(Experimental) public static final AppPermission WRITE
(experimental) Read-write access.
-
ADMIN
@Stability(Experimental) public static final AppPermission ADMIN
(experimental) Read-write and admin access.Not all permissions support
admin.
-
-
Method Detail
-
values
public static AppPermission[] 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 (AppPermission c : AppPermission.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AppPermission 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 nameNullPointerException- if the argument is null
-
-