AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PolicyVariables.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 <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace NetworkFirewall
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_NETWORKFIREWALL_API PolicyVariables() = default;
38 AWS_NETWORKFIREWALL_API PolicyVariables(Aws::Utils::Json::JsonView jsonValue);
39 AWS_NETWORKFIREWALL_API PolicyVariables& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
51 inline const Aws::Map<Aws::String, IPSet>& GetRuleVariables() const { return m_ruleVariables; }
52 inline bool RuleVariablesHasBeenSet() const { return m_ruleVariablesHasBeenSet; }
53 template<typename RuleVariablesT = Aws::Map<Aws::String, IPSet>>
54 void SetRuleVariables(RuleVariablesT&& value) { m_ruleVariablesHasBeenSet = true; m_ruleVariables = std::forward<RuleVariablesT>(value); }
55 template<typename RuleVariablesT = Aws::Map<Aws::String, IPSet>>
56 PolicyVariables& WithRuleVariables(RuleVariablesT&& value) { SetRuleVariables(std::forward<RuleVariablesT>(value)); return *this;}
57 template<typename RuleVariablesKeyT = Aws::String, typename RuleVariablesValueT = IPSet>
58 PolicyVariables& AddRuleVariables(RuleVariablesKeyT&& key, RuleVariablesValueT&& value) {
59 m_ruleVariablesHasBeenSet = true; m_ruleVariables.emplace(std::forward<RuleVariablesKeyT>(key), std::forward<RuleVariablesValueT>(value)); return *this;
60 }
62 private:
63
64 Aws::Map<Aws::String, IPSet> m_ruleVariables;
65 bool m_ruleVariablesHasBeenSet = false;
66 };
67
68} // namespace Model
69} // namespace NetworkFirewall
70} // namespace Aws
PolicyVariables & AddRuleVariables(RuleVariablesKeyT &&key, RuleVariablesValueT &&value)
PolicyVariables & WithRuleVariables(RuleVariablesT &&value)
const Aws::Map< Aws::String, IPSet > & GetRuleVariables() const
void SetRuleVariables(RuleVariablesT &&value)
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NETWORKFIREWALL_API PolicyVariables & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKFIREWALL_API PolicyVariables()=default
AWS_NETWORKFIREWALL_API PolicyVariables(Aws::Utils::Json::JsonView jsonValue)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue