Class UpdateRuleRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.waf.model.UpdateRuleRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class UpdateRuleRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description UpdateRuleRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateRuleRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetChangeToken()The value returned by the most recent call to GetChangeToken.StringgetRuleId()TheRuleIdof theRulethat you want to update.List<RuleUpdate>getUpdates()An array ofRuleUpdateobjects that you want to insert into or delete from a Rule.inthashCode()voidsetChangeToken(String changeToken)The value returned by the most recent call to GetChangeToken.voidsetRuleId(String ruleId)TheRuleIdof theRulethat you want to update.voidsetUpdates(Collection<RuleUpdate> updates)An array ofRuleUpdateobjects that you want to insert into or delete from a Rule.StringtoString()Returns a string representation of this object; useful for testing and debugging.UpdateRuleRequestwithChangeToken(String changeToken)The value returned by the most recent call to GetChangeToken.UpdateRuleRequestwithRuleId(String ruleId)TheRuleIdof theRulethat you want to update.UpdateRuleRequestwithUpdates(RuleUpdate... updates)An array ofRuleUpdateobjects that you want to insert into or delete from a Rule.UpdateRuleRequestwithUpdates(Collection<RuleUpdate> updates)An array ofRuleUpdateobjects that you want to insert into or delete from a Rule.-
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
-
setRuleId
public void setRuleId(String ruleId)
The
RuleIdof theRulethat you want to update.RuleIdis returned byCreateRuleand by ListRules.- Parameters:
ruleId- TheRuleIdof theRulethat you want to update.RuleIdis returned byCreateRuleand by ListRules.
-
getRuleId
public String getRuleId()
The
RuleIdof theRulethat you want to update.RuleIdis returned byCreateRuleand by ListRules.- Returns:
- The
RuleIdof theRulethat you want to update.RuleIdis returned byCreateRuleand by ListRules.
-
withRuleId
public UpdateRuleRequest withRuleId(String ruleId)
The
RuleIdof theRulethat you want to update.RuleIdis returned byCreateRuleand by ListRules.- Parameters:
ruleId- TheRuleIdof theRulethat you want to update.RuleIdis returned byCreateRuleand by ListRules.- 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 UpdateRuleRequest 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.
-
getUpdates
public List<RuleUpdate> getUpdates()
An array of
RuleUpdateobjects that you want to insert into or delete from a Rule. For more information, see the applicable data types:- RuleUpdate: Contains
ActionandPredicate - Predicate: Contains
DataId,Negated, andType - FieldToMatch: Contains
DataandType
- Returns:
- An array of
RuleUpdateobjects that you want to insert into or delete from a Rule. For more information, see the applicable data types:- RuleUpdate: Contains
ActionandPredicate - Predicate: Contains
DataId,Negated, andType - FieldToMatch: Contains
DataandType
- RuleUpdate: Contains
- RuleUpdate: Contains
-
setUpdates
public void setUpdates(Collection<RuleUpdate> updates)
An array of
RuleUpdateobjects that you want to insert into or delete from a Rule. For more information, see the applicable data types:- RuleUpdate: Contains
ActionandPredicate - Predicate: Contains
DataId,Negated, andType - FieldToMatch: Contains
DataandType
- Parameters:
updates- An array ofRuleUpdateobjects that you want to insert into or delete from a Rule. For more information, see the applicable data types:- RuleUpdate: Contains
ActionandPredicate - Predicate: Contains
DataId,Negated, andType - FieldToMatch: Contains
DataandType
- RuleUpdate: Contains
- RuleUpdate: Contains
-
withUpdates
public UpdateRuleRequest withUpdates(RuleUpdate... updates)
An array of
RuleUpdateobjects that you want to insert into or delete from a Rule. For more information, see the applicable data types:- RuleUpdate: Contains
ActionandPredicate - Predicate: Contains
DataId,Negated, andType - FieldToMatch: Contains
DataandType
NOTE: This method appends the values to the existing list (if any). Use
setUpdates(java.util.Collection)orwithUpdates(java.util.Collection)if you want to override the existing values.- Parameters:
updates- An array ofRuleUpdateobjects that you want to insert into or delete from a Rule. For more information, see the applicable data types:- RuleUpdate: Contains
ActionandPredicate - Predicate: Contains
DataId,Negated, andType - FieldToMatch: Contains
DataandType
- RuleUpdate: Contains
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- RuleUpdate: Contains
-
withUpdates
public UpdateRuleRequest withUpdates(Collection<RuleUpdate> updates)
An array of
RuleUpdateobjects that you want to insert into or delete from a Rule. For more information, see the applicable data types:- RuleUpdate: Contains
ActionandPredicate - Predicate: Contains
DataId,Negated, andType - FieldToMatch: Contains
DataandType
- Parameters:
updates- An array ofRuleUpdateobjects that you want to insert into or delete from a Rule. For more information, see the applicable data types:- RuleUpdate: Contains
ActionandPredicate - Predicate: Contains
DataId,Negated, andType - FieldToMatch: Contains
DataandType
- RuleUpdate: Contains
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- RuleUpdate: Contains
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public UpdateRuleRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-