@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateRuleRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateRuleRequest() |
Modifier and Type | Method and Description |
---|---|
CreateRuleRequest |
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.
|
String |
getMetricName()
A friendly name or description for the metrics for this
Rule . |
String |
getName()
A friendly name or description of the Rule.
|
List<Tag> |
getTags()
|
int |
hashCode() |
void |
setChangeToken(String changeToken)
The value returned by the most recent call to GetChangeToken.
|
void |
setMetricName(String metricName)
A friendly name or description for the metrics for this
Rule . |
void |
setName(String name)
A friendly name or description of the Rule.
|
void |
setTags(Collection<Tag> tags)
|
String |
toString()
Returns a string representation of this object.
|
CreateRuleRequest |
withChangeToken(String changeToken)
The value returned by the most recent call to GetChangeToken.
|
CreateRuleRequest |
withMetricName(String metricName)
A friendly name or description for the metrics for this
Rule . |
CreateRuleRequest |
withName(String name)
A friendly name or description of the Rule.
|
CreateRuleRequest |
withTags(Collection<Tag> tags)
|
CreateRuleRequest |
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 Rule. You can't change the name of a Rule
after you
create it.
name
- A friendly name or description of the Rule. You can't change the name of a Rule
after
you create it.public String getName()
A friendly name or description of the Rule. You can't change the name of a Rule
after you
create it.
Rule
after
you create it.public CreateRuleRequest withName(String name)
A friendly name or description of the Rule. You can't change the name of a Rule
after you
create it.
name
- A friendly name or description of the Rule. You can't change the name of a Rule
after
you create it.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), 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 the name of the metric after
you create the Rule
.
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), 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
the name of the metric after you create the Rule
.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), 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 the name of the metric after
you create the Rule
.
Rule
. 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
the name of the metric after you create the Rule
.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), 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 the name of the metric after
you create the Rule
.
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), 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
the name of the metric after you create the Rule
.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 CreateRuleRequest 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 CreateRuleRequest 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 CreateRuleRequest withTags(Collection<Tag> tags)
tags
- public String toString()
toString
in class Object
Object.toString()
public CreateRuleRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()