AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
RuleVariables.h
Go to the documentation of this file.
1
6#pragma once
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace NetworkFirewall
25{
26namespace Model
27{
28
36 {
37 public:
42
43
47 inline const Aws::Map<Aws::String, IPSet>& GetIPSets() const{ return m_iPSets; }
48
52 inline bool IPSetsHasBeenSet() const { return m_iPSetsHasBeenSet; }
53
57 inline void SetIPSets(const Aws::Map<Aws::String, IPSet>& value) { m_iPSetsHasBeenSet = true; m_iPSets = value; }
58
62 inline void SetIPSets(Aws::Map<Aws::String, IPSet>&& value) { m_iPSetsHasBeenSet = true; m_iPSets = std::move(value); }
63
67 inline RuleVariables& WithIPSets(const Aws::Map<Aws::String, IPSet>& value) { SetIPSets(value); return *this;}
68
72 inline RuleVariables& WithIPSets(Aws::Map<Aws::String, IPSet>&& value) { SetIPSets(std::move(value)); return *this;}
73
77 inline RuleVariables& AddIPSets(const Aws::String& key, const IPSet& value) { m_iPSetsHasBeenSet = true; m_iPSets.emplace(key, value); return *this; }
78
82 inline RuleVariables& AddIPSets(Aws::String&& key, const IPSet& value) { m_iPSetsHasBeenSet = true; m_iPSets.emplace(std::move(key), value); return *this; }
83
87 inline RuleVariables& AddIPSets(const Aws::String& key, IPSet&& value) { m_iPSetsHasBeenSet = true; m_iPSets.emplace(key, std::move(value)); return *this; }
88
92 inline RuleVariables& AddIPSets(Aws::String&& key, IPSet&& value) { m_iPSetsHasBeenSet = true; m_iPSets.emplace(std::move(key), std::move(value)); return *this; }
93
97 inline RuleVariables& AddIPSets(const char* key, IPSet&& value) { m_iPSetsHasBeenSet = true; m_iPSets.emplace(key, std::move(value)); return *this; }
98
102 inline RuleVariables& AddIPSets(const char* key, const IPSet& value) { m_iPSetsHasBeenSet = true; m_iPSets.emplace(key, value); return *this; }
103
104
108 inline const Aws::Map<Aws::String, PortSet>& GetPortSets() const{ return m_portSets; }
109
113 inline bool PortSetsHasBeenSet() const { return m_portSetsHasBeenSet; }
114
118 inline void SetPortSets(const Aws::Map<Aws::String, PortSet>& value) { m_portSetsHasBeenSet = true; m_portSets = value; }
119
123 inline void SetPortSets(Aws::Map<Aws::String, PortSet>&& value) { m_portSetsHasBeenSet = true; m_portSets = std::move(value); }
124
128 inline RuleVariables& WithPortSets(const Aws::Map<Aws::String, PortSet>& value) { SetPortSets(value); return *this;}
129
133 inline RuleVariables& WithPortSets(Aws::Map<Aws::String, PortSet>&& value) { SetPortSets(std::move(value)); return *this;}
134
138 inline RuleVariables& AddPortSets(const Aws::String& key, const PortSet& value) { m_portSetsHasBeenSet = true; m_portSets.emplace(key, value); return *this; }
139
143 inline RuleVariables& AddPortSets(Aws::String&& key, const PortSet& value) { m_portSetsHasBeenSet = true; m_portSets.emplace(std::move(key), value); return *this; }
144
148 inline RuleVariables& AddPortSets(const Aws::String& key, PortSet&& value) { m_portSetsHasBeenSet = true; m_portSets.emplace(key, std::move(value)); return *this; }
149
153 inline RuleVariables& AddPortSets(Aws::String&& key, PortSet&& value) { m_portSetsHasBeenSet = true; m_portSets.emplace(std::move(key), std::move(value)); return *this; }
154
158 inline RuleVariables& AddPortSets(const char* key, PortSet&& value) { m_portSetsHasBeenSet = true; m_portSets.emplace(key, std::move(value)); return *this; }
159
163 inline RuleVariables& AddPortSets(const char* key, const PortSet& value) { m_portSetsHasBeenSet = true; m_portSets.emplace(key, value); return *this; }
164
165 private:
166
168 bool m_iPSetsHasBeenSet = false;
169
171 bool m_portSetsHasBeenSet = false;
172 };
173
174} // namespace Model
175} // namespace NetworkFirewall
176} // namespace Aws
#define AWS_NETWORKFIREWALL_API
RuleVariables & WithIPSets(Aws::Map< Aws::String, IPSet > &&value)
Definition: RuleVariables.h:72
void SetIPSets(const Aws::Map< Aws::String, IPSet > &value)
Definition: RuleVariables.h:57
RuleVariables & AddIPSets(Aws::String &&key, IPSet &&value)
Definition: RuleVariables.h:92
void SetPortSets(const Aws::Map< Aws::String, PortSet > &value)
RuleVariables & AddIPSets(const char *key, IPSet &&value)
Definition: RuleVariables.h:97
RuleVariables & WithPortSets(Aws::Map< Aws::String, PortSet > &&value)
const Aws::Map< Aws::String, PortSet > & GetPortSets() const
AWS_NETWORKFIREWALL_API RuleVariables(Aws::Utils::Json::JsonView jsonValue)
RuleVariables & AddPortSets(Aws::String &&key, PortSet &&value)
RuleVariables & AddPortSets(const char *key, PortSet &&value)
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
RuleVariables & AddPortSets(Aws::String &&key, const PortSet &value)
RuleVariables & WithPortSets(const Aws::Map< Aws::String, PortSet > &value)
RuleVariables & WithIPSets(const Aws::Map< Aws::String, IPSet > &value)
Definition: RuleVariables.h:67
AWS_NETWORKFIREWALL_API RuleVariables & operator=(Aws::Utils::Json::JsonView jsonValue)
RuleVariables & AddIPSets(const Aws::String &key, const IPSet &value)
Definition: RuleVariables.h:77
RuleVariables & AddIPSets(Aws::String &&key, const IPSet &value)
Definition: RuleVariables.h:82
void SetIPSets(Aws::Map< Aws::String, IPSet > &&value)
Definition: RuleVariables.h:62
AWS_NETWORKFIREWALL_API RuleVariables()
const Aws::Map< Aws::String, IPSet > & GetIPSets() const
Definition: RuleVariables.h:47
void SetPortSets(Aws::Map< Aws::String, PortSet > &&value)
RuleVariables & AddIPSets(const char *key, const IPSet &value)
RuleVariables & AddIPSets(const Aws::String &key, IPSet &&value)
Definition: RuleVariables.h:87
RuleVariables & AddPortSets(const char *key, const PortSet &value)
RuleVariables & AddPortSets(const Aws::String &key, const PortSet &value)
RuleVariables & AddPortSets(const Aws::String &key, PortSet &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String