public class UpdateRuleRequest 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 java.lang.String |
ruleId
The
RuleId of the Rule that you want to update. |
private java.util.List<RuleUpdate> |
updates
An array of
RuleUpdate objects that you want to insert into
or delete from a Rule. |
NOOP
Constructor and Description |
---|
UpdateRuleRequest() |
Modifier and Type | Method and Description |
---|---|
UpdateRuleRequest |
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.
|
java.lang.String |
getRuleId()
The
RuleId of the Rule that you want to update. |
java.util.List<RuleUpdate> |
getUpdates()
An array of
RuleUpdate objects that you want to insert into
or delete from a Rule. |
int |
hashCode() |
void |
setChangeToken(java.lang.String changeToken)
The value returned by the most recent call to GetChangeToken.
|
void |
setRuleId(java.lang.String ruleId)
The
RuleId of the Rule that you want to update. |
void |
setUpdates(java.util.Collection<RuleUpdate> updates)
An array of
RuleUpdate objects that you want to insert into
or delete from a Rule. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UpdateRuleRequest |
withChangeToken(java.lang.String changeToken)
The value returned by the most recent call to GetChangeToken.
|
UpdateRuleRequest |
withRuleId(java.lang.String ruleId)
The
RuleId of the Rule that you want to update. |
UpdateRuleRequest |
withUpdates(java.util.Collection<RuleUpdate> updates)
An array of
RuleUpdate objects that you want to insert into
or delete from a Rule. |
UpdateRuleRequest |
withUpdates(RuleUpdate... updates)
An array of
RuleUpdate objects that you want to insert into
or delete from a Rule. |
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 ruleId
The RuleId
of the Rule
that you want to update.
RuleId
is returned by CreateRule
and by
ListRules.
private java.lang.String changeToken
The value returned by the most recent call to GetChangeToken.
private java.util.List<RuleUpdate> updates
An array of RuleUpdate
objects that you want to insert into
or delete from a Rule. For more information, see the applicable
data types:
Action
and
Predicate
DataId
, Negated
,
and Type
Data
and Type
public void setRuleId(java.lang.String ruleId)
The RuleId
of the Rule
that you want to update.
RuleId
is returned by CreateRule
and by
ListRules.
ruleId
- The RuleId
of the Rule
that you want to
update. RuleId
is returned by CreateRule
and by ListRules.public java.lang.String getRuleId()
The RuleId
of the Rule
that you want to update.
RuleId
is returned by CreateRule
and by
ListRules.
RuleId
of the Rule
that you want to
update. RuleId
is returned by
CreateRule
and by ListRules.public UpdateRuleRequest withRuleId(java.lang.String ruleId)
The RuleId
of the Rule
that you want to update.
RuleId
is returned by CreateRule
and by
ListRules.
ruleId
- The RuleId
of the Rule
that you want to
update. RuleId
is returned by CreateRule
and by ListRules.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 UpdateRuleRequest 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.util.List<RuleUpdate> getUpdates()
An array of RuleUpdate
objects that you want to insert into
or delete from a Rule. For more information, see the applicable
data types:
Action
and
Predicate
DataId
, Negated
,
and Type
Data
and Type
RuleUpdate
objects that you want to
insert into or delete from a Rule. For more information,
see the applicable data types:
Action
and
Predicate
DataId
,
Negated
, and Type
Data
and
Type
public void setUpdates(java.util.Collection<RuleUpdate> updates)
An array of RuleUpdate
objects that you want to insert into
or delete from a Rule. For more information, see the applicable
data types:
Action
and
Predicate
DataId
, Negated
,
and Type
Data
and Type
updates
- An array of RuleUpdate
objects that you want to
insert into or delete from a Rule. For more information,
see the applicable data types:
Action
and
Predicate
DataId
,
Negated
, and Type
Data
and
Type
public UpdateRuleRequest withUpdates(RuleUpdate... updates)
An array of RuleUpdate
objects that you want to insert into
or delete from a Rule. For more information, see the applicable
data types:
Action
and
Predicate
DataId
, Negated
,
and Type
Data
and Type
NOTE: This method appends the values to the existing list (if
any). Use setUpdates(java.util.Collection)
or
withUpdates(java.util.Collection)
if you want to override the
existing values.
updates
- An array of RuleUpdate
objects that you want to
insert into or delete from a Rule. For more information,
see the applicable data types:
Action
and
Predicate
DataId
,
Negated
, and Type
Data
and
Type
public UpdateRuleRequest withUpdates(java.util.Collection<RuleUpdate> updates)
An array of RuleUpdate
objects that you want to insert into
or delete from a Rule. For more information, see the applicable
data types:
Action
and
Predicate
DataId
, Negated
,
and Type
Data
and Type
updates
- An array of RuleUpdate
objects that you want to
insert into or delete from a Rule. For more information,
see the applicable data types:
Action
and
Predicate
DataId
,
Negated
, and Type
Data
and
Type
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 UpdateRuleRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()