Struct aws_sdk_wafv2::types::builders::OrStatementBuilder
source · #[non_exhaustive]pub struct OrStatementBuilder { /* private fields */ }
Expand description
A builder for OrStatement
.
Implementations§
source§impl OrStatementBuilder
impl OrStatementBuilder
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 OR 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 OR 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 OR logic. You can use any statements that can be nested.
sourcepub fn build(self) -> Result<OrStatement, BuildError>
pub fn build(self) -> Result<OrStatement, BuildError>
Consumes the builder and constructs a OrStatement
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for OrStatementBuilder
impl Clone for OrStatementBuilder
source§fn clone(&self) -> OrStatementBuilder
fn clone(&self) -> OrStatementBuilder
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 OrStatementBuilder
impl Debug for OrStatementBuilder
source§impl Default for OrStatementBuilder
impl Default for OrStatementBuilder
source§fn default() -> OrStatementBuilder
fn default() -> OrStatementBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for OrStatementBuilder
impl PartialEq for OrStatementBuilder
source§fn eq(&self, other: &OrStatementBuilder) -> bool
fn eq(&self, other: &OrStatementBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for OrStatementBuilder
Auto Trait Implementations§
impl Freeze for OrStatementBuilder
impl RefUnwindSafe for OrStatementBuilder
impl Send for OrStatementBuilder
impl Sync for OrStatementBuilder
impl Unpin for OrStatementBuilder
impl UnwindSafe for OrStatementBuilder
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>
Creates a shared type from an unshared type.