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.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".
|
Integer |
getBlockDuration()
Can only be specified if the action for the rule is "rate_based_ban" If specified, determines
the time (in seconds) the traffic will continue to be blocked by the rate limit after the rate
falls below the threshold.
|
String |
getConformAction()
Action to take when requests are under the given threshold.
|
String |
getEnforceOnKey()
Determines the key to enforce the threshold_rps limit on.
|
String |
getExceedAction()
When a request is denied, returns the HTTP response code specified.
|
SecurityPolicyRuleRateLimitOptionsThreshold |
getRateLimitThreshold()
Threshold at which to begin ratelimiting.
|
Integer |
getThresholdRps()
Rate in requests per second 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 |
setBlockDuration(Integer blockDuration)
Can only be specified if the action for the rule is "rate_based_ban" If specified, determines
the time (in seconds) the traffic will continue to be blocked by the rate limit after the rate
falls below the threshold.
|
SecurityPolicyRuleRateLimitOptions |
setConformAction(String conformAction)
Action to take when requests are under the given threshold.
|
SecurityPolicyRuleRateLimitOptions |
setEnforceOnKey(String enforceOnKey)
Determines the key to enforce the threshold_rps limit on.
|
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.
|
SecurityPolicyRuleRateLimitOptions |
setThresholdRps(Integer thresholdRps)
Rate in requests per second 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 Integer getBlockDuration()
null
for nonepublic SecurityPolicyRuleRateLimitOptions setBlockDuration(Integer blockDuration)
blockDuration
- blockDuration 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 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 Integer getThresholdRps()
null
for nonepublic SecurityPolicyRuleRateLimitOptions setThresholdRps(Integer thresholdRps)
thresholdRps
- thresholdRps or null
for nonepublic SecurityPolicyRuleRateLimitOptions set(String fieldName, Object value)
set
in class GenericJson
public SecurityPolicyRuleRateLimitOptions clone()
clone
in class GenericJson
Copyright © 2011–2020 Google. All rights reserved.