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 for UpdateRuleInputBuilder
impl PartialEq 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 ==.impl StructuralPartialEq for UpdateRuleInputBuilder
Auto Trait Implementations§
impl Freeze for UpdateRuleInputBuilder
impl RefUnwindSafe for UpdateRuleInputBuilder
impl Send for UpdateRuleInputBuilder
impl Sync for UpdateRuleInputBuilder
impl Unpin for UpdateRuleInputBuilder
impl UnwindSafe for UpdateRuleInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more