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 |
getBlockDuration()
Can only be specifed if the action for the rule is "rate_based_blacklist" 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.
|
Integer |
getThresholdRps()
Rate in requests per second at which to begin ratelimiting.
|
SecurityPolicyRuleRateLimitOptions |
set(String fieldName,
Object value) |
SecurityPolicyRuleRateLimitOptions |
setBlockDuration(Integer blockDuration)
Can only be specifed if the action for the rule is "rate_based_blacklist" 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 |
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 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 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.