Struct aws_sdk_waf::types::builders::WebAclUpdateBuilder
source · #[non_exhaustive]pub struct WebAclUpdateBuilder { /* private fields */ }Expand description
A builder for WebAclUpdate.
Implementations§
source§impl WebAclUpdateBuilder
impl WebAclUpdateBuilder
sourcepub fn action(self, input: ChangeAction) -> Self
pub fn action(self, input: ChangeAction) -> Self
Specifies whether to insert a Rule into or delete a Rule from a WebACL.
sourcepub fn set_action(self, input: Option<ChangeAction>) -> Self
pub fn set_action(self, input: Option<ChangeAction>) -> Self
Specifies whether to insert a Rule into or delete a Rule from a WebACL.
sourcepub fn get_action(&self) -> &Option<ChangeAction>
pub fn get_action(&self) -> &Option<ChangeAction>
Specifies whether to insert a Rule into or delete a Rule from a WebACL.
sourcepub fn activated_rule(self, input: ActivatedRule) -> Self
pub fn activated_rule(self, input: ActivatedRule) -> Self
The ActivatedRule object in an UpdateWebACL request specifies a Rule that you want to insert or delete, the priority of the Rule in the WebACL, and the action that you want AWS WAF to take when a web request matches the Rule (ALLOW, BLOCK, or COUNT).
sourcepub fn set_activated_rule(self, input: Option<ActivatedRule>) -> Self
pub fn set_activated_rule(self, input: Option<ActivatedRule>) -> Self
The ActivatedRule object in an UpdateWebACL request specifies a Rule that you want to insert or delete, the priority of the Rule in the WebACL, and the action that you want AWS WAF to take when a web request matches the Rule (ALLOW, BLOCK, or COUNT).
sourcepub fn get_activated_rule(&self) -> &Option<ActivatedRule>
pub fn get_activated_rule(&self) -> &Option<ActivatedRule>
The ActivatedRule object in an UpdateWebACL request specifies a Rule that you want to insert or delete, the priority of the Rule in the WebACL, and the action that you want AWS WAF to take when a web request matches the Rule (ALLOW, BLOCK, or COUNT).
sourcepub fn build(self) -> Result<WebAclUpdate, BuildError>
pub fn build(self) -> Result<WebAclUpdate, BuildError>
Consumes the builder and constructs a WebAclUpdate.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for WebAclUpdateBuilder
impl Clone for WebAclUpdateBuilder
source§fn clone(&self) -> WebAclUpdateBuilder
fn clone(&self) -> WebAclUpdateBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for WebAclUpdateBuilder
impl Debug for WebAclUpdateBuilder
source§impl Default for WebAclUpdateBuilder
impl Default for WebAclUpdateBuilder
source§fn default() -> WebAclUpdateBuilder
fn default() -> WebAclUpdateBuilder
source§impl PartialEq for WebAclUpdateBuilder
impl PartialEq for WebAclUpdateBuilder
impl StructuralPartialEq for WebAclUpdateBuilder
Auto Trait Implementations§
impl Freeze for WebAclUpdateBuilder
impl RefUnwindSafe for WebAclUpdateBuilder
impl Send for WebAclUpdateBuilder
impl Sync for WebAclUpdateBuilder
impl Unpin for WebAclUpdateBuilder
impl UnwindSafe for WebAclUpdateBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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