AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CIDRSummary.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/IPSetMetadata.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
36 {
37 public:
38 AWS_NETWORKFIREWALL_API CIDRSummary();
39 AWS_NETWORKFIREWALL_API CIDRSummary(Aws::Utils::Json::JsonView jsonValue);
40 AWS_NETWORKFIREWALL_API CIDRSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline int GetAvailableCIDRCount() const{ return m_availableCIDRCount; }
50 inline bool AvailableCIDRCountHasBeenSet() const { return m_availableCIDRCountHasBeenSet; }
51 inline void SetAvailableCIDRCount(int value) { m_availableCIDRCountHasBeenSet = true; m_availableCIDRCount = value; }
52 inline CIDRSummary& WithAvailableCIDRCount(int value) { SetAvailableCIDRCount(value); return *this;}
54
56
59 inline int GetUtilizedCIDRCount() const{ return m_utilizedCIDRCount; }
60 inline bool UtilizedCIDRCountHasBeenSet() const { return m_utilizedCIDRCountHasBeenSet; }
61 inline void SetUtilizedCIDRCount(int value) { m_utilizedCIDRCountHasBeenSet = true; m_utilizedCIDRCount = value; }
62 inline CIDRSummary& WithUtilizedCIDRCount(int value) { SetUtilizedCIDRCount(value); return *this;}
64
66
69 inline const Aws::Map<Aws::String, IPSetMetadata>& GetIPSetReferences() const{ return m_iPSetReferences; }
70 inline bool IPSetReferencesHasBeenSet() const { return m_iPSetReferencesHasBeenSet; }
71 inline void SetIPSetReferences(const Aws::Map<Aws::String, IPSetMetadata>& value) { m_iPSetReferencesHasBeenSet = true; m_iPSetReferences = value; }
72 inline void SetIPSetReferences(Aws::Map<Aws::String, IPSetMetadata>&& value) { m_iPSetReferencesHasBeenSet = true; m_iPSetReferences = std::move(value); }
75 inline CIDRSummary& AddIPSetReferences(const Aws::String& key, const IPSetMetadata& value) { m_iPSetReferencesHasBeenSet = true; m_iPSetReferences.emplace(key, value); return *this; }
76 inline CIDRSummary& AddIPSetReferences(Aws::String&& key, const IPSetMetadata& value) { m_iPSetReferencesHasBeenSet = true; m_iPSetReferences.emplace(std::move(key), value); return *this; }
77 inline CIDRSummary& AddIPSetReferences(const Aws::String& key, IPSetMetadata&& value) { m_iPSetReferencesHasBeenSet = true; m_iPSetReferences.emplace(key, std::move(value)); return *this; }
78 inline CIDRSummary& AddIPSetReferences(Aws::String&& key, IPSetMetadata&& value) { m_iPSetReferencesHasBeenSet = true; m_iPSetReferences.emplace(std::move(key), std::move(value)); return *this; }
79 inline CIDRSummary& AddIPSetReferences(const char* key, IPSetMetadata&& value) { m_iPSetReferencesHasBeenSet = true; m_iPSetReferences.emplace(key, std::move(value)); return *this; }
80 inline CIDRSummary& AddIPSetReferences(const char* key, const IPSetMetadata& value) { m_iPSetReferencesHasBeenSet = true; m_iPSetReferences.emplace(key, value); return *this; }
82 private:
83
84 int m_availableCIDRCount;
85 bool m_availableCIDRCountHasBeenSet = false;
86
87 int m_utilizedCIDRCount;
88 bool m_utilizedCIDRCountHasBeenSet = false;
89
91 bool m_iPSetReferencesHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace NetworkFirewall
96} // namespace Aws
CIDRSummary & WithIPSetReferences(const Aws::Map< Aws::String, IPSetMetadata > &value)
Definition CIDRSummary.h:73
CIDRSummary & AddIPSetReferences(const Aws::String &key, IPSetMetadata &&value)
Definition CIDRSummary.h:77
CIDRSummary & AddIPSetReferences(const char *key, IPSetMetadata &&value)
Definition CIDRSummary.h:79
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NETWORKFIREWALL_API CIDRSummary()
CIDRSummary & AddIPSetReferences(Aws::String &&key, const IPSetMetadata &value)
Definition CIDRSummary.h:76
void SetIPSetReferences(Aws::Map< Aws::String, IPSetMetadata > &&value)
Definition CIDRSummary.h:72
CIDRSummary & AddIPSetReferences(const Aws::String &key, const IPSetMetadata &value)
Definition CIDRSummary.h:75
CIDRSummary & WithIPSetReferences(Aws::Map< Aws::String, IPSetMetadata > &&value)
Definition CIDRSummary.h:74
const Aws::Map< Aws::String, IPSetMetadata > & GetIPSetReferences() const
Definition CIDRSummary.h:69
CIDRSummary & AddIPSetReferences(Aws::String &&key, IPSetMetadata &&value)
Definition CIDRSummary.h:78
AWS_NETWORKFIREWALL_API CIDRSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
CIDRSummary & WithAvailableCIDRCount(int value)
Definition CIDRSummary.h:52
void SetIPSetReferences(const Aws::Map< Aws::String, IPSetMetadata > &value)
Definition CIDRSummary.h:71
CIDRSummary & WithUtilizedCIDRCount(int value)
Definition CIDRSummary.h:62
CIDRSummary & AddIPSetReferences(const char *key, const IPSetMetadata &value)
Definition CIDRSummary.h:80
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
Aws::Utils::Json::JsonValue JsonValue