AWS SDK for C++

AWS SDK for C++ Version 1.11.932

Loading...
Searching...
No Matches
FieldToProtect.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/wafv2/WAFV2_EXPORTS.h>
10#include <aws/wafv2/model/FieldToProtectType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace WAFV2 {
22namespace Model {
23
32 public:
33 AWS_WAFV2_API FieldToProtect() = default;
36 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline FieldToProtectType GetFieldType() const { return m_fieldType; }
43 inline bool FieldTypeHasBeenSet() const { return m_fieldTypeHasBeenSet; }
44 inline void SetFieldType(FieldToProtectType value) {
45 m_fieldTypeHasBeenSet = true;
46 m_fieldType = value;
47 }
49 SetFieldType(value);
50 return *this;
51 }
53
55
65 inline const Aws::Vector<Aws::String>& GetFieldKeys() const { return m_fieldKeys; }
66 inline bool FieldKeysHasBeenSet() const { return m_fieldKeysHasBeenSet; }
67 template <typename FieldKeysT = Aws::Vector<Aws::String>>
68 void SetFieldKeys(FieldKeysT&& value) {
69 m_fieldKeysHasBeenSet = true;
70 m_fieldKeys = std::forward<FieldKeysT>(value);
71 }
72 template <typename FieldKeysT = Aws::Vector<Aws::String>>
73 FieldToProtect& WithFieldKeys(FieldKeysT&& value) {
74 SetFieldKeys(std::forward<FieldKeysT>(value));
75 return *this;
76 }
77 template <typename FieldKeysT = Aws::String>
78 FieldToProtect& AddFieldKeys(FieldKeysT&& value) {
79 m_fieldKeysHasBeenSet = true;
80 m_fieldKeys.emplace_back(std::forward<FieldKeysT>(value));
81 return *this;
82 }
84 private:
86
87 Aws::Vector<Aws::String> m_fieldKeys;
88 bool m_fieldTypeHasBeenSet = false;
89 bool m_fieldKeysHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace WAFV2
94} // namespace Aws
void SetFieldType(FieldToProtectType value)
AWS_WAFV2_API FieldToProtect & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetFieldKeys(FieldKeysT &&value)
FieldToProtect & WithFieldType(FieldToProtectType value)
AWS_WAFV2_API FieldToProtect()=default
FieldToProtect & WithFieldKeys(FieldKeysT &&value)
AWS_WAFV2_API FieldToProtect(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetFieldKeys() const
FieldToProtect & AddFieldKeys(FieldKeysT &&value)
FieldToProtectType GetFieldType() const
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue