AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ReferenceSets.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/IPSetReference.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
34 {
35 public:
36 AWS_NETWORKFIREWALL_API ReferenceSets() = default;
37 AWS_NETWORKFIREWALL_API ReferenceSets(Aws::Utils::Json::JsonView jsonValue);
38 AWS_NETWORKFIREWALL_API ReferenceSets& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Map<Aws::String, IPSetReference>& GetIPSetReferences() const { return m_iPSetReferences; }
47 inline bool IPSetReferencesHasBeenSet() const { return m_iPSetReferencesHasBeenSet; }
48 template<typename IPSetReferencesT = Aws::Map<Aws::String, IPSetReference>>
49 void SetIPSetReferences(IPSetReferencesT&& value) { m_iPSetReferencesHasBeenSet = true; m_iPSetReferences = std::forward<IPSetReferencesT>(value); }
50 template<typename IPSetReferencesT = Aws::Map<Aws::String, IPSetReference>>
51 ReferenceSets& WithIPSetReferences(IPSetReferencesT&& value) { SetIPSetReferences(std::forward<IPSetReferencesT>(value)); return *this;}
52 template<typename IPSetReferencesKeyT = Aws::String, typename IPSetReferencesValueT = IPSetReference>
53 ReferenceSets& AddIPSetReferences(IPSetReferencesKeyT&& key, IPSetReferencesValueT&& value) {
54 m_iPSetReferencesHasBeenSet = true; m_iPSetReferences.emplace(std::forward<IPSetReferencesKeyT>(key), std::forward<IPSetReferencesValueT>(value)); return *this;
55 }
57 private:
58
60 bool m_iPSetReferencesHasBeenSet = false;
61 };
62
63} // namespace Model
64} // namespace NetworkFirewall
65} // namespace Aws
AWS_NETWORKFIREWALL_API ReferenceSets & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKFIREWALL_API ReferenceSets()=default
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, IPSetReference > & GetIPSetReferences() const
void SetIPSetReferences(IPSetReferencesT &&value)
AWS_NETWORKFIREWALL_API ReferenceSets(Aws::Utils::Json::JsonView jsonValue)
ReferenceSets & AddIPSetReferences(IPSetReferencesKeyT &&key, IPSetReferencesValueT &&value)
ReferenceSets & WithIPSetReferences(IPSetReferencesT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue