public final class SecurityPolicyRuleRateLimitOptions
extends com.google.api.client.json.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
com.google.api.client.util.GenericData.Flags
AbstractMap.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.
|
List<SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig> |
getEnforceOnKeyConfigs()
If specified, any combination of values of enforce_on_key_type/enforce_on_key_name is treated
as the key on which ratelimit threshold/action is enforced.
|
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()
Action to take for requests that are above the configured rate limit threshold, to either deny
with a specified HTTP response code, or redirect to a different endpoint.
|
SecurityPolicyRuleRedirectOptions |
getExceedRedirectOptions()
Parameters defining the redirect action that is used as the exceed action.
|
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 |
setEnforceOnKeyConfigs(List<SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig> enforceOnKeyConfigs)
If specified, any combination of values of enforce_on_key_type/enforce_on_key_name is treated
as the key on which ratelimit threshold/action is enforced.
|
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)
Action to take for requests that are above the configured rate limit threshold, to either deny
with a specified HTTP response code, or redirect to a different endpoint.
|
SecurityPolicyRuleRateLimitOptions |
setExceedRedirectOptions(SecurityPolicyRuleRedirectOptions exceedRedirectOptions)
Parameters defining the redirect action that is used as the exceed action.
|
SecurityPolicyRuleRateLimitOptions |
setRateLimitThreshold(SecurityPolicyRuleRateLimitOptionsThreshold rateLimitThreshold)
Threshold at which to begin ratelimiting.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public 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 List<SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig> getEnforceOnKeyConfigs()
null
for nonepublic SecurityPolicyRuleRateLimitOptions setEnforceOnKeyConfigs(List<SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig> enforceOnKeyConfigs)
enforceOnKeyConfigs
- enforceOnKeyConfigs 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 SecurityPolicyRuleRedirectOptions getExceedRedirectOptions()
null
for nonepublic SecurityPolicyRuleRateLimitOptions setExceedRedirectOptions(SecurityPolicyRuleRedirectOptions exceedRedirectOptions)
exceedRedirectOptions
- exceedRedirectOptions 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 com.google.api.client.json.GenericJson
public SecurityPolicyRuleRateLimitOptions clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.