AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename IPSetReferencesT = Aws::Map<Aws::String, IPSetMetadata>>
72 void SetIPSetReferences(IPSetReferencesT&& value) { m_iPSetReferencesHasBeenSet = true; m_iPSetReferences = std::forward<IPSetReferencesT>(value); }
73 template<typename IPSetReferencesT = Aws::Map<Aws::String, IPSetMetadata>>
74 CIDRSummary& WithIPSetReferences(IPSetReferencesT&& value) { SetIPSetReferences(std::forward<IPSetReferencesT>(value)); return *this;}
75 template<typename IPSetReferencesKeyT = Aws::String, typename IPSetReferencesValueT = IPSetMetadata>
76 CIDRSummary& AddIPSetReferences(IPSetReferencesKeyT&& key, IPSetReferencesValueT&& value) {
77 m_iPSetReferencesHasBeenSet = true; m_iPSetReferences.emplace(std::forward<IPSetReferencesKeyT>(key), std::forward<IPSetReferencesValueT>(value)); return *this;
78 }
80 private:
81
82 int m_availableCIDRCount{0};
83 bool m_availableCIDRCountHasBeenSet = false;
84
85 int m_utilizedCIDRCount{0};
86 bool m_utilizedCIDRCountHasBeenSet = false;
87
89 bool m_iPSetReferencesHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace NetworkFirewall
94} // namespace Aws
CIDRSummary & AddIPSetReferences(IPSetReferencesKeyT &&key, IPSetReferencesValueT &&value)
Definition CIDRSummary.h:76
AWS_NETWORKFIREWALL_API CIDRSummary()=default
CIDRSummary & WithIPSetReferences(IPSetReferencesT &&value)
Definition CIDRSummary.h:74
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, IPSetMetadata > & GetIPSetReferences() const
Definition CIDRSummary.h:69
AWS_NETWORKFIREWALL_API CIDRSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
CIDRSummary & WithAvailableCIDRCount(int value)
Definition CIDRSummary.h:52
void SetIPSetReferences(IPSetReferencesT &&value)
Definition CIDRSummary.h:72
CIDRSummary & WithUtilizedCIDRCount(int value)
Definition CIDRSummary.h:62
AWS_NETWORKFIREWALL_API CIDRSummary(Aws::Utils::Json::JsonView jsonValue)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue