Class CreateWebACLRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.waf.model.CreateWebACLRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class CreateWebACLRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description CreateWebACLRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateWebACLRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
String
getChangeToken()
The value returned by the most recent call to GetChangeToken.WafAction
getDefaultAction()
The action that you want AWS WAF to take when a request doesn't match the criteria specified in any of theRule
objects that are associated with theWebACL
.String
getMetricName()
A friendly name or description for the metrics for thisWebACL
.String
getName()
A friendly name or description of the WebACL.int
hashCode()
void
setChangeToken(String changeToken)
The value returned by the most recent call to GetChangeToken.void
setDefaultAction(WafAction defaultAction)
The action that you want AWS WAF to take when a request doesn't match the criteria specified in any of theRule
objects that are associated with theWebACL
.void
setMetricName(String metricName)
A friendly name or description for the metrics for thisWebACL
.void
setName(String name)
A friendly name or description of the WebACL.String
toString()
Returns a string representation of this object; useful for testing and debugging.CreateWebACLRequest
withChangeToken(String changeToken)
The value returned by the most recent call to GetChangeToken.CreateWebACLRequest
withDefaultAction(WafAction defaultAction)
The action that you want AWS WAF to take when a request doesn't match the criteria specified in any of theRule
objects that are associated with theWebACL
.CreateWebACLRequest
withMetricName(String metricName)
A friendly name or description for the metrics for thisWebACL
.CreateWebACLRequest
withName(String name)
A friendly name or description of the WebACL.-
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 WebACL. You can't change
Name
after you create theWebACL
.- Parameters:
name
- A friendly name or description of the WebACL. You can't changeName
after you create theWebACL
.
-
getName
public String getName()
A friendly name or description of the WebACL. You can't change
Name
after you create theWebACL
.- Returns:
- A friendly name or description of the WebACL. You can't
change
Name
after you create theWebACL
.
-
withName
public CreateWebACLRequest withName(String name)
A friendly name or description of the WebACL. You can't change
Name
after you create theWebACL
.- Parameters:
name
- A friendly name or description of the WebACL. You can't changeName
after you create theWebACL
.- 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
WebACL
. The name can contain only alphanumeric characters (A-Z, a-z, 0-9); the name can't contain whitespace. You can't changeMetricName
after you create theWebACL
.- Parameters:
metricName
- A friendly name or description for the metrics for thisWebACL
. The name can contain only alphanumeric characters (A-Z, a-z, 0-9); the name can't contain whitespace. You can't changeMetricName
after you create theWebACL
.
-
getMetricName
public String getMetricName()
A friendly name or description for the metrics for this
WebACL
. The name can contain only alphanumeric characters (A-Z, a-z, 0-9); the name can't contain whitespace. You can't changeMetricName
after you create theWebACL
.- Returns:
- A friendly name or description for the metrics for this
WebACL
. The name can contain only alphanumeric characters (A-Z, a-z, 0-9); the name can't contain whitespace. You can't changeMetricName
after you create theWebACL
.
-
withMetricName
public CreateWebACLRequest withMetricName(String metricName)
A friendly name or description for the metrics for this
WebACL
. The name can contain only alphanumeric characters (A-Z, a-z, 0-9); the name can't contain whitespace. You can't changeMetricName
after you create theWebACL
.- Parameters:
metricName
- A friendly name or description for the metrics for thisWebACL
. The name can contain only alphanumeric characters (A-Z, a-z, 0-9); the name can't contain whitespace. You can't changeMetricName
after you create theWebACL
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDefaultAction
public void setDefaultAction(WafAction defaultAction)
The action that you want AWS WAF to take when a request doesn't match the criteria specified in any of the
Rule
objects that are associated with theWebACL
.- Parameters:
defaultAction
- The action that you want AWS WAF to take when a request doesn't match the criteria specified in any of theRule
objects that are associated with theWebACL
.
-
getDefaultAction
public WafAction getDefaultAction()
The action that you want AWS WAF to take when a request doesn't match the criteria specified in any of the
Rule
objects that are associated with theWebACL
.- Returns:
- The action that you want AWS WAF to take when a request doesn't
match the criteria specified in any of the
Rule
objects that are associated with theWebACL
.
-
withDefaultAction
public CreateWebACLRequest withDefaultAction(WafAction defaultAction)
The action that you want AWS WAF to take when a request doesn't match the criteria specified in any of the
Rule
objects that are associated with theWebACL
.- Parameters:
defaultAction
- The action that you want AWS WAF to take when a request doesn't match the criteria specified in any of theRule
objects that are associated with theWebACL
.- 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 CreateWebACLRequest 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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CreateWebACLRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-