Package org.kohsuke.github
Enum RateLimitTarget
- java.lang.Object
-
- java.lang.Enum<RateLimitTarget>
-
- org.kohsuke.github.RateLimitTarget
-
- All Implemented Interfaces:
Serializable
,Comparable<RateLimitTarget>
public enum RateLimitTarget extends Enum<RateLimitTarget>
Specifies the rate limit record of an operation.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CORE
Selects or updates theGHRateLimit.getCore()
record.GRAPHQL
Selects or updates theGHRateLimit.getGraphQL()
record.INTEGRATION_MANIFEST
Selects or updates theGHRateLimit.getIntegrationManifest()
record.NONE
Selects no rate limit.SEARCH
Selects or updates theGHRateLimit.getSearch()
record.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RateLimitTarget
valueOf(String name)
Returns the enum constant of this type with the specified name.static RateLimitTarget[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CORE
public static final RateLimitTarget CORE
Selects or updates theGHRateLimit.getCore()
record.
-
SEARCH
public static final RateLimitTarget SEARCH
Selects or updates theGHRateLimit.getSearch()
record.
-
GRAPHQL
public static final RateLimitTarget GRAPHQL
Selects or updates theGHRateLimit.getGraphQL()
record.
-
INTEGRATION_MANIFEST
public static final RateLimitTarget INTEGRATION_MANIFEST
Selects or updates theGHRateLimit.getIntegrationManifest()
record.
-
NONE
public static final RateLimitTarget NONE
Selects no rate limit. This request uses no rate limit. If the response header includes rate limit information, it will apply toCORE
.
-
-
Method Detail
-
values
public static RateLimitTarget[] 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 (RateLimitTarget c : RateLimitTarget.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RateLimitTarget 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
-
-