7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/wafv2/model/FieldToProtect.h>
9#include <aws/wafv2/model/DataProtectionAction.h>
49 template<
typename FieldT = FieldToProtect>
50 void SetField(FieldT&& value) { m_fieldHasBeenSet =
true; m_field = std::forward<FieldT>(value); }
51 template<
typename FieldT = FieldToProtect>
102 bool m_fieldHasBeenSet =
false;
105 bool m_actionHasBeenSet =
false;
107 bool m_excludeRuleMatchDetails{
false};
108 bool m_excludeRuleMatchDetailsHasBeenSet =
false;
110 bool m_excludeRateBasedDetails{
false};
111 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