AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
WafRule.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lightsail/Lightsail_EXPORTS.h>
9#include <aws/lightsail/model/WafAcfpConfig.h>
10#include <aws/lightsail/model/WafAtpConfig.h>
11#include <aws/lightsail/model/WafBotControlConfig.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Lightsail {
23namespace Model {
24
33class WafRule {
34 public:
35 AWS_LIGHTSAIL_API WafRule() = default;
36 AWS_LIGHTSAIL_API WafRule(Aws::Utils::Json::JsonView jsonValue);
37 AWS_LIGHTSAIL_API WafRule& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template <typename NameT = Aws::String>
50 void SetName(NameT&& value) {
51 m_nameHasBeenSet = true;
52 m_name = std::forward<NameT>(value);
53 }
54 template <typename NameT = Aws::String>
55 WafRule& WithName(NameT&& value) {
56 SetName(std::forward<NameT>(value));
57 return *this;
58 }
60
62
69 inline const WafAtpConfig& GetAtpConfig() const { return m_atpConfig; }
70 inline bool AtpConfigHasBeenSet() const { return m_atpConfigHasBeenSet; }
71 template <typename AtpConfigT = WafAtpConfig>
72 void SetAtpConfig(AtpConfigT&& value) {
73 m_atpConfigHasBeenSet = true;
74 m_atpConfig = std::forward<AtpConfigT>(value);
75 }
76 template <typename AtpConfigT = WafAtpConfig>
77 WafRule& WithAtpConfig(AtpConfigT&& value) {
78 SetAtpConfig(std::forward<AtpConfigT>(value));
79 return *this;
80 }
82
84
92 inline const WafAcfpConfig& GetAcfpConfig() const { return m_acfpConfig; }
93 inline bool AcfpConfigHasBeenSet() const { return m_acfpConfigHasBeenSet; }
94 template <typename AcfpConfigT = WafAcfpConfig>
95 void SetAcfpConfig(AcfpConfigT&& value) {
96 m_acfpConfigHasBeenSet = true;
97 m_acfpConfig = std::forward<AcfpConfigT>(value);
98 }
99 template <typename AcfpConfigT = WafAcfpConfig>
100 WafRule& WithAcfpConfig(AcfpConfigT&& value) {
101 SetAcfpConfig(std::forward<AcfpConfigT>(value));
102 return *this;
103 }
105
107
114 inline const WafBotControlConfig& GetBotControlConfig() const { return m_botControlConfig; }
115 inline bool BotControlConfigHasBeenSet() const { return m_botControlConfigHasBeenSet; }
116 template <typename BotControlConfigT = WafBotControlConfig>
117 void SetBotControlConfig(BotControlConfigT&& value) {
118 m_botControlConfigHasBeenSet = true;
119 m_botControlConfig = std::forward<BotControlConfigT>(value);
120 }
121 template <typename BotControlConfigT = WafBotControlConfig>
122 WafRule& WithBotControlConfig(BotControlConfigT&& value) {
123 SetBotControlConfig(std::forward<BotControlConfigT>(value));
124 return *this;
125 }
127 private:
128 Aws::String m_name;
129
130 WafAtpConfig m_atpConfig;
131
132 WafAcfpConfig m_acfpConfig;
133
134 WafBotControlConfig m_botControlConfig;
135 bool m_nameHasBeenSet = false;
136 bool m_atpConfigHasBeenSet = false;
137 bool m_acfpConfigHasBeenSet = false;
138 bool m_botControlConfigHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace Lightsail
143} // namespace Aws
WafRule & WithAcfpConfig(AcfpConfigT &&value)
Definition WafRule.h:100
void SetAcfpConfig(AcfpConfigT &&value)
Definition WafRule.h:95
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(NameT &&value)
Definition WafRule.h:50
void SetBotControlConfig(BotControlConfigT &&value)
Definition WafRule.h:117
WafRule & WithBotControlConfig(BotControlConfigT &&value)
Definition WafRule.h:122
WafRule & WithAtpConfig(AtpConfigT &&value)
Definition WafRule.h:77
void SetAtpConfig(AtpConfigT &&value)
Definition WafRule.h:72
bool BotControlConfigHasBeenSet() const
Definition WafRule.h:115
AWS_LIGHTSAIL_API WafRule()=default
AWS_LIGHTSAIL_API WafRule & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API WafRule(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
Definition WafRule.h:47
const WafAcfpConfig & GetAcfpConfig() const
Definition WafRule.h:92
const WafBotControlConfig & GetBotControlConfig() const
Definition WafRule.h:114
bool AcfpConfigHasBeenSet() const
Definition WafRule.h:93
WafRule & WithName(NameT &&value)
Definition WafRule.h:55
const WafAtpConfig & GetAtpConfig() const
Definition WafRule.h:69
bool AtpConfigHasBeenSet() const
Definition WafRule.h:70
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue