Struct aws_sdk_waf::operation::update_rule::builders::UpdateRuleInputBuilder
source · #[non_exhaustive]pub struct UpdateRuleInputBuilder { /* private fields */ }Expand description
A builder for UpdateRuleInput.
Implementations§
source§impl UpdateRuleInputBuilder
impl UpdateRuleInputBuilder
sourcepub fn rule_id(self, input: impl Into<String>) -> Self
pub fn rule_id(self, input: impl Into<String>) -> Self
The RuleId of the Rule that you want to update. RuleId is returned by CreateRule and by ListRules.
sourcepub fn set_rule_id(self, input: Option<String>) -> Self
pub fn set_rule_id(self, input: Option<String>) -> Self
The RuleId of the Rule that you want to update. RuleId is returned by CreateRule and by ListRules.
sourcepub fn get_rule_id(&self) -> &Option<String>
pub fn get_rule_id(&self) -> &Option<String>
The RuleId of the Rule that you want to update. RuleId is returned by CreateRule and by ListRules.
sourcepub fn change_token(self, input: impl Into<String>) -> Self
pub fn change_token(self, input: impl Into<String>) -> Self
The value returned by the most recent call to GetChangeToken.
sourcepub fn set_change_token(self, input: Option<String>) -> Self
pub fn set_change_token(self, input: Option<String>) -> Self
The value returned by the most recent call to GetChangeToken.
sourcepub fn get_change_token(&self) -> &Option<String>
pub fn get_change_token(&self) -> &Option<String>
The value returned by the most recent call to GetChangeToken.
sourcepub fn updates(self, input: RuleUpdate) -> Self
pub fn updates(self, input: RuleUpdate) -> Self
Appends an item to updates.
To override the contents of this collection use set_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:
-
RuleUpdate: ContainsActionandPredicate -
Predicate: ContainsDataId,Negated, andType -
FieldToMatch: ContainsDataandType
sourcepub fn set_updates(self, input: Option<Vec<RuleUpdate>>) -> Self
pub fn set_updates(self, input: Option<Vec<RuleUpdate>>) -> Self
An array of RuleUpdate objects that you want to insert into or delete from a Rule. For more information, see the applicable data types:
-
RuleUpdate: ContainsActionandPredicate -
Predicate: ContainsDataId,Negated, andType -
FieldToMatch: ContainsDataandType
sourcepub fn get_updates(&self) -> &Option<Vec<RuleUpdate>>
pub fn get_updates(&self) -> &Option<Vec<RuleUpdate>>
An array of RuleUpdate objects that you want to insert into or delete from a Rule. For more information, see the applicable data types:
-
RuleUpdate: ContainsActionandPredicate -
Predicate: ContainsDataId,Negated, andType -
FieldToMatch: ContainsDataandType
sourcepub fn build(self) -> Result<UpdateRuleInput, BuildError>
pub fn build(self) -> Result<UpdateRuleInput, BuildError>
Consumes the builder and constructs a UpdateRuleInput.
source§impl UpdateRuleInputBuilder
impl UpdateRuleInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<UpdateRuleOutput, SdkError<UpdateRuleError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<UpdateRuleOutput, SdkError<UpdateRuleError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateRuleInputBuilder
impl Clone for UpdateRuleInputBuilder
source§fn clone(&self) -> UpdateRuleInputBuilder
fn clone(&self) -> UpdateRuleInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for UpdateRuleInputBuilder
impl Debug for UpdateRuleInputBuilder
source§impl Default for UpdateRuleInputBuilder
impl Default for UpdateRuleInputBuilder
source§fn default() -> UpdateRuleInputBuilder
fn default() -> UpdateRuleInputBuilder
source§impl PartialEq<UpdateRuleInputBuilder> for UpdateRuleInputBuilder
impl PartialEq<UpdateRuleInputBuilder> for UpdateRuleInputBuilder
source§fn eq(&self, other: &UpdateRuleInputBuilder) -> bool
fn eq(&self, other: &UpdateRuleInputBuilder) -> bool
self and other values to be equal, and is used
by ==.