AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RuleVariables.h
1
6#pragma once
7#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/network-firewall/model/IPSet.h>
11#include <aws/network-firewall/model/PortSet.h>
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:
38 AWS_NETWORKFIREWALL_API RuleVariables();
39 AWS_NETWORKFIREWALL_API RuleVariables(Aws::Utils::Json::JsonView jsonValue);
40 AWS_NETWORKFIREWALL_API RuleVariables& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Map<Aws::String, IPSet>& GetIPSets() const{ return m_iPSets; }
49 inline bool IPSetsHasBeenSet() const { return m_iPSetsHasBeenSet; }
50 inline void SetIPSets(const Aws::Map<Aws::String, IPSet>& value) { m_iPSetsHasBeenSet = true; m_iPSets = value; }
51 inline void SetIPSets(Aws::Map<Aws::String, IPSet>&& value) { m_iPSetsHasBeenSet = true; m_iPSets = std::move(value); }
52 inline RuleVariables& WithIPSets(const Aws::Map<Aws::String, IPSet>& value) { SetIPSets(value); return *this;}
53 inline RuleVariables& WithIPSets(Aws::Map<Aws::String, IPSet>&& value) { SetIPSets(std::move(value)); return *this;}
54 inline RuleVariables& AddIPSets(const Aws::String& key, const IPSet& value) { m_iPSetsHasBeenSet = true; m_iPSets.emplace(key, value); return *this; }
55 inline RuleVariables& AddIPSets(Aws::String&& key, const IPSet& value) { m_iPSetsHasBeenSet = true; m_iPSets.emplace(std::move(key), value); return *this; }
56 inline RuleVariables& AddIPSets(const Aws::String& key, IPSet&& value) { m_iPSetsHasBeenSet = true; m_iPSets.emplace(key, std::move(value)); return *this; }
57 inline RuleVariables& AddIPSets(Aws::String&& key, IPSet&& value) { m_iPSetsHasBeenSet = true; m_iPSets.emplace(std::move(key), std::move(value)); return *this; }
58 inline RuleVariables& AddIPSets(const char* key, IPSet&& value) { m_iPSetsHasBeenSet = true; m_iPSets.emplace(key, std::move(value)); return *this; }
59 inline RuleVariables& AddIPSets(const char* key, const IPSet& value) { m_iPSetsHasBeenSet = true; m_iPSets.emplace(key, value); return *this; }
61
63
66 inline const Aws::Map<Aws::String, PortSet>& GetPortSets() const{ return m_portSets; }
67 inline bool PortSetsHasBeenSet() const { return m_portSetsHasBeenSet; }
68 inline void SetPortSets(const Aws::Map<Aws::String, PortSet>& value) { m_portSetsHasBeenSet = true; m_portSets = value; }
69 inline void SetPortSets(Aws::Map<Aws::String, PortSet>&& value) { m_portSetsHasBeenSet = true; m_portSets = std::move(value); }
70 inline RuleVariables& WithPortSets(const Aws::Map<Aws::String, PortSet>& value) { SetPortSets(value); return *this;}
71 inline RuleVariables& WithPortSets(Aws::Map<Aws::String, PortSet>&& value) { SetPortSets(std::move(value)); return *this;}
72 inline RuleVariables& AddPortSets(const Aws::String& key, const PortSet& value) { m_portSetsHasBeenSet = true; m_portSets.emplace(key, value); return *this; }
73 inline RuleVariables& AddPortSets(Aws::String&& key, const PortSet& value) { m_portSetsHasBeenSet = true; m_portSets.emplace(std::move(key), value); return *this; }
74 inline RuleVariables& AddPortSets(const Aws::String& key, PortSet&& value) { m_portSetsHasBeenSet = true; m_portSets.emplace(key, std::move(value)); return *this; }
75 inline RuleVariables& AddPortSets(Aws::String&& key, PortSet&& value) { m_portSetsHasBeenSet = true; m_portSets.emplace(std::move(key), std::move(value)); return *this; }
76 inline RuleVariables& AddPortSets(const char* key, PortSet&& value) { m_portSetsHasBeenSet = true; m_portSets.emplace(key, std::move(value)); return *this; }
77 inline RuleVariables& AddPortSets(const char* key, const PortSet& value) { m_portSetsHasBeenSet = true; m_portSets.emplace(key, value); return *this; }
79 private:
80
82 bool m_iPSetsHasBeenSet = false;
83
85 bool m_portSetsHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace NetworkFirewall
90} // namespace Aws
RuleVariables & WithIPSets(Aws::Map< Aws::String, IPSet > &&value)
void SetIPSets(const Aws::Map< Aws::String, IPSet > &value)
RuleVariables & AddIPSets(Aws::String &&key, IPSet &&value)
void SetPortSets(const Aws::Map< Aws::String, PortSet > &value)
RuleVariables & AddIPSets(const char *key, IPSet &&value)
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)
AWS_NETWORKFIREWALL_API RuleVariables & operator=(Aws::Utils::Json::JsonView jsonValue)
RuleVariables & AddIPSets(const Aws::String &key, const IPSet &value)
RuleVariables & AddIPSets(Aws::String &&key, const IPSet &value)
void SetIPSets(Aws::Map< Aws::String, IPSet > &&value)
AWS_NETWORKFIREWALL_API RuleVariables()
const Aws::Map< Aws::String, IPSet > & GetIPSets() const
void SetPortSets(Aws::Map< Aws::String, PortSet > &&value)
RuleVariables & AddIPSets(const char *key, const IPSet &value)
RuleVariables & AddIPSets(const Aws::String &key, IPSet &&value)
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
Aws::Utils::Json::JsonValue JsonValue