Struct aws_sdk_wafv2::types::builders::PhoneNumberFieldBuilder
source · #[non_exhaustive]pub struct PhoneNumberFieldBuilder { /* private fields */ }
Expand description
A builder for PhoneNumberField
.
Implementations§
source§impl PhoneNumberFieldBuilder
impl PhoneNumberFieldBuilder
sourcepub fn identifier(self, input: impl Into<String>) -> Self
pub fn identifier(self, input: impl Into<String>) -> Self
The name of a single primary phone number field.
How you specify the phone number 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": { "primaryphoneline1": "THE_PHONE1", "primaryphoneline2": "THE_PHONE2", "primaryphoneline3": "THE_PHONE3" } }
, the phone number field identifiers are/form/primaryphoneline1
,/form/primaryphoneline2
, and/form/primaryphoneline3
. -
For form encoded payload types, use the HTML form names.
For example, for an HTML form with input elements named
primaryphoneline1
,primaryphoneline2
, andprimaryphoneline3
, the phone number field identifiers areprimaryphoneline1
,primaryphoneline2
, andprimaryphoneline3
.
sourcepub fn set_identifier(self, input: Option<String>) -> Self
pub fn set_identifier(self, input: Option<String>) -> Self
The name of a single primary phone number field.
How you specify the phone number 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": { "primaryphoneline1": "THE_PHONE1", "primaryphoneline2": "THE_PHONE2", "primaryphoneline3": "THE_PHONE3" } }
, the phone number field identifiers are/form/primaryphoneline1
,/form/primaryphoneline2
, and/form/primaryphoneline3
. -
For form encoded payload types, use the HTML form names.
For example, for an HTML form with input elements named
primaryphoneline1
,primaryphoneline2
, andprimaryphoneline3
, the phone number field identifiers areprimaryphoneline1
,primaryphoneline2
, andprimaryphoneline3
.
sourcepub fn get_identifier(&self) -> &Option<String>
pub fn get_identifier(&self) -> &Option<String>
The name of a single primary phone number field.
How you specify the phone number 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": { "primaryphoneline1": "THE_PHONE1", "primaryphoneline2": "THE_PHONE2", "primaryphoneline3": "THE_PHONE3" } }
, the phone number field identifiers are/form/primaryphoneline1
,/form/primaryphoneline2
, and/form/primaryphoneline3
. -
For form encoded payload types, use the HTML form names.
For example, for an HTML form with input elements named
primaryphoneline1
,primaryphoneline2
, andprimaryphoneline3
, the phone number field identifiers areprimaryphoneline1
,primaryphoneline2
, andprimaryphoneline3
.
sourcepub fn build(self) -> Result<PhoneNumberField, BuildError>
pub fn build(self) -> Result<PhoneNumberField, BuildError>
Consumes the builder and constructs a PhoneNumberField
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for PhoneNumberFieldBuilder
impl Clone for PhoneNumberFieldBuilder
source§fn clone(&self) -> PhoneNumberFieldBuilder
fn clone(&self) -> PhoneNumberFieldBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PhoneNumberFieldBuilder
impl Debug for PhoneNumberFieldBuilder
source§impl Default for PhoneNumberFieldBuilder
impl Default for PhoneNumberFieldBuilder
source§fn default() -> PhoneNumberFieldBuilder
fn default() -> PhoneNumberFieldBuilder
source§impl PartialEq for PhoneNumberFieldBuilder
impl PartialEq for PhoneNumberFieldBuilder
source§fn eq(&self, other: &PhoneNumberFieldBuilder) -> bool
fn eq(&self, other: &PhoneNumberFieldBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.