AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RulesSource.h
1
6#pragma once
7#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/network-firewall/model/RulesSourceList.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/network-firewall/model/StatelessRulesAndCustomActions.h>
12#include <aws/network-firewall/model/StatefulRule.h>
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:
41 AWS_NETWORKFIREWALL_API RulesSource();
42 AWS_NETWORKFIREWALL_API RulesSource(Aws::Utils::Json::JsonView jsonValue);
43 AWS_NETWORKFIREWALL_API RulesSource& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
58 inline const Aws::String& GetRulesString() const{ return m_rulesString; }
59 inline bool RulesStringHasBeenSet() const { return m_rulesStringHasBeenSet; }
60 inline void SetRulesString(const Aws::String& value) { m_rulesStringHasBeenSet = true; m_rulesString = value; }
61 inline void SetRulesString(Aws::String&& value) { m_rulesStringHasBeenSet = true; m_rulesString = std::move(value); }
62 inline void SetRulesString(const char* value) { m_rulesStringHasBeenSet = true; m_rulesString.assign(value); }
63 inline RulesSource& WithRulesString(const Aws::String& value) { SetRulesString(value); return *this;}
64 inline RulesSource& WithRulesString(Aws::String&& value) { SetRulesString(std::move(value)); return *this;}
65 inline RulesSource& WithRulesString(const char* value) { SetRulesString(value); return *this;}
67
69
72 inline const RulesSourceList& GetRulesSourceList() const{ return m_rulesSourceList; }
73 inline bool RulesSourceListHasBeenSet() const { return m_rulesSourceListHasBeenSet; }
74 inline void SetRulesSourceList(const RulesSourceList& value) { m_rulesSourceListHasBeenSet = true; m_rulesSourceList = value; }
75 inline void SetRulesSourceList(RulesSourceList&& value) { m_rulesSourceListHasBeenSet = true; m_rulesSourceList = std::move(value); }
76 inline RulesSource& WithRulesSourceList(const RulesSourceList& value) { SetRulesSourceList(value); return *this;}
77 inline RulesSource& WithRulesSourceList(RulesSourceList&& value) { SetRulesSourceList(std::move(value)); return *this;}
79
81
89 inline const Aws::Vector<StatefulRule>& GetStatefulRules() const{ return m_statefulRules; }
90 inline bool StatefulRulesHasBeenSet() const { return m_statefulRulesHasBeenSet; }
91 inline void SetStatefulRules(const Aws::Vector<StatefulRule>& value) { m_statefulRulesHasBeenSet = true; m_statefulRules = value; }
92 inline void SetStatefulRules(Aws::Vector<StatefulRule>&& value) { m_statefulRulesHasBeenSet = true; m_statefulRules = std::move(value); }
93 inline RulesSource& WithStatefulRules(const Aws::Vector<StatefulRule>& value) { SetStatefulRules(value); return *this;}
94 inline RulesSource& WithStatefulRules(Aws::Vector<StatefulRule>&& value) { SetStatefulRules(std::move(value)); return *this;}
95 inline RulesSource& AddStatefulRules(const StatefulRule& value) { m_statefulRulesHasBeenSet = true; m_statefulRules.push_back(value); return *this; }
96 inline RulesSource& AddStatefulRules(StatefulRule&& value) { m_statefulRulesHasBeenSet = true; m_statefulRules.push_back(std::move(value)); return *this; }
98
100
103 inline const StatelessRulesAndCustomActions& GetStatelessRulesAndCustomActions() const{ return m_statelessRulesAndCustomActions; }
104 inline bool StatelessRulesAndCustomActionsHasBeenSet() const { return m_statelessRulesAndCustomActionsHasBeenSet; }
105 inline void SetStatelessRulesAndCustomActions(const StatelessRulesAndCustomActions& value) { m_statelessRulesAndCustomActionsHasBeenSet = true; m_statelessRulesAndCustomActions = value; }
106 inline void SetStatelessRulesAndCustomActions(StatelessRulesAndCustomActions&& value) { m_statelessRulesAndCustomActionsHasBeenSet = true; m_statelessRulesAndCustomActions = std::move(value); }
110 private:
111
112 Aws::String m_rulesString;
113 bool m_rulesStringHasBeenSet = false;
114
115 RulesSourceList m_rulesSourceList;
116 bool m_rulesSourceListHasBeenSet = false;
117
118 Aws::Vector<StatefulRule> m_statefulRules;
119 bool m_statefulRulesHasBeenSet = false;
120
121 StatelessRulesAndCustomActions m_statelessRulesAndCustomActions;
122 bool m_statelessRulesAndCustomActionsHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace NetworkFirewall
127} // namespace Aws
void SetStatelessRulesAndCustomActions(StatelessRulesAndCustomActions &&value)
void SetRulesString(const Aws::String &value)
Definition RulesSource.h:60
void SetRulesSourceList(RulesSourceList &&value)
Definition RulesSource.h:75
RulesSource & WithStatelessRulesAndCustomActions(StatelessRulesAndCustomActions &&value)
RulesSource & WithRulesString(Aws::String &&value)
Definition RulesSource.h:64
const StatelessRulesAndCustomActions & GetStatelessRulesAndCustomActions() const
AWS_NETWORKFIREWALL_API RulesSource()
void SetStatelessRulesAndCustomActions(const StatelessRulesAndCustomActions &value)
RulesSource & WithStatelessRulesAndCustomActions(const StatelessRulesAndCustomActions &value)
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:94
RulesSource & WithRulesString(const char *value)
Definition RulesSource.h:65
RulesSource & WithStatefulRules(const Aws::Vector< StatefulRule > &value)
Definition RulesSource.h:93
const Aws::Vector< StatefulRule > & GetStatefulRules() const
Definition RulesSource.h:89
void SetRulesSourceList(const RulesSourceList &value)
Definition RulesSource.h:74
void SetRulesString(const char *value)
Definition RulesSource.h:62
RulesSource & WithRulesString(const Aws::String &value)
Definition RulesSource.h:63
void SetStatefulRules(Aws::Vector< StatefulRule > &&value)
Definition RulesSource.h:92
RulesSource & WithRulesSourceList(const RulesSourceList &value)
Definition RulesSource.h:76
void SetRulesString(Aws::String &&value)
Definition RulesSource.h:61
RulesSource & AddStatefulRules(const StatefulRule &value)
Definition RulesSource.h:95
const Aws::String & GetRulesString() const
Definition RulesSource.h:58
const RulesSourceList & GetRulesSourceList() const
Definition RulesSource.h:72
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
RulesSource & AddStatefulRules(StatefulRule &&value)
Definition RulesSource.h:96
RulesSource & WithRulesSourceList(RulesSourceList &&value)
Definition RulesSource.h:77
void SetStatefulRules(const Aws::Vector< StatefulRule > &value)
Definition RulesSource.h:91
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue