1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>The criteria for inspecting account creation requests, used by the ACFP rule group to validate and track account creation attempts.</p>
/// <p>This is part of the <code>AWSManagedRulesACFPRuleSet</code> configuration in <code>ManagedRuleGroupConfig</code>.</p>
/// <p>In these settings, you specify how your application accepts account creation attempts by providing the request payload type and the names of the fields within the request body where the username, password, email, and primary address and phone number fields are provided.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct RequestInspectionAcfp {
/// <p>The payload type for your account creation endpoint, either JSON or form encoded.</p>
pub payload_type: crate::types::PayloadType,
/// <p>The name of the field in the request payload that contains your customer's username.</p>
/// <p>How you specify this depends on the request inspection payload type.</p>
/// <ul>
/// <li>
/// <p>For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation <a href="https://tools.ietf.org/html/rfc6901">JavaScript Object Notation (JSON) Pointer</a>.</p>
/// <p>For example, for the JSON payload <code>{ "form": { "username": "THE_USERNAME" } }</code>, the username field specification is <code>/form/username</code>.</p></li>
/// <li>
/// <p>For form encoded payload types, use the HTML form names.</p>
/// <p>For example, for an HTML form with the input element named <code>username1</code>, the username field specification is <code>username1</code></p></li>
/// </ul>
pub username_field: ::std::option::Option<crate::types::UsernameField>,
/// <p>The name of the field in the request payload that contains your customer's password.</p>
/// <p>How you specify this depends on the request inspection payload type.</p>
/// <ul>
/// <li>
/// <p>For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation <a href="https://tools.ietf.org/html/rfc6901">JavaScript Object Notation (JSON) Pointer</a>.</p>
/// <p>For example, for the JSON payload <code>{ "form": { "password": "THE_PASSWORD" } }</code>, the password field specification is <code>/form/password</code>.</p></li>
/// <li>
/// <p>For form encoded payload types, use the HTML form names.</p>
/// <p>For example, for an HTML form with the input element named <code>password1</code>, the password field specification is <code>password1</code>.</p></li>
/// </ul>
pub password_field: ::std::option::Option<crate::types::PasswordField>,
/// <p>The name of the field in the request payload that contains your customer's email.</p>
/// <p>How you specify this depends on the request inspection payload type.</p>
/// <ul>
/// <li>
/// <p>For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation <a href="https://tools.ietf.org/html/rfc6901">JavaScript Object Notation (JSON) Pointer</a>.</p>
/// <p>For example, for the JSON payload <code>{ "form": { "email": "THE_EMAIL" } }</code>, the email field specification is <code>/form/email</code>.</p></li>
/// <li>
/// <p>For form encoded payload types, use the HTML form names.</p>
/// <p>For example, for an HTML form with the input element named <code>email1</code>, the email field specification is <code>email1</code>.</p></li>
/// </ul>
pub email_field: ::std::option::Option<crate::types::EmailField>,
/// <p>The names of the fields in the request payload that contain your customer's primary phone number.</p>
/// <p>Order the phone number fields in the array exactly as they are ordered in the request payload.</p>
/// <p>How you specify the phone number fields depends on the request inspection payload type.</p>
/// <ul>
/// <li>
/// <p>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 <a href="https://tools.ietf.org/html/rfc6901">JavaScript Object Notation (JSON) Pointer</a>.</p>
/// <p>For example, for the JSON payload <code>{ "form": { "primaryphoneline1": "THE_PHONE1", "primaryphoneline2": "THE_PHONE2", "primaryphoneline3": "THE_PHONE3" } }</code>, the phone number field identifiers are <code>/form/primaryphoneline1</code>, <code>/form/primaryphoneline2</code>, and <code>/form/primaryphoneline3</code>.</p></li>
/// <li>
/// <p>For form encoded payload types, use the HTML form names.</p>
/// <p>For example, for an HTML form with input elements named <code>primaryphoneline1</code>, <code>primaryphoneline2</code>, and <code>primaryphoneline3</code>, the phone number field identifiers are <code>primaryphoneline1</code>, <code>primaryphoneline2</code>, and <code>primaryphoneline3</code>.</p></li>
/// </ul>
pub phone_number_fields: ::std::option::Option<::std::vec::Vec<crate::types::PhoneNumberField>>,
/// <p>The names of the fields in the request payload that contain your customer's primary physical address.</p>
/// <p>Order the address fields in the array exactly as they are ordered in the request payload.</p>
/// <p>How you specify the address fields depends on the request inspection payload type.</p>
/// <ul>
/// <li>
/// <p>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 <a href="https://tools.ietf.org/html/rfc6901">JavaScript Object Notation (JSON) Pointer</a>.</p>
/// <p>For example, for the JSON payload <code>{ "form": { "primaryaddressline1": "THE_ADDRESS1", "primaryaddressline2": "THE_ADDRESS2", "primaryaddressline3": "THE_ADDRESS3" } }</code>, the address field idenfiers are <code>/form/primaryaddressline1</code>, <code>/form/primaryaddressline2</code>, and <code>/form/primaryaddressline3</code>.</p></li>
/// <li>
/// <p>For form encoded payload types, use the HTML form names.</p>
/// <p>For example, for an HTML form with input elements named <code>primaryaddressline1</code>, <code>primaryaddressline2</code>, and <code>primaryaddressline3</code>, the address fields identifiers are <code>primaryaddressline1</code>, <code>primaryaddressline2</code>, and <code>primaryaddressline3</code>.</p></li>
/// </ul>
pub address_fields: ::std::option::Option<::std::vec::Vec<crate::types::AddressField>>,
}
impl RequestInspectionAcfp {
/// <p>The payload type for your account creation endpoint, either JSON or form encoded.</p>
pub fn payload_type(&self) -> &crate::types::PayloadType {
&self.payload_type
}
/// <p>The name of the field in the request payload that contains your customer's username.</p>
/// <p>How you specify this depends on the request inspection payload type.</p>
/// <ul>
/// <li>
/// <p>For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation <a href="https://tools.ietf.org/html/rfc6901">JavaScript Object Notation (JSON) Pointer</a>.</p>
/// <p>For example, for the JSON payload <code>{ "form": { "username": "THE_USERNAME" } }</code>, the username field specification is <code>/form/username</code>.</p></li>
/// <li>
/// <p>For form encoded payload types, use the HTML form names.</p>
/// <p>For example, for an HTML form with the input element named <code>username1</code>, the username field specification is <code>username1</code></p></li>
/// </ul>
pub fn username_field(&self) -> ::std::option::Option<&crate::types::UsernameField> {
self.username_field.as_ref()
}
/// <p>The name of the field in the request payload that contains your customer's password.</p>
/// <p>How you specify this depends on the request inspection payload type.</p>
/// <ul>
/// <li>
/// <p>For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation <a href="https://tools.ietf.org/html/rfc6901">JavaScript Object Notation (JSON) Pointer</a>.</p>
/// <p>For example, for the JSON payload <code>{ "form": { "password": "THE_PASSWORD" } }</code>, the password field specification is <code>/form/password</code>.</p></li>
/// <li>
/// <p>For form encoded payload types, use the HTML form names.</p>
/// <p>For example, for an HTML form with the input element named <code>password1</code>, the password field specification is <code>password1</code>.</p></li>
/// </ul>
pub fn password_field(&self) -> ::std::option::Option<&crate::types::PasswordField> {
self.password_field.as_ref()
}
/// <p>The name of the field in the request payload that contains your customer's email.</p>
/// <p>How you specify this depends on the request inspection payload type.</p>
/// <ul>
/// <li>
/// <p>For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation <a href="https://tools.ietf.org/html/rfc6901">JavaScript Object Notation (JSON) Pointer</a>.</p>
/// <p>For example, for the JSON payload <code>{ "form": { "email": "THE_EMAIL" } }</code>, the email field specification is <code>/form/email</code>.</p></li>
/// <li>
/// <p>For form encoded payload types, use the HTML form names.</p>
/// <p>For example, for an HTML form with the input element named <code>email1</code>, the email field specification is <code>email1</code>.</p></li>
/// </ul>
pub fn email_field(&self) -> ::std::option::Option<&crate::types::EmailField> {
self.email_field.as_ref()
}
/// <p>The names of the fields in the request payload that contain your customer's primary phone number.</p>
/// <p>Order the phone number fields in the array exactly as they are ordered in the request payload.</p>
/// <p>How you specify the phone number fields depends on the request inspection payload type.</p>
/// <ul>
/// <li>
/// <p>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 <a href="https://tools.ietf.org/html/rfc6901">JavaScript Object Notation (JSON) Pointer</a>.</p>
/// <p>For example, for the JSON payload <code>{ "form": { "primaryphoneline1": "THE_PHONE1", "primaryphoneline2": "THE_PHONE2", "primaryphoneline3": "THE_PHONE3" } }</code>, the phone number field identifiers are <code>/form/primaryphoneline1</code>, <code>/form/primaryphoneline2</code>, and <code>/form/primaryphoneline3</code>.</p></li>
/// <li>
/// <p>For form encoded payload types, use the HTML form names.</p>
/// <p>For example, for an HTML form with input elements named <code>primaryphoneline1</code>, <code>primaryphoneline2</code>, and <code>primaryphoneline3</code>, the phone number field identifiers are <code>primaryphoneline1</code>, <code>primaryphoneline2</code>, and <code>primaryphoneline3</code>.</p></li>
/// </ul>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.phone_number_fields.is_none()`.
pub fn phone_number_fields(&self) -> &[crate::types::PhoneNumberField] {
self.phone_number_fields.as_deref().unwrap_or_default()
}
/// <p>The names of the fields in the request payload that contain your customer's primary physical address.</p>
/// <p>Order the address fields in the array exactly as they are ordered in the request payload.</p>
/// <p>How you specify the address fields depends on the request inspection payload type.</p>
/// <ul>
/// <li>
/// <p>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 <a href="https://tools.ietf.org/html/rfc6901">JavaScript Object Notation (JSON) Pointer</a>.</p>
/// <p>For example, for the JSON payload <code>{ "form": { "primaryaddressline1": "THE_ADDRESS1", "primaryaddressline2": "THE_ADDRESS2", "primaryaddressline3": "THE_ADDRESS3" } }</code>, the address field idenfiers are <code>/form/primaryaddressline1</code>, <code>/form/primaryaddressline2</code>, and <code>/form/primaryaddressline3</code>.</p></li>
/// <li>
/// <p>For form encoded payload types, use the HTML form names.</p>
/// <p>For example, for an HTML form with input elements named <code>primaryaddressline1</code>, <code>primaryaddressline2</code>, and <code>primaryaddressline3</code>, the address fields identifiers are <code>primaryaddressline1</code>, <code>primaryaddressline2</code>, and <code>primaryaddressline3</code>.</p></li>
/// </ul>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.address_fields.is_none()`.
pub fn address_fields(&self) -> &[crate::types::AddressField] {
self.address_fields.as_deref().unwrap_or_default()
}
}
impl RequestInspectionAcfp {
/// Creates a new builder-style object to manufacture [`RequestInspectionAcfp`](crate::types::RequestInspectionAcfp).
pub fn builder() -> crate::types::builders::RequestInspectionAcfpBuilder {
crate::types::builders::RequestInspectionAcfpBuilder::default()
}
}
/// A builder for [`RequestInspectionAcfp`](crate::types::RequestInspectionAcfp).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct RequestInspectionAcfpBuilder {
pub(crate) payload_type: ::std::option::Option<crate::types::PayloadType>,
pub(crate) username_field: ::std::option::Option<crate::types::UsernameField>,
pub(crate) password_field: ::std::option::Option<crate::types::PasswordField>,
pub(crate) email_field: ::std::option::Option<crate::types::EmailField>,
pub(crate) phone_number_fields: ::std::option::Option<::std::vec::Vec<crate::types::PhoneNumberField>>,
pub(crate) address_fields: ::std::option::Option<::std::vec::Vec<crate::types::AddressField>>,
}
impl RequestInspectionAcfpBuilder {
/// <p>The payload type for your account creation endpoint, either JSON or form encoded.</p>
/// This field is required.
pub fn payload_type(mut self, input: crate::types::PayloadType) -> Self {
self.payload_type = ::std::option::Option::Some(input);
self
}
/// <p>The payload type for your account creation endpoint, either JSON or form encoded.</p>
pub fn set_payload_type(mut self, input: ::std::option::Option<crate::types::PayloadType>) -> Self {
self.payload_type = input;
self
}
/// <p>The payload type for your account creation endpoint, either JSON or form encoded.</p>
pub fn get_payload_type(&self) -> &::std::option::Option<crate::types::PayloadType> {
&self.payload_type
}
/// <p>The name of the field in the request payload that contains your customer's username.</p>
/// <p>How you specify this depends on the request inspection payload type.</p>
/// <ul>
/// <li>
/// <p>For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation <a href="https://tools.ietf.org/html/rfc6901">JavaScript Object Notation (JSON) Pointer</a>.</p>
/// <p>For example, for the JSON payload <code>{ "form": { "username": "THE_USERNAME" } }</code>, the username field specification is <code>/form/username</code>.</p></li>
/// <li>
/// <p>For form encoded payload types, use the HTML form names.</p>
/// <p>For example, for an HTML form with the input element named <code>username1</code>, the username field specification is <code>username1</code></p></li>
/// </ul>
pub fn username_field(mut self, input: crate::types::UsernameField) -> Self {
self.username_field = ::std::option::Option::Some(input);
self
}
/// <p>The name of the field in the request payload that contains your customer's username.</p>
/// <p>How you specify this depends on the request inspection payload type.</p>
/// <ul>
/// <li>
/// <p>For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation <a href="https://tools.ietf.org/html/rfc6901">JavaScript Object Notation (JSON) Pointer</a>.</p>
/// <p>For example, for the JSON payload <code>{ "form": { "username": "THE_USERNAME" } }</code>, the username field specification is <code>/form/username</code>.</p></li>
/// <li>
/// <p>For form encoded payload types, use the HTML form names.</p>
/// <p>For example, for an HTML form with the input element named <code>username1</code>, the username field specification is <code>username1</code></p></li>
/// </ul>
pub fn set_username_field(mut self, input: ::std::option::Option<crate::types::UsernameField>) -> Self {
self.username_field = input;
self
}
/// <p>The name of the field in the request payload that contains your customer's username.</p>
/// <p>How you specify this depends on the request inspection payload type.</p>
/// <ul>
/// <li>
/// <p>For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation <a href="https://tools.ietf.org/html/rfc6901">JavaScript Object Notation (JSON) Pointer</a>.</p>
/// <p>For example, for the JSON payload <code>{ "form": { "username": "THE_USERNAME" } }</code>, the username field specification is <code>/form/username</code>.</p></li>
/// <li>
/// <p>For form encoded payload types, use the HTML form names.</p>
/// <p>For example, for an HTML form with the input element named <code>username1</code>, the username field specification is <code>username1</code></p></li>
/// </ul>
pub fn get_username_field(&self) -> &::std::option::Option<crate::types::UsernameField> {
&self.username_field
}
/// <p>The name of the field in the request payload that contains your customer's password.</p>
/// <p>How you specify this depends on the request inspection payload type.</p>
/// <ul>
/// <li>
/// <p>For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation <a href="https://tools.ietf.org/html/rfc6901">JavaScript Object Notation (JSON) Pointer</a>.</p>
/// <p>For example, for the JSON payload <code>{ "form": { "password": "THE_PASSWORD" } }</code>, the password field specification is <code>/form/password</code>.</p></li>
/// <li>
/// <p>For form encoded payload types, use the HTML form names.</p>
/// <p>For example, for an HTML form with the input element named <code>password1</code>, the password field specification is <code>password1</code>.</p></li>
/// </ul>
pub fn password_field(mut self, input: crate::types::PasswordField) -> Self {
self.password_field = ::std::option::Option::Some(input);
self
}
/// <p>The name of the field in the request payload that contains your customer's password.</p>
/// <p>How you specify this depends on the request inspection payload type.</p>
/// <ul>
/// <li>
/// <p>For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation <a href="https://tools.ietf.org/html/rfc6901">JavaScript Object Notation (JSON) Pointer</a>.</p>
/// <p>For example, for the JSON payload <code>{ "form": { "password": "THE_PASSWORD" } }</code>, the password field specification is <code>/form/password</code>.</p></li>
/// <li>
/// <p>For form encoded payload types, use the HTML form names.</p>
/// <p>For example, for an HTML form with the input element named <code>password1</code>, the password field specification is <code>password1</code>.</p></li>
/// </ul>
pub fn set_password_field(mut self, input: ::std::option::Option<crate::types::PasswordField>) -> Self {
self.password_field = input;
self
}
/// <p>The name of the field in the request payload that contains your customer's password.</p>
/// <p>How you specify this depends on the request inspection payload type.</p>
/// <ul>
/// <li>
/// <p>For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation <a href="https://tools.ietf.org/html/rfc6901">JavaScript Object Notation (JSON) Pointer</a>.</p>
/// <p>For example, for the JSON payload <code>{ "form": { "password": "THE_PASSWORD" } }</code>, the password field specification is <code>/form/password</code>.</p></li>
/// <li>
/// <p>For form encoded payload types, use the HTML form names.</p>
/// <p>For example, for an HTML form with the input element named <code>password1</code>, the password field specification is <code>password1</code>.</p></li>
/// </ul>
pub fn get_password_field(&self) -> &::std::option::Option<crate::types::PasswordField> {
&self.password_field
}
/// <p>The name of the field in the request payload that contains your customer's email.</p>
/// <p>How you specify this depends on the request inspection payload type.</p>
/// <ul>
/// <li>
/// <p>For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation <a href="https://tools.ietf.org/html/rfc6901">JavaScript Object Notation (JSON) Pointer</a>.</p>
/// <p>For example, for the JSON payload <code>{ "form": { "email": "THE_EMAIL" } }</code>, the email field specification is <code>/form/email</code>.</p></li>
/// <li>
/// <p>For form encoded payload types, use the HTML form names.</p>
/// <p>For example, for an HTML form with the input element named <code>email1</code>, the email field specification is <code>email1</code>.</p></li>
/// </ul>
pub fn email_field(mut self, input: crate::types::EmailField) -> Self {
self.email_field = ::std::option::Option::Some(input);
self
}
/// <p>The name of the field in the request payload that contains your customer's email.</p>
/// <p>How you specify this depends on the request inspection payload type.</p>
/// <ul>
/// <li>
/// <p>For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation <a href="https://tools.ietf.org/html/rfc6901">JavaScript Object Notation (JSON) Pointer</a>.</p>
/// <p>For example, for the JSON payload <code>{ "form": { "email": "THE_EMAIL" } }</code>, the email field specification is <code>/form/email</code>.</p></li>
/// <li>
/// <p>For form encoded payload types, use the HTML form names.</p>
/// <p>For example, for an HTML form with the input element named <code>email1</code>, the email field specification is <code>email1</code>.</p></li>
/// </ul>
pub fn set_email_field(mut self, input: ::std::option::Option<crate::types::EmailField>) -> Self {
self.email_field = input;
self
}
/// <p>The name of the field in the request payload that contains your customer's email.</p>
/// <p>How you specify this depends on the request inspection payload type.</p>
/// <ul>
/// <li>
/// <p>For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation <a href="https://tools.ietf.org/html/rfc6901">JavaScript Object Notation (JSON) Pointer</a>.</p>
/// <p>For example, for the JSON payload <code>{ "form": { "email": "THE_EMAIL" } }</code>, the email field specification is <code>/form/email</code>.</p></li>
/// <li>
/// <p>For form encoded payload types, use the HTML form names.</p>
/// <p>For example, for an HTML form with the input element named <code>email1</code>, the email field specification is <code>email1</code>.</p></li>
/// </ul>
pub fn get_email_field(&self) -> &::std::option::Option<crate::types::EmailField> {
&self.email_field
}
/// Appends an item to `phone_number_fields`.
///
/// To override the contents of this collection use [`set_phone_number_fields`](Self::set_phone_number_fields).
///
/// <p>The names of the fields in the request payload that contain your customer's primary phone number.</p>
/// <p>Order the phone number fields in the array exactly as they are ordered in the request payload.</p>
/// <p>How you specify the phone number fields depends on the request inspection payload type.</p>
/// <ul>
/// <li>
/// <p>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 <a href="https://tools.ietf.org/html/rfc6901">JavaScript Object Notation (JSON) Pointer</a>.</p>
/// <p>For example, for the JSON payload <code>{ "form": { "primaryphoneline1": "THE_PHONE1", "primaryphoneline2": "THE_PHONE2", "primaryphoneline3": "THE_PHONE3" } }</code>, the phone number field identifiers are <code>/form/primaryphoneline1</code>, <code>/form/primaryphoneline2</code>, and <code>/form/primaryphoneline3</code>.</p></li>
/// <li>
/// <p>For form encoded payload types, use the HTML form names.</p>
/// <p>For example, for an HTML form with input elements named <code>primaryphoneline1</code>, <code>primaryphoneline2</code>, and <code>primaryphoneline3</code>, the phone number field identifiers are <code>primaryphoneline1</code>, <code>primaryphoneline2</code>, and <code>primaryphoneline3</code>.</p></li>
/// </ul>
pub fn phone_number_fields(mut self, input: crate::types::PhoneNumberField) -> Self {
let mut v = self.phone_number_fields.unwrap_or_default();
v.push(input);
self.phone_number_fields = ::std::option::Option::Some(v);
self
}
/// <p>The names of the fields in the request payload that contain your customer's primary phone number.</p>
/// <p>Order the phone number fields in the array exactly as they are ordered in the request payload.</p>
/// <p>How you specify the phone number fields depends on the request inspection payload type.</p>
/// <ul>
/// <li>
/// <p>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 <a href="https://tools.ietf.org/html/rfc6901">JavaScript Object Notation (JSON) Pointer</a>.</p>
/// <p>For example, for the JSON payload <code>{ "form": { "primaryphoneline1": "THE_PHONE1", "primaryphoneline2": "THE_PHONE2", "primaryphoneline3": "THE_PHONE3" } }</code>, the phone number field identifiers are <code>/form/primaryphoneline1</code>, <code>/form/primaryphoneline2</code>, and <code>/form/primaryphoneline3</code>.</p></li>
/// <li>
/// <p>For form encoded payload types, use the HTML form names.</p>
/// <p>For example, for an HTML form with input elements named <code>primaryphoneline1</code>, <code>primaryphoneline2</code>, and <code>primaryphoneline3</code>, the phone number field identifiers are <code>primaryphoneline1</code>, <code>primaryphoneline2</code>, and <code>primaryphoneline3</code>.</p></li>
/// </ul>
pub fn set_phone_number_fields(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::PhoneNumberField>>) -> Self {
self.phone_number_fields = input;
self
}
/// <p>The names of the fields in the request payload that contain your customer's primary phone number.</p>
/// <p>Order the phone number fields in the array exactly as they are ordered in the request payload.</p>
/// <p>How you specify the phone number fields depends on the request inspection payload type.</p>
/// <ul>
/// <li>
/// <p>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 <a href="https://tools.ietf.org/html/rfc6901">JavaScript Object Notation (JSON) Pointer</a>.</p>
/// <p>For example, for the JSON payload <code>{ "form": { "primaryphoneline1": "THE_PHONE1", "primaryphoneline2": "THE_PHONE2", "primaryphoneline3": "THE_PHONE3" } }</code>, the phone number field identifiers are <code>/form/primaryphoneline1</code>, <code>/form/primaryphoneline2</code>, and <code>/form/primaryphoneline3</code>.</p></li>
/// <li>
/// <p>For form encoded payload types, use the HTML form names.</p>
/// <p>For example, for an HTML form with input elements named <code>primaryphoneline1</code>, <code>primaryphoneline2</code>, and <code>primaryphoneline3</code>, the phone number field identifiers are <code>primaryphoneline1</code>, <code>primaryphoneline2</code>, and <code>primaryphoneline3</code>.</p></li>
/// </ul>
pub fn get_phone_number_fields(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::PhoneNumberField>> {
&self.phone_number_fields
}
/// Appends an item to `address_fields`.
///
/// To override the contents of this collection use [`set_address_fields`](Self::set_address_fields).
///
/// <p>The names of the fields in the request payload that contain your customer's primary physical address.</p>
/// <p>Order the address fields in the array exactly as they are ordered in the request payload.</p>
/// <p>How you specify the address fields depends on the request inspection payload type.</p>
/// <ul>
/// <li>
/// <p>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 <a href="https://tools.ietf.org/html/rfc6901">JavaScript Object Notation (JSON) Pointer</a>.</p>
/// <p>For example, for the JSON payload <code>{ "form": { "primaryaddressline1": "THE_ADDRESS1", "primaryaddressline2": "THE_ADDRESS2", "primaryaddressline3": "THE_ADDRESS3" } }</code>, the address field idenfiers are <code>/form/primaryaddressline1</code>, <code>/form/primaryaddressline2</code>, and <code>/form/primaryaddressline3</code>.</p></li>
/// <li>
/// <p>For form encoded payload types, use the HTML form names.</p>
/// <p>For example, for an HTML form with input elements named <code>primaryaddressline1</code>, <code>primaryaddressline2</code>, and <code>primaryaddressline3</code>, the address fields identifiers are <code>primaryaddressline1</code>, <code>primaryaddressline2</code>, and <code>primaryaddressline3</code>.</p></li>
/// </ul>
pub fn address_fields(mut self, input: crate::types::AddressField) -> Self {
let mut v = self.address_fields.unwrap_or_default();
v.push(input);
self.address_fields = ::std::option::Option::Some(v);
self
}
/// <p>The names of the fields in the request payload that contain your customer's primary physical address.</p>
/// <p>Order the address fields in the array exactly as they are ordered in the request payload.</p>
/// <p>How you specify the address fields depends on the request inspection payload type.</p>
/// <ul>
/// <li>
/// <p>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 <a href="https://tools.ietf.org/html/rfc6901">JavaScript Object Notation (JSON) Pointer</a>.</p>
/// <p>For example, for the JSON payload <code>{ "form": { "primaryaddressline1": "THE_ADDRESS1", "primaryaddressline2": "THE_ADDRESS2", "primaryaddressline3": "THE_ADDRESS3" } }</code>, the address field idenfiers are <code>/form/primaryaddressline1</code>, <code>/form/primaryaddressline2</code>, and <code>/form/primaryaddressline3</code>.</p></li>
/// <li>
/// <p>For form encoded payload types, use the HTML form names.</p>
/// <p>For example, for an HTML form with input elements named <code>primaryaddressline1</code>, <code>primaryaddressline2</code>, and <code>primaryaddressline3</code>, the address fields identifiers are <code>primaryaddressline1</code>, <code>primaryaddressline2</code>, and <code>primaryaddressline3</code>.</p></li>
/// </ul>
pub fn set_address_fields(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::AddressField>>) -> Self {
self.address_fields = input;
self
}
/// <p>The names of the fields in the request payload that contain your customer's primary physical address.</p>
/// <p>Order the address fields in the array exactly as they are ordered in the request payload.</p>
/// <p>How you specify the address fields depends on the request inspection payload type.</p>
/// <ul>
/// <li>
/// <p>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 <a href="https://tools.ietf.org/html/rfc6901">JavaScript Object Notation (JSON) Pointer</a>.</p>
/// <p>For example, for the JSON payload <code>{ "form": { "primaryaddressline1": "THE_ADDRESS1", "primaryaddressline2": "THE_ADDRESS2", "primaryaddressline3": "THE_ADDRESS3" } }</code>, the address field idenfiers are <code>/form/primaryaddressline1</code>, <code>/form/primaryaddressline2</code>, and <code>/form/primaryaddressline3</code>.</p></li>
/// <li>
/// <p>For form encoded payload types, use the HTML form names.</p>
/// <p>For example, for an HTML form with input elements named <code>primaryaddressline1</code>, <code>primaryaddressline2</code>, and <code>primaryaddressline3</code>, the address fields identifiers are <code>primaryaddressline1</code>, <code>primaryaddressline2</code>, and <code>primaryaddressline3</code>.</p></li>
/// </ul>
pub fn get_address_fields(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::AddressField>> {
&self.address_fields
}
/// Consumes the builder and constructs a [`RequestInspectionAcfp`](crate::types::RequestInspectionAcfp).
/// This method will fail if any of the following fields are not set:
/// - [`payload_type`](crate::types::builders::RequestInspectionAcfpBuilder::payload_type)
pub fn build(self) -> ::std::result::Result<crate::types::RequestInspectionAcfp, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::types::RequestInspectionAcfp {
payload_type: self.payload_type.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"payload_type",
"payload_type was not specified but it is required when building RequestInspectionAcfp",
)
})?,
username_field: self.username_field,
password_field: self.password_field,
email_field: self.email_field,
phone_number_fields: self.phone_number_fields,
address_fields: self.address_fields,
})
}
}