#[non_exhaustive]pub struct CreateWebAclInputBuilder { /* private fields */ }Expand description
A builder for CreateWebAclInput.
Implementations§
source§impl CreateWebAclInputBuilder
impl CreateWebAclInputBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
A friendly name or description of the WebACL. You can't change Name after you create the WebACL.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
A friendly name or description of the WebACL. You can't change Name after you create the WebACL.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
A friendly name or description of the WebACL. You can't change Name after you create the WebACL.
sourcepub fn metric_name(self, input: impl Into<String>) -> Self
pub fn metric_name(self, input: impl Into<String>) -> Self
A friendly name or description for the metrics for this WebACL.The name can contain only alphanumeric characters (A-Z, a-z, 0-9), with maximum length 128 and minimum length one. It can't contain whitespace or metric names reserved for AWS WAF, including "All" and "Default_Action." You can't change MetricName after you create the WebACL.
sourcepub fn set_metric_name(self, input: Option<String>) -> Self
pub fn set_metric_name(self, input: Option<String>) -> Self
A friendly name or description for the metrics for this WebACL.The name can contain only alphanumeric characters (A-Z, a-z, 0-9), with maximum length 128 and minimum length one. It can't contain whitespace or metric names reserved for AWS WAF, including "All" and "Default_Action." You can't change MetricName after you create the WebACL.
sourcepub fn get_metric_name(&self) -> &Option<String>
pub fn get_metric_name(&self) -> &Option<String>
A friendly name or description for the metrics for this WebACL.The name can contain only alphanumeric characters (A-Z, a-z, 0-9), with maximum length 128 and minimum length one. It can't contain whitespace or metric names reserved for AWS WAF, including "All" and "Default_Action." You can't change MetricName after you create the WebACL.
sourcepub fn default_action(self, input: WafAction) -> Self
pub fn default_action(self, input: WafAction) -> Self
The action that you want AWS WAF to take when a request doesn't match the criteria specified in any of the Rule objects that are associated with the WebACL.
sourcepub fn set_default_action(self, input: Option<WafAction>) -> Self
pub fn set_default_action(self, input: Option<WafAction>) -> Self
The action that you want AWS WAF to take when a request doesn't match the criteria specified in any of the Rule objects that are associated with the WebACL.
sourcepub fn get_default_action(&self) -> &Option<WafAction>
pub fn get_default_action(&self) -> &Option<WafAction>
The action that you want AWS WAF to take when a request doesn't match the criteria specified in any of the Rule objects that are associated with the WebACL.
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.
Appends an item to tags.
To override the contents of this collection use set_tags.
sourcepub fn build(self) -> Result<CreateWebAclInput, BuildError>
pub fn build(self) -> Result<CreateWebAclInput, BuildError>
Consumes the builder and constructs a CreateWebAclInput.
source§impl CreateWebAclInputBuilder
impl CreateWebAclInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateWebAclOutput, SdkError<CreateWebACLError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateWebAclOutput, SdkError<CreateWebACLError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateWebAclInputBuilder
impl Clone for CreateWebAclInputBuilder
source§fn clone(&self) -> CreateWebAclInputBuilder
fn clone(&self) -> CreateWebAclInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreateWebAclInputBuilder
impl Debug for CreateWebAclInputBuilder
source§impl Default for CreateWebAclInputBuilder
impl Default for CreateWebAclInputBuilder
source§fn default() -> CreateWebAclInputBuilder
fn default() -> CreateWebAclInputBuilder
source§impl PartialEq<CreateWebAclInputBuilder> for CreateWebAclInputBuilder
impl PartialEq<CreateWebAclInputBuilder> for CreateWebAclInputBuilder
source§fn eq(&self, other: &CreateWebAclInputBuilder) -> bool
fn eq(&self, other: &CreateWebAclInputBuilder) -> bool
self and other values to be equal, and is used
by ==.