AWS SDK for C++

AWS SDK for C++ Version 1.11.931

Loading...
Searching...
No Matches
DataProtection.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/wafv2/model/DataProtectionAction.h>
9#include <aws/wafv2/model/FieldToProtect.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace WAFV2 {
21namespace Model {
22
30 public:
31 AWS_WAFV2_API DataProtection() = default;
34 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const FieldToProtect& GetField() const { return m_field; }
42 inline bool FieldHasBeenSet() const { return m_fieldHasBeenSet; }
43 template <typename FieldT = FieldToProtect>
44 void SetField(FieldT&& value) {
45 m_fieldHasBeenSet = true;
46 m_field = std::forward<FieldT>(value);
47 }
48 template <typename FieldT = FieldToProtect>
49 DataProtection& WithField(FieldT&& value) {
50 SetField(std::forward<FieldT>(value));
51 return *this;
52 }
54
56
62 inline DataProtectionAction GetAction() const { return m_action; }
63 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
64 inline void SetAction(DataProtectionAction value) {
65 m_actionHasBeenSet = true;
66 m_action = value;
67 }
69 SetAction(value);
70 return *this;
71 }
73
75
84 inline bool GetExcludeRuleMatchDetails() const { return m_excludeRuleMatchDetails; }
85 inline bool ExcludeRuleMatchDetailsHasBeenSet() const { return m_excludeRuleMatchDetailsHasBeenSet; }
86 inline void SetExcludeRuleMatchDetails(bool value) {
87 m_excludeRuleMatchDetailsHasBeenSet = true;
88 m_excludeRuleMatchDetails = value;
89 }
92 return *this;
93 }
95
97
106 inline bool GetExcludeRateBasedDetails() const { return m_excludeRateBasedDetails; }
107 inline bool ExcludeRateBasedDetailsHasBeenSet() const { return m_excludeRateBasedDetailsHasBeenSet; }
108 inline void SetExcludeRateBasedDetails(bool value) {
109 m_excludeRateBasedDetailsHasBeenSet = true;
110 m_excludeRateBasedDetails = value;
111 }
114 return *this;
115 }
117 private:
118 FieldToProtect m_field;
119
121
122 bool m_excludeRuleMatchDetails{false};
123
124 bool m_excludeRateBasedDetails{false};
125 bool m_fieldHasBeenSet = false;
126 bool m_actionHasBeenSet = false;
127 bool m_excludeRuleMatchDetailsHasBeenSet = false;
128 bool m_excludeRateBasedDetailsHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace WAFV2
133} // namespace Aws
void SetAction(DataProtectionAction value)
DataProtectionAction GetAction() const
DataProtection & WithField(FieldT &&value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
DataProtection & WithExcludeRateBasedDetails(bool value)
void SetExcludeRateBasedDetails(bool value)
DataProtection & WithExcludeRuleMatchDetails(bool value)
AWS_WAFV2_API DataProtection()=default
AWS_WAFV2_API DataProtection(Aws::Utils::Json::JsonView jsonValue)
DataProtection & WithAction(DataProtectionAction value)
AWS_WAFV2_API DataProtection & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetExcludeRuleMatchDetails(bool value)
const FieldToProtect & GetField() const
Aws::Utils::Json::JsonValue JsonValue