7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/wafv2/model/DataProtectionAction.h>
9#include <aws/wafv2/model/FieldToProtect.h>
43 template <
typename FieldT = FieldToProtect>
45 m_fieldHasBeenSet =
true;
46 m_field = std::forward<FieldT>(value);
48 template <
typename FieldT = FieldToProtect>
50 SetField(std::forward<FieldT>(value));
65 m_actionHasBeenSet =
true;
87 m_excludeRuleMatchDetailsHasBeenSet =
true;
88 m_excludeRuleMatchDetails = value;
109 m_excludeRateBasedDetailsHasBeenSet =
true;
110 m_excludeRateBasedDetails = value;
122 bool m_excludeRuleMatchDetails{
false};
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;
void SetAction(DataProtectionAction value)
DataProtectionAction GetAction() const
DataProtection & WithField(FieldT &&value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
DataProtection & WithExcludeRateBasedDetails(bool value)
bool ActionHasBeenSet() const
void SetExcludeRateBasedDetails(bool value)
DataProtection & WithExcludeRuleMatchDetails(bool value)
bool ExcludeRateBasedDetailsHasBeenSet() const
bool FieldHasBeenSet() const
bool GetExcludeRuleMatchDetails() const
AWS_WAFV2_API DataProtection()=default
void SetField(FieldT &&value)
AWS_WAFV2_API DataProtection(Aws::Utils::Json::JsonView jsonValue)
DataProtection & WithAction(DataProtectionAction value)
AWS_WAFV2_API DataProtection & operator=(Aws::Utils::Json::JsonView jsonValue)
bool GetExcludeRateBasedDetails() const
void SetExcludeRuleMatchDetails(bool value)
const FieldToProtect & GetField() const
bool ExcludeRuleMatchDetailsHasBeenSet() const
Aws::Utils::Json::JsonValue JsonValue