AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
ReferenceSets.h
Go to the documentation of this file.
1
6#pragma once
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:
40
41
45 inline const Aws::Map<Aws::String, IPSetReference>& GetIPSetReferences() const{ return m_iPSetReferences; }
46
50 inline bool IPSetReferencesHasBeenSet() const { return m_iPSetReferencesHasBeenSet; }
51
55 inline void SetIPSetReferences(const Aws::Map<Aws::String, IPSetReference>& value) { m_iPSetReferencesHasBeenSet = true; m_iPSetReferences = value; }
56
60 inline void SetIPSetReferences(Aws::Map<Aws::String, IPSetReference>&& value) { m_iPSetReferencesHasBeenSet = true; m_iPSetReferences = std::move(value); }
61
66
71
75 inline ReferenceSets& AddIPSetReferences(const Aws::String& key, const IPSetReference& value) { m_iPSetReferencesHasBeenSet = true; m_iPSetReferences.emplace(key, value); return *this; }
76
80 inline ReferenceSets& AddIPSetReferences(Aws::String&& key, const IPSetReference& value) { m_iPSetReferencesHasBeenSet = true; m_iPSetReferences.emplace(std::move(key), value); return *this; }
81
85 inline ReferenceSets& AddIPSetReferences(const Aws::String& key, IPSetReference&& value) { m_iPSetReferencesHasBeenSet = true; m_iPSetReferences.emplace(key, std::move(value)); return *this; }
86
90 inline ReferenceSets& AddIPSetReferences(Aws::String&& key, IPSetReference&& value) { m_iPSetReferencesHasBeenSet = true; m_iPSetReferences.emplace(std::move(key), std::move(value)); return *this; }
91
95 inline ReferenceSets& AddIPSetReferences(const char* key, IPSetReference&& value) { m_iPSetReferencesHasBeenSet = true; m_iPSetReferences.emplace(key, std::move(value)); return *this; }
96
100 inline ReferenceSets& AddIPSetReferences(const char* key, const IPSetReference& value) { m_iPSetReferencesHasBeenSet = true; m_iPSetReferences.emplace(key, value); return *this; }
101
102 private:
103
105 bool m_iPSetReferencesHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace NetworkFirewall
110} // namespace Aws
#define AWS_NETWORKFIREWALL_API
AWS_NETWORKFIREWALL_API ReferenceSets & operator=(Aws::Utils::Json::JsonView jsonValue)
ReferenceSets & AddIPSetReferences(const Aws::String &key, IPSetReference &&value)
Definition: ReferenceSets.h:85
ReferenceSets & AddIPSetReferences(Aws::String &&key, IPSetReference &&value)
Definition: ReferenceSets.h:90
void SetIPSetReferences(const Aws::Map< Aws::String, IPSetReference > &value)
Definition: ReferenceSets.h:55
AWS_NETWORKFIREWALL_API ReferenceSets()
ReferenceSets & WithIPSetReferences(Aws::Map< Aws::String, IPSetReference > &&value)
Definition: ReferenceSets.h:70
ReferenceSets & AddIPSetReferences(const char *key, const IPSetReference &value)
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, IPSetReference > & GetIPSetReferences() const
Definition: ReferenceSets.h:45
AWS_NETWORKFIREWALL_API ReferenceSets(Aws::Utils::Json::JsonView jsonValue)
ReferenceSets & AddIPSetReferences(const char *key, IPSetReference &&value)
Definition: ReferenceSets.h:95
ReferenceSets & WithIPSetReferences(const Aws::Map< Aws::String, IPSetReference > &value)
Definition: ReferenceSets.h:65
void SetIPSetReferences(Aws::Map< Aws::String, IPSetReference > &&value)
Definition: ReferenceSets.h:60
ReferenceSets & AddIPSetReferences(Aws::String &&key, const IPSetReference &value)
Definition: ReferenceSets.h:80
ReferenceSets & AddIPSetReferences(const Aws::String &key, const IPSetReference &value)
Definition: ReferenceSets.h:75
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