AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
PolicyVariables.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
11#include <aws/network-firewall/model/IPSet.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace NetworkFirewall {
22namespace Model {
23
31 public:
32 AWS_NETWORKFIREWALL_API PolicyVariables() = default;
33 AWS_NETWORKFIREWALL_API PolicyVariables(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_NETWORKFIREWALL_API PolicyVariables& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
36
38
45 inline const Aws::Map<Aws::String, IPSet>& GetRuleVariables() const { return m_ruleVariables; }
46 inline bool RuleVariablesHasBeenSet() const { return m_ruleVariablesHasBeenSet; }
47 template <typename RuleVariablesT = Aws::Map<Aws::String, IPSet>>
48 void SetRuleVariables(RuleVariablesT&& value) {
49 m_ruleVariablesHasBeenSet = true;
50 m_ruleVariables = std::forward<RuleVariablesT>(value);
51 }
52 template <typename RuleVariablesT = Aws::Map<Aws::String, IPSet>>
53 PolicyVariables& WithRuleVariables(RuleVariablesT&& value) {
54 SetRuleVariables(std::forward<RuleVariablesT>(value));
55 return *this;
56 }
57 template <typename RuleVariablesKeyT = Aws::String, typename RuleVariablesValueT = IPSet>
58 PolicyVariables& AddRuleVariables(RuleVariablesKeyT&& key, RuleVariablesValueT&& value) {
59 m_ruleVariablesHasBeenSet = true;
60 m_ruleVariables.emplace(std::forward<RuleVariablesKeyT>(key), std::forward<RuleVariablesValueT>(value));
61 return *this;
62 }
64 private:
65 Aws::Map<Aws::String, IPSet> m_ruleVariables;
66 bool m_ruleVariablesHasBeenSet = false;
67};
68
69} // namespace Model
70} // namespace NetworkFirewall
71} // namespace Aws
AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
PolicyVariables & AddRuleVariables(RuleVariablesKeyT &&key, RuleVariablesValueT &&value)
PolicyVariables & WithRuleVariables(RuleVariablesT &&value)
const Aws::Map< Aws::String, IPSet > & GetRuleVariables() const
AWS_NETWORKFIREWALL_API PolicyVariables & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetRuleVariables(RuleVariablesT &&value)
AWS_NETWORKFIREWALL_API PolicyVariables(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_NETWORKFIREWALL_API PolicyVariables()=default
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map