Struct aws_sdk_wafv2::types::builders::JsonMatchPatternBuilder
source · #[non_exhaustive]pub struct JsonMatchPatternBuilder { /* private fields */ }
Expand description
A builder for JsonMatchPattern
.
Implementations§
source§impl JsonMatchPatternBuilder
impl JsonMatchPatternBuilder
sourcepub fn all(self, input: All) -> Self
pub fn all(self, input: All) -> Self
Match all of the elements. See also MatchScope
in JsonBody
.
You must specify either this setting or the IncludedPaths
setting, but not both.
sourcepub fn set_all(self, input: Option<All>) -> Self
pub fn set_all(self, input: Option<All>) -> Self
Match all of the elements. See also MatchScope
in JsonBody
.
You must specify either this setting or the IncludedPaths
setting, but not both.
sourcepub fn get_all(&self) -> &Option<All>
pub fn get_all(&self) -> &Option<All>
Match all of the elements. See also MatchScope
in JsonBody
.
You must specify either this setting or the IncludedPaths
setting, but not both.
sourcepub fn included_paths(self, input: impl Into<String>) -> Self
pub fn included_paths(self, input: impl Into<String>) -> Self
Appends an item to included_paths
.
To override the contents of this collection use set_included_paths
.
Match only the specified include paths. See also MatchScope
in JsonBody
.
Provide the include paths using JSON Pointer syntax. For example, "IncludedPaths": ["/dogs/0/name", "/dogs/1/name"]
. For information about this syntax, see the Internet Engineering Task Force (IETF) documentation JavaScript Object Notation (JSON) Pointer.
You must specify either this setting or the All
setting, but not both.
Don't use this option to include all paths. Instead, use the All
setting.
sourcepub fn set_included_paths(self, input: Option<Vec<String>>) -> Self
pub fn set_included_paths(self, input: Option<Vec<String>>) -> Self
Match only the specified include paths. See also MatchScope
in JsonBody
.
Provide the include paths using JSON Pointer syntax. For example, "IncludedPaths": ["/dogs/0/name", "/dogs/1/name"]
. For information about this syntax, see the Internet Engineering Task Force (IETF) documentation JavaScript Object Notation (JSON) Pointer.
You must specify either this setting or the All
setting, but not both.
Don't use this option to include all paths. Instead, use the All
setting.
sourcepub fn get_included_paths(&self) -> &Option<Vec<String>>
pub fn get_included_paths(&self) -> &Option<Vec<String>>
Match only the specified include paths. See also MatchScope
in JsonBody
.
Provide the include paths using JSON Pointer syntax. For example, "IncludedPaths": ["/dogs/0/name", "/dogs/1/name"]
. For information about this syntax, see the Internet Engineering Task Force (IETF) documentation JavaScript Object Notation (JSON) Pointer.
You must specify either this setting or the All
setting, but not both.
Don't use this option to include all paths. Instead, use the All
setting.
sourcepub fn build(self) -> JsonMatchPattern
pub fn build(self) -> JsonMatchPattern
Consumes the builder and constructs a JsonMatchPattern
.
Trait Implementations§
source§impl Clone for JsonMatchPatternBuilder
impl Clone for JsonMatchPatternBuilder
source§fn clone(&self) -> JsonMatchPatternBuilder
fn clone(&self) -> JsonMatchPatternBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for JsonMatchPatternBuilder
impl Debug for JsonMatchPatternBuilder
source§impl Default for JsonMatchPatternBuilder
impl Default for JsonMatchPatternBuilder
source§fn default() -> JsonMatchPatternBuilder
fn default() -> JsonMatchPatternBuilder
source§impl PartialEq for JsonMatchPatternBuilder
impl PartialEq for JsonMatchPatternBuilder
source§fn eq(&self, other: &JsonMatchPatternBuilder) -> bool
fn eq(&self, other: &JsonMatchPatternBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for JsonMatchPatternBuilder
Auto Trait Implementations§
impl Freeze for JsonMatchPatternBuilder
impl RefUnwindSafe for JsonMatchPatternBuilder
impl Send for JsonMatchPatternBuilder
impl Sync for JsonMatchPatternBuilder
impl Unpin for JsonMatchPatternBuilder
impl UnwindSafe for JsonMatchPatternBuilder
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