#[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 for CreateWebAclInputBuilder
impl PartialEq 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 ==.impl StructuralPartialEq for CreateWebAclInputBuilder
Auto Trait Implementations§
impl Freeze for CreateWebAclInputBuilder
impl RefUnwindSafe for CreateWebAclInputBuilder
impl Send for CreateWebAclInputBuilder
impl Sync for CreateWebAclInputBuilder
impl Unpin for CreateWebAclInputBuilder
impl UnwindSafe for CreateWebAclInputBuilder
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