7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/lightsail/Lightsail_EXPORTS.h>
9#include <aws/lightsail/model/WafRule.h>
43 m_isWafEnabledHasBeenSet =
true;
44 m_isWafEnabled = value;
59 template <
typename WafRulesT = Aws::Vector<WafRule>>
61 m_wafRulesHasBeenSet =
true;
62 m_wafRules = std::forward<WafRulesT>(value);
64 template <
typename WafRulesT = Aws::Vector<WafRule>>
69 template <
typename WafRulesT = WafRule>
71 m_wafRulesHasBeenSet =
true;
72 m_wafRules.emplace_back(std::forward<WafRulesT>(value));
77 bool m_isWafEnabled{
false};
80 bool m_isWafEnabledHasBeenSet =
false;
81 bool m_wafRulesHasBeenSet =
false;
AWS_LIGHTSAIL_API WafConfig()=default
void SetIsWafEnabled(bool value)
WafConfig & WithIsWafEnabled(bool value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< WafRule > & GetWafRules() const
AWS_LIGHTSAIL_API WafConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetWafRules(WafRulesT &&value)
WafConfig & AddWafRules(WafRulesT &&value)
bool WafRulesHasBeenSet() const
AWS_LIGHTSAIL_API WafConfig(Aws::Utils::Json::JsonView jsonValue)
bool IsWafEnabledHasBeenSet() const
bool GetIsWafEnabled() const
WafConfig & WithWafRules(WafRulesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue