AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
RulesSource.h
Go to the documentation of this file.
1
6#pragma once
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace NetworkFirewall
26{
27namespace Model
28{
29
39 {
40 public:
45
46
55 inline const Aws::String& GetRulesString() const{ return m_rulesString; }
56
65 inline bool RulesStringHasBeenSet() const { return m_rulesStringHasBeenSet; }
66
75 inline void SetRulesString(const Aws::String& value) { m_rulesStringHasBeenSet = true; m_rulesString = value; }
76
85 inline void SetRulesString(Aws::String&& value) { m_rulesStringHasBeenSet = true; m_rulesString = std::move(value); }
86
95 inline void SetRulesString(const char* value) { m_rulesStringHasBeenSet = true; m_rulesString.assign(value); }
96
105 inline RulesSource& WithRulesString(const Aws::String& value) { SetRulesString(value); return *this;}
106
115 inline RulesSource& WithRulesString(Aws::String&& value) { SetRulesString(std::move(value)); return *this;}
116
125 inline RulesSource& WithRulesString(const char* value) { SetRulesString(value); return *this;}
126
127
131 inline const RulesSourceList& GetRulesSourceList() const{ return m_rulesSourceList; }
132
136 inline bool RulesSourceListHasBeenSet() const { return m_rulesSourceListHasBeenSet; }
137
141 inline void SetRulesSourceList(const RulesSourceList& value) { m_rulesSourceListHasBeenSet = true; m_rulesSourceList = value; }
142
146 inline void SetRulesSourceList(RulesSourceList&& value) { m_rulesSourceListHasBeenSet = true; m_rulesSourceList = std::move(value); }
147
151 inline RulesSource& WithRulesSourceList(const RulesSourceList& value) { SetRulesSourceList(value); return *this;}
152
156 inline RulesSource& WithRulesSourceList(RulesSourceList&& value) { SetRulesSourceList(std::move(value)); return *this;}
157
158
166 inline const Aws::Vector<StatefulRule>& GetStatefulRules() const{ return m_statefulRules; }
167
175 inline bool StatefulRulesHasBeenSet() const { return m_statefulRulesHasBeenSet; }
176
184 inline void SetStatefulRules(const Aws::Vector<StatefulRule>& value) { m_statefulRulesHasBeenSet = true; m_statefulRules = value; }
185
193 inline void SetStatefulRules(Aws::Vector<StatefulRule>&& value) { m_statefulRulesHasBeenSet = true; m_statefulRules = std::move(value); }
194
202 inline RulesSource& WithStatefulRules(const Aws::Vector<StatefulRule>& value) { SetStatefulRules(value); return *this;}
203
211 inline RulesSource& WithStatefulRules(Aws::Vector<StatefulRule>&& value) { SetStatefulRules(std::move(value)); return *this;}
212
220 inline RulesSource& AddStatefulRules(const StatefulRule& value) { m_statefulRulesHasBeenSet = true; m_statefulRules.push_back(value); return *this; }
221
229 inline RulesSource& AddStatefulRules(StatefulRule&& value) { m_statefulRulesHasBeenSet = true; m_statefulRules.push_back(std::move(value)); return *this; }
230
231
235 inline const StatelessRulesAndCustomActions& GetStatelessRulesAndCustomActions() const{ return m_statelessRulesAndCustomActions; }
236
240 inline bool StatelessRulesAndCustomActionsHasBeenSet() const { return m_statelessRulesAndCustomActionsHasBeenSet; }
241
245 inline void SetStatelessRulesAndCustomActions(const StatelessRulesAndCustomActions& value) { m_statelessRulesAndCustomActionsHasBeenSet = true; m_statelessRulesAndCustomActions = value; }
246
250 inline void SetStatelessRulesAndCustomActions(StatelessRulesAndCustomActions&& value) { m_statelessRulesAndCustomActionsHasBeenSet = true; m_statelessRulesAndCustomActions = std::move(value); }
251
256
261
262 private:
263
264 Aws::String m_rulesString;
265 bool m_rulesStringHasBeenSet = false;
266
267 RulesSourceList m_rulesSourceList;
268 bool m_rulesSourceListHasBeenSet = false;
269
270 Aws::Vector<StatefulRule> m_statefulRules;
271 bool m_statefulRulesHasBeenSet = false;
272
273 StatelessRulesAndCustomActions m_statelessRulesAndCustomActions;
274 bool m_statelessRulesAndCustomActionsHasBeenSet = false;
275 };
276
277} // namespace Model
278} // namespace NetworkFirewall
279} // namespace Aws
#define AWS_NETWORKFIREWALL_API
void SetStatelessRulesAndCustomActions(StatelessRulesAndCustomActions &&value)
Definition: RulesSource.h:250
void SetRulesString(const Aws::String &value)
Definition: RulesSource.h:75
void SetRulesSourceList(RulesSourceList &&value)
Definition: RulesSource.h:146
RulesSource & WithStatelessRulesAndCustomActions(StatelessRulesAndCustomActions &&value)
Definition: RulesSource.h:260
RulesSource & WithRulesString(Aws::String &&value)
Definition: RulesSource.h:115
const StatelessRulesAndCustomActions & GetStatelessRulesAndCustomActions() const
Definition: RulesSource.h:235
AWS_NETWORKFIREWALL_API RulesSource()
void SetStatelessRulesAndCustomActions(const StatelessRulesAndCustomActions &value)
Definition: RulesSource.h:245
RulesSource & WithStatelessRulesAndCustomActions(const StatelessRulesAndCustomActions &value)
Definition: RulesSource.h:255
AWS_NETWORKFIREWALL_API RulesSource & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKFIREWALL_API RulesSource(Aws::Utils::Json::JsonView jsonValue)
RulesSource & WithStatefulRules(Aws::Vector< StatefulRule > &&value)
Definition: RulesSource.h:211
RulesSource & WithRulesString(const char *value)
Definition: RulesSource.h:125
RulesSource & WithStatefulRules(const Aws::Vector< StatefulRule > &value)
Definition: RulesSource.h:202
const Aws::Vector< StatefulRule > & GetStatefulRules() const
Definition: RulesSource.h:166
void SetRulesSourceList(const RulesSourceList &value)
Definition: RulesSource.h:141
void SetRulesString(const char *value)
Definition: RulesSource.h:95
RulesSource & WithRulesString(const Aws::String &value)
Definition: RulesSource.h:105
void SetStatefulRules(Aws::Vector< StatefulRule > &&value)
Definition: RulesSource.h:193
RulesSource & WithRulesSourceList(const RulesSourceList &value)
Definition: RulesSource.h:151
void SetRulesString(Aws::String &&value)
Definition: RulesSource.h:85
RulesSource & AddStatefulRules(const StatefulRule &value)
Definition: RulesSource.h:220
const Aws::String & GetRulesString() const
Definition: RulesSource.h:55
const RulesSourceList & GetRulesSourceList() const
Definition: RulesSource.h:131
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
RulesSource & AddStatefulRules(StatefulRule &&value)
Definition: RulesSource.h:229
RulesSource & WithRulesSourceList(RulesSourceList &&value)
Definition: RulesSource.h:156
void SetStatefulRules(const Aws::Vector< StatefulRule > &value)
Definition: RulesSource.h:184
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector