Struct aws_sdk_wafv2::types::builders::AddressFieldBuilder
source · #[non_exhaustive]pub struct AddressFieldBuilder { /* private fields */ }Expand description
A builder for AddressField.
Implementations§
source§impl AddressFieldBuilder
impl AddressFieldBuilder
sourcepub fn identifier(self, input: impl Into<String>) -> Self
pub fn identifier(self, input: impl Into<String>) -> Self
The name of a single primary address field.
How you specify the address fields depends on the request inspection payload type.
-
For JSON payloads, specify the field identifiers in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation JavaScript Object Notation (JSON) Pointer.
For example, for the JSON payload
{ "form": { "primaryaddressline1": "THE_ADDRESS1", "primaryaddressline2": "THE_ADDRESS2", "primaryaddressline3": "THE_ADDRESS3" } }, the address field idenfiers are/form/primaryaddressline1,/form/primaryaddressline2, and/form/primaryaddressline3. -
For form encoded payload types, use the HTML form names.
For example, for an HTML form with input elements named
primaryaddressline1,primaryaddressline2, andprimaryaddressline3, the address fields identifiers areprimaryaddressline1,primaryaddressline2, andprimaryaddressline3.
sourcepub fn set_identifier(self, input: Option<String>) -> Self
pub fn set_identifier(self, input: Option<String>) -> Self
The name of a single primary address field.
How you specify the address fields depends on the request inspection payload type.
-
For JSON payloads, specify the field identifiers in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation JavaScript Object Notation (JSON) Pointer.
For example, for the JSON payload
{ "form": { "primaryaddressline1": "THE_ADDRESS1", "primaryaddressline2": "THE_ADDRESS2", "primaryaddressline3": "THE_ADDRESS3" } }, the address field idenfiers are/form/primaryaddressline1,/form/primaryaddressline2, and/form/primaryaddressline3. -
For form encoded payload types, use the HTML form names.
For example, for an HTML form with input elements named
primaryaddressline1,primaryaddressline2, andprimaryaddressline3, the address fields identifiers areprimaryaddressline1,primaryaddressline2, andprimaryaddressline3.
sourcepub fn get_identifier(&self) -> &Option<String>
pub fn get_identifier(&self) -> &Option<String>
The name of a single primary address field.
How you specify the address fields depends on the request inspection payload type.
-
For JSON payloads, specify the field identifiers in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation JavaScript Object Notation (JSON) Pointer.
For example, for the JSON payload
{ "form": { "primaryaddressline1": "THE_ADDRESS1", "primaryaddressline2": "THE_ADDRESS2", "primaryaddressline3": "THE_ADDRESS3" } }, the address field idenfiers are/form/primaryaddressline1,/form/primaryaddressline2, and/form/primaryaddressline3. -
For form encoded payload types, use the HTML form names.
For example, for an HTML form with input elements named
primaryaddressline1,primaryaddressline2, andprimaryaddressline3, the address fields identifiers areprimaryaddressline1,primaryaddressline2, andprimaryaddressline3.
sourcepub fn build(self) -> Result<AddressField, BuildError>
pub fn build(self) -> Result<AddressField, BuildError>
Consumes the builder and constructs a AddressField.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AddressFieldBuilder
impl Clone for AddressFieldBuilder
source§fn clone(&self) -> AddressFieldBuilder
fn clone(&self) -> AddressFieldBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AddressFieldBuilder
impl Debug for AddressFieldBuilder
source§impl Default for AddressFieldBuilder
impl Default for AddressFieldBuilder
source§fn default() -> AddressFieldBuilder
fn default() -> AddressFieldBuilder
source§impl PartialEq for AddressFieldBuilder
impl PartialEq for AddressFieldBuilder
impl StructuralPartialEq for AddressFieldBuilder
Auto Trait Implementations§
impl Freeze for AddressFieldBuilder
impl RefUnwindSafe for AddressFieldBuilder
impl Send for AddressFieldBuilder
impl Sync for AddressFieldBuilder
impl Unpin for AddressFieldBuilder
impl UnwindSafe for AddressFieldBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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