AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetRuleVariables(const Aws::Map<Aws::String, IPSet>& value) { m_ruleVariablesHasBeenSet = true; m_ruleVariables = value; }
54 inline void SetRuleVariables(Aws::Map<Aws::String, IPSet>&& value) { m_ruleVariablesHasBeenSet = true; m_ruleVariables = std::move(value); }
56 inline PolicyVariables& WithRuleVariables(Aws::Map<Aws::String, IPSet>&& value) { SetRuleVariables(std::move(value)); return *this;}
57 inline PolicyVariables& AddRuleVariables(const Aws::String& key, const IPSet& value) { m_ruleVariablesHasBeenSet = true; m_ruleVariables.emplace(key, value); return *this; }
58 inline PolicyVariables& AddRuleVariables(Aws::String&& key, const IPSet& value) { m_ruleVariablesHasBeenSet = true; m_ruleVariables.emplace(std::move(key), value); return *this; }
59 inline PolicyVariables& AddRuleVariables(const Aws::String& key, IPSet&& value) { m_ruleVariablesHasBeenSet = true; m_ruleVariables.emplace(key, std::move(value)); return *this; }
60 inline PolicyVariables& AddRuleVariables(Aws::String&& key, IPSet&& value) { m_ruleVariablesHasBeenSet = true; m_ruleVariables.emplace(std::move(key), std::move(value)); return *this; }
61 inline PolicyVariables& AddRuleVariables(const char* key, IPSet&& value) { m_ruleVariablesHasBeenSet = true; m_ruleVariables.emplace(key, std::move(value)); return *this; }
62 inline PolicyVariables& AddRuleVariables(const char* key, const IPSet& value) { m_ruleVariablesHasBeenSet = true; m_ruleVariables.emplace(key, value); return *this; }
64 private:
65
66 Aws::Map<Aws::String, IPSet> m_ruleVariables;
67 bool m_ruleVariablesHasBeenSet = false;
68 };
69
70} // namespace Model
71} // namespace NetworkFirewall
72} // namespace Aws
AWS_NETWORKFIREWALL_API PolicyVariables()
PolicyVariables & AddRuleVariables(const Aws::String &key, const IPSet &value)
PolicyVariables & WithRuleVariables(Aws::Map< Aws::String, IPSet > &&value)
const Aws::Map< Aws::String, IPSet > & GetRuleVariables() const
PolicyVariables & AddRuleVariables(const Aws::String &key, IPSet &&value)
PolicyVariables & AddRuleVariables(const char *key, IPSet &&value)
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NETWORKFIREWALL_API PolicyVariables & operator=(Aws::Utils::Json::JsonView jsonValue)
PolicyVariables & AddRuleVariables(const char *key, const IPSet &value)
PolicyVariables & AddRuleVariables(Aws::String &&key, IPSet &&value)
PolicyVariables & AddRuleVariables(Aws::String &&key, const IPSet &value)
PolicyVariables & WithRuleVariables(const Aws::Map< Aws::String, IPSet > &value)
void SetRuleVariables(Aws::Map< Aws::String, IPSet > &&value)
AWS_NETWORKFIREWALL_API PolicyVariables(Aws::Utils::Json::JsonView jsonValue)
void SetRuleVariables(const Aws::Map< Aws::String, IPSet > &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