/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.wafv2.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* The criteria for inspecting account creation requests, used by the ACFP rule group to validate and track account * creation attempts. *

*

* This is part of the AWSManagedRulesACFPRuleSet configuration in ManagedRuleGroupConfig. *

*

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

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class RequestInspectionACFP implements Serializable, Cloneable, StructuredPojo { /** *

* The payload type for your account creation endpoint, either JSON or form encoded. *

*/ private String payloadType; /** *

* The name of the field in the request payload that contains your customer's username. *

*

* How you specify this depends on the request inspection payload type. *

* */ private UsernameField usernameField; /** *

* The name of the field in the request payload that contains your customer's password. *

*

* How you specify this depends on the request inspection payload type. *

* */ private PasswordField passwordField; /** *

* The name of the field in the request payload that contains your customer's email. *

*

* How you specify this depends on the request inspection payload type. *

* */ private EmailField emailField; /** *

* The names of the fields in the request payload that contain your customer's primary phone number. *

*

* Order the phone number fields in the array exactly as they are ordered in the request payload. *

*

* How you specify the phone number fields depends on the request inspection payload type. *

* */ private java.util.List phoneNumberFields; /** *

* The names of the fields in the request payload that contain your customer's primary physical address. *

*

* Order the address fields in the array exactly as they are ordered in the request payload. *

*

* How you specify the address fields depends on the request inspection payload type. *

* */ private java.util.List addressFields; /** *

* The payload type for your account creation endpoint, either JSON or form encoded. *

* * @param payloadType * The payload type for your account creation endpoint, either JSON or form encoded. * @see PayloadType */ public void setPayloadType(String payloadType) { this.payloadType = payloadType; } /** *

* The payload type for your account creation endpoint, either JSON or form encoded. *

* * @return The payload type for your account creation endpoint, either JSON or form encoded. * @see PayloadType */ public String getPayloadType() { return this.payloadType; } /** *

* The payload type for your account creation endpoint, either JSON or form encoded. *

* * @param payloadType * The payload type for your account creation endpoint, either JSON or form encoded. * @return Returns a reference to this object so that method calls can be chained together. * @see PayloadType */ public RequestInspectionACFP withPayloadType(String payloadType) { setPayloadType(payloadType); return this; } /** *

* The payload type for your account creation endpoint, either JSON or form encoded. *

* * @param payloadType * The payload type for your account creation endpoint, either JSON or form encoded. * @return Returns a reference to this object so that method calls can be chained together. * @see PayloadType */ public RequestInspectionACFP withPayloadType(PayloadType payloadType) { this.payloadType = payloadType.toString(); return this; } /** *

* The name of the field in the request payload that contains your customer's username. *

*

* How you specify this depends on the request inspection payload type. *

* * * @param usernameField * The name of the field in the request payload that contains your customer's username.

*

* How you specify this depends on the request inspection payload type. *

*