Class CreateRuleRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.waf.model.CreateRuleRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class CreateRuleRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description CreateRuleRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateRuleRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetChangeToken()The value returned by the most recent call to GetChangeToken.StringgetMetricName()A friendly name or description for the metrics for thisRule.StringgetName()A friendly name or description of the Rule.inthashCode()voidsetChangeToken(String changeToken)The value returned by the most recent call to GetChangeToken.voidsetMetricName(String metricName)A friendly name or description for the metrics for thisRule.voidsetName(String name)A friendly name or description of the Rule.StringtoString()Returns a string representation of this object; useful for testing and debugging.CreateRuleRequestwithChangeToken(String changeToken)The value returned by the most recent call to GetChangeToken.CreateRuleRequestwithMetricName(String metricName)A friendly name or description for the metrics for thisRule.CreateRuleRequestwithName(String name)A friendly name or description of the Rule.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setName
public void setName(String name)
A friendly name or description of the Rule. You can't change the name of a
Ruleafter you create it.- Parameters:
name- A friendly name or description of the Rule. You can't change the name of aRuleafter you create it.
-
getName
public String getName()
A friendly name or description of the Rule. You can't change the name of a
Ruleafter you create it.- Returns:
- A friendly name or description of the Rule. You can't
change the name of a
Ruleafter you create it.
-
withName
public CreateRuleRequest withName(String name)
A friendly name or description of the Rule. You can't change the name of a
Ruleafter you create it.- Parameters:
name- A friendly name or description of the Rule. You can't change the name of aRuleafter you create it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMetricName
public void setMetricName(String metricName)
A friendly name or description for the metrics for this
Rule. 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 theRule.- Parameters:
metricName- A friendly name or description for the metrics for thisRule. 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 theRule.
-
getMetricName
public String getMetricName()
A friendly name or description for the metrics for this
Rule. 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 theRule.- Returns:
- A friendly name or description for the metrics for this
Rule. 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 theRule.
-
withMetricName
public CreateRuleRequest withMetricName(String metricName)
A friendly name or description for the metrics for this
Rule. 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 theRule.- Parameters:
metricName- A friendly name or description for the metrics for thisRule. 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 theRule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setChangeToken
public void setChangeToken(String changeToken)
The value returned by the most recent call to GetChangeToken.
- Parameters:
changeToken- The value returned by the most recent call to GetChangeToken.
-
getChangeToken
public String getChangeToken()
The value returned by the most recent call to GetChangeToken.
- Returns:
- The value returned by the most recent call to GetChangeToken.
-
withChangeToken
public CreateRuleRequest withChangeToken(String changeToken)
The value returned by the most recent call to GetChangeToken.
- Parameters:
changeToken- The value returned by the most recent call to GetChangeToken.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CreateRuleRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-