@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateRateBasedRuleRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateRateBasedRuleRequest() |
Modifier and Type | Method and Description |
---|---|
CreateRateBasedRuleRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getChangeToken()
The
ChangeToken that you used to submit the CreateRateBasedRule request. |
String |
getMetricName()
A friendly name or description for the metrics for this
RateBasedRule . |
String |
getName()
A friendly name or description of the RateBasedRule.
|
String |
getRateKey()
The field that AWS WAF uses to determine if requests are likely arriving from a single source and thus subject to
rate monitoring.
|
Long |
getRateLimit()
The maximum number of requests, which have an identical value in the field that is specified by
RateKey , allowed in a five-minute period. |
int |
hashCode() |
void |
setChangeToken(String changeToken)
The
ChangeToken that you used to submit the CreateRateBasedRule request. |
void |
setMetricName(String metricName)
A friendly name or description for the metrics for this
RateBasedRule . |
void |
setName(String name)
A friendly name or description of the RateBasedRule.
|
void |
setRateKey(RateKey rateKey)
The field that AWS WAF uses to determine if requests are likely arriving from a single source and thus subject to
rate monitoring.
|
void |
setRateKey(String rateKey)
The field that AWS WAF uses to determine if requests are likely arriving from a single source and thus subject to
rate monitoring.
|
void |
setRateLimit(Long rateLimit)
The maximum number of requests, which have an identical value in the field that is specified by
RateKey , allowed in a five-minute period. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
CreateRateBasedRuleRequest |
withChangeToken(String changeToken)
The
ChangeToken that you used to submit the CreateRateBasedRule request. |
CreateRateBasedRuleRequest |
withMetricName(String metricName)
A friendly name or description for the metrics for this
RateBasedRule . |
CreateRateBasedRuleRequest |
withName(String name)
A friendly name or description of the RateBasedRule.
|
CreateRateBasedRuleRequest |
withRateKey(RateKey rateKey)
The field that AWS WAF uses to determine if requests are likely arriving from a single source and thus subject to
rate monitoring.
|
CreateRateBasedRuleRequest |
withRateKey(String rateKey)
The field that AWS WAF uses to determine if requests are likely arriving from a single source and thus subject to
rate monitoring.
|
CreateRateBasedRuleRequest |
withRateLimit(Long rateLimit)
The maximum number of requests, which have an identical value in the field that is specified by
RateKey , allowed in a five-minute period. |
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setName(String name)
A friendly name or description of the RateBasedRule. You can't change the name of a
RateBasedRule
after you create it.
name
- A friendly name or description of the RateBasedRule. You can't change the name of a
RateBasedRule
after you create it.public String getName()
A friendly name or description of the RateBasedRule. You can't change the name of a
RateBasedRule
after you create it.
RateBasedRule
after you create it.public CreateRateBasedRuleRequest withName(String name)
A friendly name or description of the RateBasedRule. You can't change the name of a
RateBasedRule
after you create it.
name
- A friendly name or description of the RateBasedRule. You can't change the name of a
RateBasedRule
after you create it.public void setMetricName(String metricName)
A friendly name or description for the metrics for this RateBasedRule
. The name can contain only
alphanumeric characters (A-Z, a-z, 0-9); the name can't contain whitespace. You can't change the name of the
metric after you create the RateBasedRule
.
metricName
- A friendly name or description for the metrics for this RateBasedRule
. The name can contain
only alphanumeric characters (A-Z, a-z, 0-9); the name can't contain whitespace. You can't change the name
of the metric after you create the RateBasedRule
.public String getMetricName()
A friendly name or description for the metrics for this RateBasedRule
. The name can contain only
alphanumeric characters (A-Z, a-z, 0-9); the name can't contain whitespace. You can't change the name of the
metric after you create the RateBasedRule
.
RateBasedRule
. The name can contain
only alphanumeric characters (A-Z, a-z, 0-9); the name can't contain whitespace. You can't change the
name of the metric after you create the RateBasedRule
.public CreateRateBasedRuleRequest withMetricName(String metricName)
A friendly name or description for the metrics for this RateBasedRule
. The name can contain only
alphanumeric characters (A-Z, a-z, 0-9); the name can't contain whitespace. You can't change the name of the
metric after you create the RateBasedRule
.
metricName
- A friendly name or description for the metrics for this RateBasedRule
. The name can contain
only alphanumeric characters (A-Z, a-z, 0-9); the name can't contain whitespace. You can't change the name
of the metric after you create the RateBasedRule
.public void setRateKey(String rateKey)
The field that AWS WAF uses to determine if requests are likely arriving from a single source and thus subject to
rate monitoring. The only valid value for RateKey
is IP
. IP
indicates that
requests that arrive from the same IP address are subject to the RateLimit
that is specified in the
RateBasedRule
.
rateKey
- The field that AWS WAF uses to determine if requests are likely arriving from a single source and thus
subject to rate monitoring. The only valid value for RateKey
is IP
.
IP
indicates that requests that arrive from the same IP address are subject to the
RateLimit
that is specified in the RateBasedRule
.RateKey
public String getRateKey()
The field that AWS WAF uses to determine if requests are likely arriving from a single source and thus subject to
rate monitoring. The only valid value for RateKey
is IP
. IP
indicates that
requests that arrive from the same IP address are subject to the RateLimit
that is specified in the
RateBasedRule
.
RateKey
is IP
.
IP
indicates that requests that arrive from the same IP address are subject to the
RateLimit
that is specified in the RateBasedRule
.RateKey
public CreateRateBasedRuleRequest withRateKey(String rateKey)
The field that AWS WAF uses to determine if requests are likely arriving from a single source and thus subject to
rate monitoring. The only valid value for RateKey
is IP
. IP
indicates that
requests that arrive from the same IP address are subject to the RateLimit
that is specified in the
RateBasedRule
.
rateKey
- The field that AWS WAF uses to determine if requests are likely arriving from a single source and thus
subject to rate monitoring. The only valid value for RateKey
is IP
.
IP
indicates that requests that arrive from the same IP address are subject to the
RateLimit
that is specified in the RateBasedRule
.RateKey
public void setRateKey(RateKey rateKey)
The field that AWS WAF uses to determine if requests are likely arriving from a single source and thus subject to
rate monitoring. The only valid value for RateKey
is IP
. IP
indicates that
requests that arrive from the same IP address are subject to the RateLimit
that is specified in the
RateBasedRule
.
rateKey
- The field that AWS WAF uses to determine if requests are likely arriving from a single source and thus
subject to rate monitoring. The only valid value for RateKey
is IP
.
IP
indicates that requests that arrive from the same IP address are subject to the
RateLimit
that is specified in the RateBasedRule
.RateKey
public CreateRateBasedRuleRequest withRateKey(RateKey rateKey)
The field that AWS WAF uses to determine if requests are likely arriving from a single source and thus subject to
rate monitoring. The only valid value for RateKey
is IP
. IP
indicates that
requests that arrive from the same IP address are subject to the RateLimit
that is specified in the
RateBasedRule
.
rateKey
- The field that AWS WAF uses to determine if requests are likely arriving from a single source and thus
subject to rate monitoring. The only valid value for RateKey
is IP
.
IP
indicates that requests that arrive from the same IP address are subject to the
RateLimit
that is specified in the RateBasedRule
.RateKey
public void setRateLimit(Long rateLimit)
The maximum number of requests, which have an identical value in the field that is specified by
RateKey
, allowed in a five-minute period. If the number of requests exceeds the
RateLimit
and the other predicates specified in the rule are also met, AWS WAF triggers the action
that is specified for this rule.
rateLimit
- The maximum number of requests, which have an identical value in the field that is specified by
RateKey
, allowed in a five-minute period. If the number of requests exceeds the
RateLimit
and the other predicates specified in the rule are also met, AWS WAF triggers the
action that is specified for this rule.public Long getRateLimit()
The maximum number of requests, which have an identical value in the field that is specified by
RateKey
, allowed in a five-minute period. If the number of requests exceeds the
RateLimit
and the other predicates specified in the rule are also met, AWS WAF triggers the action
that is specified for this rule.
RateKey
, allowed in a five-minute period. If the number of requests exceeds the
RateLimit
and the other predicates specified in the rule are also met, AWS WAF triggers the
action that is specified for this rule.public CreateRateBasedRuleRequest withRateLimit(Long rateLimit)
The maximum number of requests, which have an identical value in the field that is specified by
RateKey
, allowed in a five-minute period. If the number of requests exceeds the
RateLimit
and the other predicates specified in the rule are also met, AWS WAF triggers the action
that is specified for this rule.
rateLimit
- The maximum number of requests, which have an identical value in the field that is specified by
RateKey
, allowed in a five-minute period. If the number of requests exceeds the
RateLimit
and the other predicates specified in the rule are also met, AWS WAF triggers the
action that is specified for this rule.public void setChangeToken(String changeToken)
The ChangeToken
that you used to submit the CreateRateBasedRule
request. You can also
use this value to query the status of the request. For more information, see GetChangeTokenStatus.
changeToken
- The ChangeToken
that you used to submit the CreateRateBasedRule
request. You can
also use this value to query the status of the request. For more information, see
GetChangeTokenStatus.public String getChangeToken()
The ChangeToken
that you used to submit the CreateRateBasedRule
request. You can also
use this value to query the status of the request. For more information, see GetChangeTokenStatus.
ChangeToken
that you used to submit the CreateRateBasedRule
request. You
can also use this value to query the status of the request. For more information, see
GetChangeTokenStatus.public CreateRateBasedRuleRequest withChangeToken(String changeToken)
The ChangeToken
that you used to submit the CreateRateBasedRule
request. You can also
use this value to query the status of the request. For more information, see GetChangeTokenStatus.
changeToken
- The ChangeToken
that you used to submit the CreateRateBasedRule
request. You can
also use this value to query the status of the request. For more information, see
GetChangeTokenStatus.public String toString()
toString
in class Object
Object.toString()
public CreateRateBasedRuleRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.