AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
CIDRSummary.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
36 {
37 public:
42
43
48 inline int GetAvailableCIDRCount() const{ return m_availableCIDRCount; }
49
54 inline bool AvailableCIDRCountHasBeenSet() const { return m_availableCIDRCountHasBeenSet; }
55
60 inline void SetAvailableCIDRCount(int value) { m_availableCIDRCountHasBeenSet = true; m_availableCIDRCount = value; }
61
66 inline CIDRSummary& WithAvailableCIDRCount(int value) { SetAvailableCIDRCount(value); return *this;}
67
68
72 inline int GetUtilizedCIDRCount() const{ return m_utilizedCIDRCount; }
73
77 inline bool UtilizedCIDRCountHasBeenSet() const { return m_utilizedCIDRCountHasBeenSet; }
78
82 inline void SetUtilizedCIDRCount(int value) { m_utilizedCIDRCountHasBeenSet = true; m_utilizedCIDRCount = value; }
83
87 inline CIDRSummary& WithUtilizedCIDRCount(int value) { SetUtilizedCIDRCount(value); return *this;}
88
89
93 inline const Aws::Map<Aws::String, IPSetMetadata>& GetIPSetReferences() const{ return m_iPSetReferences; }
94
98 inline bool IPSetReferencesHasBeenSet() const { return m_iPSetReferencesHasBeenSet; }
99
103 inline void SetIPSetReferences(const Aws::Map<Aws::String, IPSetMetadata>& value) { m_iPSetReferencesHasBeenSet = true; m_iPSetReferences = value; }
104
108 inline void SetIPSetReferences(Aws::Map<Aws::String, IPSetMetadata>&& value) { m_iPSetReferencesHasBeenSet = true; m_iPSetReferences = std::move(value); }
109
114
119
123 inline CIDRSummary& AddIPSetReferences(const Aws::String& key, const IPSetMetadata& value) { m_iPSetReferencesHasBeenSet = true; m_iPSetReferences.emplace(key, value); return *this; }
124
128 inline CIDRSummary& AddIPSetReferences(Aws::String&& key, const IPSetMetadata& value) { m_iPSetReferencesHasBeenSet = true; m_iPSetReferences.emplace(std::move(key), value); return *this; }
129
133 inline CIDRSummary& AddIPSetReferences(const Aws::String& key, IPSetMetadata&& value) { m_iPSetReferencesHasBeenSet = true; m_iPSetReferences.emplace(key, std::move(value)); return *this; }
134
138 inline CIDRSummary& AddIPSetReferences(Aws::String&& key, IPSetMetadata&& value) { m_iPSetReferencesHasBeenSet = true; m_iPSetReferences.emplace(std::move(key), std::move(value)); return *this; }
139
143 inline CIDRSummary& AddIPSetReferences(const char* key, IPSetMetadata&& value) { m_iPSetReferencesHasBeenSet = true; m_iPSetReferences.emplace(key, std::move(value)); return *this; }
144
148 inline CIDRSummary& AddIPSetReferences(const char* key, const IPSetMetadata& value) { m_iPSetReferencesHasBeenSet = true; m_iPSetReferences.emplace(key, value); return *this; }
149
150 private:
151
152 int m_availableCIDRCount;
153 bool m_availableCIDRCountHasBeenSet = false;
154
155 int m_utilizedCIDRCount;
156 bool m_utilizedCIDRCountHasBeenSet = false;
157
158 Aws::Map<Aws::String, IPSetMetadata> m_iPSetReferences;
159 bool m_iPSetReferencesHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace NetworkFirewall
164} // namespace Aws
#define AWS_NETWORKFIREWALL_API
CIDRSummary & WithIPSetReferences(const Aws::Map< Aws::String, IPSetMetadata > &value)
Definition: CIDRSummary.h:113
CIDRSummary & AddIPSetReferences(const Aws::String &key, IPSetMetadata &&value)
Definition: CIDRSummary.h:133
CIDRSummary & AddIPSetReferences(const char *key, IPSetMetadata &&value)
Definition: CIDRSummary.h:143
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NETWORKFIREWALL_API CIDRSummary()
CIDRSummary & AddIPSetReferences(Aws::String &&key, const IPSetMetadata &value)
Definition: CIDRSummary.h:128
void SetIPSetReferences(Aws::Map< Aws::String, IPSetMetadata > &&value)
Definition: CIDRSummary.h:108
CIDRSummary & AddIPSetReferences(const Aws::String &key, const IPSetMetadata &value)
Definition: CIDRSummary.h:123
CIDRSummary & WithIPSetReferences(Aws::Map< Aws::String, IPSetMetadata > &&value)
Definition: CIDRSummary.h:118
const Aws::Map< Aws::String, IPSetMetadata > & GetIPSetReferences() const
Definition: CIDRSummary.h:93
CIDRSummary & AddIPSetReferences(Aws::String &&key, IPSetMetadata &&value)
Definition: CIDRSummary.h:138
AWS_NETWORKFIREWALL_API CIDRSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
CIDRSummary & WithAvailableCIDRCount(int value)
Definition: CIDRSummary.h:66
void SetIPSetReferences(const Aws::Map< Aws::String, IPSetMetadata > &value)
Definition: CIDRSummary.h:103
CIDRSummary & WithUtilizedCIDRCount(int value)
Definition: CIDRSummary.h:87
CIDRSummary & AddIPSetReferences(const char *key, const IPSetMetadata &value)
Definition: CIDRSummary.h:148
AWS_NETWORKFIREWALL_API CIDRSummary(Aws::Utils::Json::JsonView jsonValue)
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