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 ==.