- All Implemented Interfaces:
Serializable
,Comparable<RateLimitTarget>
Specifies the rate limit record of an operation.
-
Enum Constant Summary
Enum ConstantDescriptionSelects or updates theGHRateLimit.getCore()
record.Selects or updates theGHRateLimit.getGraphQL()
record.Selects or updates theGHRateLimit.getIntegrationManifest()
record.Selects no rate limit.Selects or updates theGHRateLimit.getSearch()
record. -
Method Summary
Modifier and TypeMethodDescriptionstatic RateLimitTarget
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 Details
-
CORE
Selects or updates theGHRateLimit.getCore()
record. -
SEARCH
Selects or updates theGHRateLimit.getSearch()
record. -
GRAPHQL
Selects or updates theGHRateLimit.getGraphQL()
record. -
INTEGRATION_MANIFEST
Selects or updates theGHRateLimit.getIntegrationManifest()
record. -
NONE
Selects no rate limit. This request uses no rate limit. If the response header includes rate limit information, it will apply toCORE
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-