Struct aws_sdk_wafv2::types::builders::AndStatementBuilder
source · #[non_exhaustive]pub struct AndStatementBuilder { /* private fields */ }
Expand description
A builder for AndStatement
.
Implementations§
source§impl AndStatementBuilder
impl AndStatementBuilder
sourcepub fn statements(self, input: Statement) -> Self
pub fn statements(self, input: Statement) -> Self
Appends an item to statements
.
To override the contents of this collection use set_statements
.
The statements to combine with AND logic. You can use any statements that can be nested.
sourcepub fn set_statements(self, input: Option<Vec<Statement>>) -> Self
pub fn set_statements(self, input: Option<Vec<Statement>>) -> Self
The statements to combine with AND logic. You can use any statements that can be nested.
sourcepub fn get_statements(&self) -> &Option<Vec<Statement>>
pub fn get_statements(&self) -> &Option<Vec<Statement>>
The statements to combine with AND logic. You can use any statements that can be nested.
sourcepub fn build(self) -> Result<AndStatement, BuildError>
pub fn build(self) -> Result<AndStatement, BuildError>
Consumes the builder and constructs a AndStatement
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AndStatementBuilder
impl Clone for AndStatementBuilder
source§fn clone(&self) -> AndStatementBuilder
fn clone(&self) -> AndStatementBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AndStatementBuilder
impl Debug for AndStatementBuilder
source§impl Default for AndStatementBuilder
impl Default for AndStatementBuilder
source§fn default() -> AndStatementBuilder
fn default() -> AndStatementBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for AndStatementBuilder
impl PartialEq for AndStatementBuilder
source§fn eq(&self, other: &AndStatementBuilder) -> bool
fn eq(&self, other: &AndStatementBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AndStatementBuilder
Auto Trait Implementations§
impl Freeze for AndStatementBuilder
impl RefUnwindSafe for AndStatementBuilder
impl Send for AndStatementBuilder
impl Sync for AndStatementBuilder
impl Unpin for AndStatementBuilder
impl UnwindSafe for AndStatementBuilder
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.