public final class SecurityPolicyRuleRateLimitOptions extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
SecurityPolicyRuleRateLimitOptions() |
| Modifier and Type | Method and Description |
|---|---|
SecurityPolicyRuleRateLimitOptions |
clone() |
Integer |
getBanDurationSec()
Can only be specified if the action for the rule is "rate_based_ban".
|
SecurityPolicyRuleRateLimitOptionsThreshold |
getBanThreshold()
Can only be specified if the action for the rule is "rate_based_ban".
|
String |
getConformAction()
Action to take for requests that are under the configured rate limit threshold.
|
String |
getEnforceOnKey()
Determines the key to enforce the rate_limit_threshold on.
|
String |
getEnforceOnKeyName()
Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the
HTTP Header whose value is taken as the key value.
|
String |
getExceedAction()
When a request is denied, returns the HTTP response code specified.
|
SecurityPolicyRuleRateLimitOptionsThreshold |
getRateLimitThreshold()
Threshold at which to begin ratelimiting.
|
SecurityPolicyRuleRateLimitOptions |
set(String fieldName,
Object value) |
SecurityPolicyRuleRateLimitOptions |
setBanDurationSec(Integer banDurationSec)
Can only be specified if the action for the rule is "rate_based_ban".
|
SecurityPolicyRuleRateLimitOptions |
setBanThreshold(SecurityPolicyRuleRateLimitOptionsThreshold banThreshold)
Can only be specified if the action for the rule is "rate_based_ban".
|
SecurityPolicyRuleRateLimitOptions |
setConformAction(String conformAction)
Action to take for requests that are under the configured rate limit threshold.
|
SecurityPolicyRuleRateLimitOptions |
setEnforceOnKey(String enforceOnKey)
Determines the key to enforce the rate_limit_threshold on.
|
SecurityPolicyRuleRateLimitOptions |
setEnforceOnKeyName(String enforceOnKeyName)
Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the
HTTP Header whose value is taken as the key value.
|
SecurityPolicyRuleRateLimitOptions |
setExceedAction(String exceedAction)
When a request is denied, returns the HTTP response code specified.
|
SecurityPolicyRuleRateLimitOptions |
setRateLimitThreshold(SecurityPolicyRuleRateLimitOptionsThreshold rateLimitThreshold)
Threshold at which to begin ratelimiting.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Integer getBanDurationSec()
null for nonepublic SecurityPolicyRuleRateLimitOptions setBanDurationSec(Integer banDurationSec)
banDurationSec - banDurationSec or null for nonepublic SecurityPolicyRuleRateLimitOptionsThreshold getBanThreshold()
null for nonepublic SecurityPolicyRuleRateLimitOptions setBanThreshold(SecurityPolicyRuleRateLimitOptionsThreshold banThreshold)
banThreshold - banThreshold or null for nonepublic String getConformAction()
null for nonepublic SecurityPolicyRuleRateLimitOptions setConformAction(String conformAction)
conformAction - conformAction or null for nonepublic String getEnforceOnKey()
null for nonepublic SecurityPolicyRuleRateLimitOptions setEnforceOnKey(String enforceOnKey)
enforceOnKey - enforceOnKey or null for nonepublic String getEnforceOnKeyName()
null for nonepublic SecurityPolicyRuleRateLimitOptions setEnforceOnKeyName(String enforceOnKeyName)
enforceOnKeyName - enforceOnKeyName or null for nonepublic String getExceedAction()
null for nonepublic SecurityPolicyRuleRateLimitOptions setExceedAction(String exceedAction)
exceedAction - exceedAction or null for nonepublic SecurityPolicyRuleRateLimitOptionsThreshold getRateLimitThreshold()
null for nonepublic SecurityPolicyRuleRateLimitOptions setRateLimitThreshold(SecurityPolicyRuleRateLimitOptionsThreshold rateLimitThreshold)
rateLimitThreshold - rateLimitThreshold or null for nonepublic SecurityPolicyRuleRateLimitOptions set(String fieldName, Object value)
set in class GenericJsonpublic SecurityPolicyRuleRateLimitOptions clone()
clone in class GenericJsonCopyright © 2011–2021 Google. All rights reserved.