Struct aws_sdk_waf::operation::update_rate_based_rule::builders::UpdateRateBasedRuleInputBuilder
source · #[non_exhaustive]pub struct UpdateRateBasedRuleInputBuilder { /* private fields */ }Expand description
A builder for UpdateRateBasedRuleInput.
Implementations§
source§impl UpdateRateBasedRuleInputBuilder
impl UpdateRateBasedRuleInputBuilder
sourcepub fn rule_id(self, input: impl Into<String>) -> Self
pub fn rule_id(self, input: impl Into<String>) -> Self
The RuleId of the RateBasedRule that you want to update. RuleId is returned by CreateRateBasedRule and by ListRateBasedRules.
sourcepub fn set_rule_id(self, input: Option<String>) -> Self
pub fn set_rule_id(self, input: Option<String>) -> Self
The RuleId of the RateBasedRule that you want to update. RuleId is returned by CreateRateBasedRule and by ListRateBasedRules.
sourcepub fn get_rule_id(&self) -> &Option<String>
pub fn get_rule_id(&self) -> &Option<String>
The RuleId of the RateBasedRule that you want to update. RuleId is returned by CreateRateBasedRule and by ListRateBasedRules.
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 RateBasedRule.
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 RateBasedRule.
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 RateBasedRule.
sourcepub fn rate_limit(self, input: i64) -> Self
pub fn rate_limit(self, input: i64) -> Self
The maximum number of requests, which have an identical value in the field specified by the RateKey, allowed in a five-minute period. If the number of requests exceeds the RateLimit and the other predicates specified in the rule are also met, AWS WAF triggers the action that is specified for this rule.
sourcepub fn set_rate_limit(self, input: Option<i64>) -> Self
pub fn set_rate_limit(self, input: Option<i64>) -> Self
The maximum number of requests, which have an identical value in the field specified by the RateKey, allowed in a five-minute period. If the number of requests exceeds the RateLimit and the other predicates specified in the rule are also met, AWS WAF triggers the action that is specified for this rule.
sourcepub fn get_rate_limit(&self) -> &Option<i64>
pub fn get_rate_limit(&self) -> &Option<i64>
The maximum number of requests, which have an identical value in the field specified by the RateKey, allowed in a five-minute period. If the number of requests exceeds the RateLimit and the other predicates specified in the rule are also met, AWS WAF triggers the action that is specified for this rule.
sourcepub fn build(self) -> Result<UpdateRateBasedRuleInput, BuildError>
pub fn build(self) -> Result<UpdateRateBasedRuleInput, BuildError>
Consumes the builder and constructs a UpdateRateBasedRuleInput.
source§impl UpdateRateBasedRuleInputBuilder
impl UpdateRateBasedRuleInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<UpdateRateBasedRuleOutput, SdkError<UpdateRateBasedRuleError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<UpdateRateBasedRuleOutput, SdkError<UpdateRateBasedRuleError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateRateBasedRuleInputBuilder
impl Clone for UpdateRateBasedRuleInputBuilder
source§fn clone(&self) -> UpdateRateBasedRuleInputBuilder
fn clone(&self) -> UpdateRateBasedRuleInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for UpdateRateBasedRuleInputBuilder
impl Default for UpdateRateBasedRuleInputBuilder
source§fn default() -> UpdateRateBasedRuleInputBuilder
fn default() -> UpdateRateBasedRuleInputBuilder
source§impl PartialEq<UpdateRateBasedRuleInputBuilder> for UpdateRateBasedRuleInputBuilder
impl PartialEq<UpdateRateBasedRuleInputBuilder> for UpdateRateBasedRuleInputBuilder
source§fn eq(&self, other: &UpdateRateBasedRuleInputBuilder) -> bool
fn eq(&self, other: &UpdateRateBasedRuleInputBuilder) -> bool
self and other values to be equal, and is used
by ==.