/**
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0.
 */

#pragma once
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/wafv2/WAFV2_EXPORTS.h>

#include <utility>

namespace Aws {
namespace Utils {
namespace Json {
class JsonValue;
class JsonView;
}  // namespace Json
}  // namespace Utils
namespace WAFV2 {
namespace Model {

/**
 * <p>The name of a field in the request payload that contains part or all of your
 * customer's primary phone number. </p> <p>This data type is used in the
 * <code>RequestInspectionACFP</code> data type. </p><p><h3>See Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/PhoneNumberField">AWS
 * API Reference</a></p>
 */
class PhoneNumberField {
 public:
  AWS_WAFV2_API PhoneNumberField() = default;
  AWS_WAFV2_API PhoneNumberField(Aws::Utils::Json::JsonView jsonValue);
  AWS_WAFV2_API PhoneNumberField& operator=(Aws::Utils::Json::JsonView jsonValue);
  AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;

  ///@{
  /**
   * <p>The name of a single primary phone number field. </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>
   */
  inline const Aws::String& GetIdentifier() const { return m_identifier; }
  inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
  template <typename IdentifierT = Aws::String>
  void SetIdentifier(IdentifierT&& value) {
    m_identifierHasBeenSet = true;
    m_identifier = std::forward<IdentifierT>(value);
  }
  template <typename IdentifierT = Aws::String>
  PhoneNumberField& WithIdentifier(IdentifierT&& value) {
    SetIdentifier(std::forward<IdentifierT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::String m_identifier;
  bool m_identifierHasBeenSet = false;
};

}  // namespace Model
}  // namespace WAFV2
}  // namespace Aws
