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
source§fn eq(&self, other: &WebAclUpdateBuilder) -> bool
fn eq(&self, other: &WebAclUpdateBuilder) -> bool
self and other values to be equal, and is used
by ==.