@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateWebACLRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateWebACLRequest() |
Modifier and Type | Method and Description |
---|---|
CreateWebACLRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
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 the
Rule objects that are associated with the WebACL . |
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), with maximum length 128 and minimum length one. |
String |
getName()
A friendly name or description of the WebACL.
|
List<Tag> |
getTags()
|
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 the
Rule objects that are associated with the WebACL . |
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), with maximum length 128 and minimum length one. |
void |
setName(String name)
A friendly name or description of the WebACL.
|
void |
setTags(Collection<Tag> tags)
|
String |
toString()
Returns a string representation of this object.
|
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 the
Rule objects that are associated with the WebACL . |
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), with maximum length 128 and minimum length one. |
CreateWebACLRequest |
withName(String name)
A friendly name or description of the WebACL.
|
CreateWebACLRequest |
withTags(Collection<Tag> tags)
|
CreateWebACLRequest |
withTags(Tag... tags)
|
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 WebACL. You can't change Name
after you create the
WebACL
.
name
- A friendly name or description of the WebACL. You can't change Name
after you create
the WebACL
.public String getName()
A friendly name or description of the WebACL. You can't change Name
after you create the
WebACL
.
Name
after you create
the WebACL
.public CreateWebACLRequest withName(String name)
A friendly name or description of the WebACL. You can't change Name
after you create the
WebACL
.
name
- A friendly name or description of the WebACL. You can't change Name
after you create
the WebACL
.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), with maximum length 128 and minimum length one. It can't contain
whitespace or metric names reserved for AWS WAF, including "All" and "Default_Action." You can't change
MetricName
after you create the WebACL
.
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), with maximum length 128 and minimum length one. It can't contain
whitespace or metric names reserved for AWS WAF, including "All" and "Default_Action." You can't change
MetricName
after you create the WebACL
.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), with maximum length 128 and minimum length one. It can't contain
whitespace or metric names reserved for AWS WAF, including "All" and "Default_Action." You can't change
MetricName
after you create the WebACL
.
WebACL
.The name can contain only
alphanumeric characters (A-Z, a-z, 0-9), with maximum length 128 and minimum length one. It can't contain
whitespace or metric names reserved for AWS WAF, including "All" and "Default_Action." You can't change
MetricName
after you create the WebACL
.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), with maximum length 128 and minimum length one. It can't contain
whitespace or metric names reserved for AWS WAF, including "All" and "Default_Action." You can't change
MetricName
after you create the WebACL
.
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), with maximum length 128 and minimum length one. It can't contain
whitespace or metric names reserved for AWS WAF, including "All" and "Default_Action." You can't change
MetricName
after you create the WebACL
.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 the WebACL
.
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 the WebACL
.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 the WebACL
.
Rule
objects that are associated with the WebACL
.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 the WebACL
.
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 the WebACL
.public void setChangeToken(String changeToken)
The value returned by the most recent call to GetChangeToken.
changeToken
- The value returned by the most recent call to GetChangeToken.public String getChangeToken()
The value returned by the most recent call to GetChangeToken.
public CreateWebACLRequest withChangeToken(String changeToken)
The value returned by the most recent call to GetChangeToken.
changeToken
- The value returned by the most recent call to GetChangeToken.public void setTags(Collection<Tag> tags)
tags
- public CreateWebACLRequest withTags(Tag... tags)
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- public CreateWebACLRequest withTags(Collection<Tag> tags)
tags
- public String toString()
toString
in class Object
Object.toString()
public CreateWebACLRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()