public class CreateWebACLRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
changeToken
The value returned by the most recent call to GetChangeToken.
|
private 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 . |
private java.lang.String |
metricName
A friendly name or description for the metrics for this
WebACL . |
private java.lang.String |
name
A friendly name or description of the WebACL.
|
NOOP
Constructor and Description |
---|
CreateWebACLRequest() |
Modifier and Type | Method and Description |
---|---|
CreateWebACLRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.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 . |
java.lang.String |
getMetricName()
A friendly name or description for the metrics for this
WebACL . |
java.lang.String |
getName()
A friendly name or description of the WebACL.
|
int |
hashCode() |
void |
setChangeToken(java.lang.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(java.lang.String metricName)
A friendly name or description for the metrics for this
WebACL . |
void |
setName(java.lang.String name)
A friendly name or description of the WebACL.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateWebACLRequest |
withChangeToken(java.lang.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(java.lang.String metricName)
A friendly name or description for the metrics for this
WebACL . |
CreateWebACLRequest |
withName(java.lang.String name)
A friendly name or description of the WebACL.
|
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
private java.lang.String name
A friendly name or description of the WebACL. You can't change
Name
after you create the WebACL
.
private java.lang.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 change
MetricName
after you create the WebACL
.
private 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
.
private java.lang.String changeToken
The value returned by the most recent call to GetChangeToken.
public void setName(java.lang.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 java.lang.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(java.lang.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(java.lang.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 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); the name can't contain whitespace. You
can't change MetricName
after you create the
WebACL
.public java.lang.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 change
MetricName
after you create the WebACL
.
WebACL
. The name can contain only alphanumeric
characters (A-Z, a-z, 0-9); the name can't contain whitespace.
You can't change MetricName
after you create the
WebACL
.public CreateWebACLRequest withMetricName(java.lang.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 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); the name can't contain whitespace. 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(java.lang.String changeToken)
The value returned by the most recent call to GetChangeToken.
changeToken
- The value returned by the most recent call to
GetChangeToken.public java.lang.String getChangeToken()
The value returned by the most recent call to GetChangeToken.
public CreateWebACLRequest withChangeToken(java.lang.String changeToken)
The value returned by the most recent call to GetChangeToken.
changeToken
- The value returned by the most recent call to
GetChangeToken.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public CreateWebACLRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()