AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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
37 {
38 public:
39 AWS_NETWORKFIREWALL_API RuleVariables() = default;
40 AWS_NETWORKFIREWALL_API RuleVariables(Aws::Utils::Json::JsonView jsonValue);
41 AWS_NETWORKFIREWALL_API RuleVariables& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::Map<Aws::String, IPSet>& GetIPSets() const { return m_iPSets; }
50 inline bool IPSetsHasBeenSet() const { return m_iPSetsHasBeenSet; }
51 template<typename IPSetsT = Aws::Map<Aws::String, IPSet>>
52 void SetIPSets(IPSetsT&& value) { m_iPSetsHasBeenSet = true; m_iPSets = std::forward<IPSetsT>(value); }
53 template<typename IPSetsT = Aws::Map<Aws::String, IPSet>>
54 RuleVariables& WithIPSets(IPSetsT&& value) { SetIPSets(std::forward<IPSetsT>(value)); return *this;}
55 template<typename IPSetsKeyT = Aws::String, typename IPSetsValueT = IPSet>
56 RuleVariables& AddIPSets(IPSetsKeyT&& key, IPSetsValueT&& value) {
57 m_iPSetsHasBeenSet = true; m_iPSets.emplace(std::forward<IPSetsKeyT>(key), std::forward<IPSetsValueT>(value)); return *this;
58 }
60
62
65 inline const Aws::Map<Aws::String, PortSet>& GetPortSets() const { return m_portSets; }
66 inline bool PortSetsHasBeenSet() const { return m_portSetsHasBeenSet; }
67 template<typename PortSetsT = Aws::Map<Aws::String, PortSet>>
68 void SetPortSets(PortSetsT&& value) { m_portSetsHasBeenSet = true; m_portSets = std::forward<PortSetsT>(value); }
69 template<typename PortSetsT = Aws::Map<Aws::String, PortSet>>
70 RuleVariables& WithPortSets(PortSetsT&& value) { SetPortSets(std::forward<PortSetsT>(value)); return *this;}
71 template<typename PortSetsKeyT = Aws::String, typename PortSetsValueT = PortSet>
72 RuleVariables& AddPortSets(PortSetsKeyT&& key, PortSetsValueT&& value) {
73 m_portSetsHasBeenSet = true; m_portSets.emplace(std::forward<PortSetsKeyT>(key), std::forward<PortSetsValueT>(value)); return *this;
74 }
76 private:
77
79 bool m_iPSetsHasBeenSet = false;
80
82 bool m_portSetsHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace NetworkFirewall
87} // namespace Aws
RuleVariables & AddPortSets(PortSetsKeyT &&key, PortSetsValueT &&value)
const Aws::Map< Aws::String, PortSet > & GetPortSets() const
AWS_NETWORKFIREWALL_API RuleVariables(Aws::Utils::Json::JsonView jsonValue)
RuleVariables & WithIPSets(IPSetsT &&value)
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NETWORKFIREWALL_API RuleVariables & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKFIREWALL_API RuleVariables()=default
RuleVariables & WithPortSets(PortSetsT &&value)
const Aws::Map< Aws::String, IPSet > & GetIPSets() const
RuleVariables & AddIPSets(IPSetsKeyT &&key, IPSetsValueT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue