AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
FieldToProtect.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/wafv2/model/FieldToProtectType.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace WAFV2
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_WAFV2_API FieldToProtect() = default;
41 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline FieldToProtectType GetFieldType() const { return m_fieldType; }
49 inline bool FieldTypeHasBeenSet() const { return m_fieldTypeHasBeenSet; }
50 inline void SetFieldType(FieldToProtectType value) { m_fieldTypeHasBeenSet = true; m_fieldType = value; }
51 inline FieldToProtect& WithFieldType(FieldToProtectType value) { SetFieldType(value); return *this;}
53
55
59 inline const Aws::Vector<Aws::String>& GetFieldKeys() const { return m_fieldKeys; }
60 inline bool FieldKeysHasBeenSet() const { return m_fieldKeysHasBeenSet; }
61 template<typename FieldKeysT = Aws::Vector<Aws::String>>
62 void SetFieldKeys(FieldKeysT&& value) { m_fieldKeysHasBeenSet = true; m_fieldKeys = std::forward<FieldKeysT>(value); }
63 template<typename FieldKeysT = Aws::Vector<Aws::String>>
64 FieldToProtect& WithFieldKeys(FieldKeysT&& value) { SetFieldKeys(std::forward<FieldKeysT>(value)); return *this;}
65 template<typename FieldKeysT = Aws::String>
66 FieldToProtect& AddFieldKeys(FieldKeysT&& value) { m_fieldKeysHasBeenSet = true; m_fieldKeys.emplace_back(std::forward<FieldKeysT>(value)); return *this; }
68 private:
69
71 bool m_fieldTypeHasBeenSet = false;
72
73 Aws::Vector<Aws::String> m_fieldKeys;
74 bool m_fieldKeysHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace WAFV2
79} // 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