AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Ec2InstanceAggregationResponse.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/inspector2/Inspector2_EXPORTS.h>
10#include <aws/inspector2/model/SeverityCounts.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Inspector2 {
22namespace Model {
23
31 public:
32 AWS_INSPECTOR2_API Ec2InstanceAggregationResponse() = default;
35 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
42 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
43 template <typename InstanceIdT = Aws::String>
44 void SetInstanceId(InstanceIdT&& value) {
45 m_instanceIdHasBeenSet = true;
46 m_instanceId = std::forward<InstanceIdT>(value);
47 }
48 template <typename InstanceIdT = Aws::String>
50 SetInstanceId(std::forward<InstanceIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetAmi() const { return m_ami; }
60 inline bool AmiHasBeenSet() const { return m_amiHasBeenSet; }
61 template <typename AmiT = Aws::String>
62 void SetAmi(AmiT&& value) {
63 m_amiHasBeenSet = true;
64 m_ami = std::forward<AmiT>(value);
65 }
66 template <typename AmiT = Aws::String>
68 SetAmi(std::forward<AmiT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetOperatingSystem() const { return m_operatingSystem; }
78 inline bool OperatingSystemHasBeenSet() const { return m_operatingSystemHasBeenSet; }
79 template <typename OperatingSystemT = Aws::String>
80 void SetOperatingSystem(OperatingSystemT&& value) {
81 m_operatingSystemHasBeenSet = true;
82 m_operatingSystem = std::forward<OperatingSystemT>(value);
83 }
84 template <typename OperatingSystemT = Aws::String>
86 SetOperatingSystem(std::forward<OperatingSystemT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Map<Aws::String, Aws::String>& GetInstanceTags() const { return m_instanceTags; }
96 inline bool InstanceTagsHasBeenSet() const { return m_instanceTagsHasBeenSet; }
97 template <typename InstanceTagsT = Aws::Map<Aws::String, Aws::String>>
98 void SetInstanceTags(InstanceTagsT&& value) {
99 m_instanceTagsHasBeenSet = true;
100 m_instanceTags = std::forward<InstanceTagsT>(value);
101 }
102 template <typename InstanceTagsT = Aws::Map<Aws::String, Aws::String>>
104 SetInstanceTags(std::forward<InstanceTagsT>(value));
105 return *this;
106 }
107 template <typename InstanceTagsKeyT = Aws::String, typename InstanceTagsValueT = Aws::String>
108 Ec2InstanceAggregationResponse& AddInstanceTags(InstanceTagsKeyT&& key, InstanceTagsValueT&& value) {
109 m_instanceTagsHasBeenSet = true;
110 m_instanceTags.emplace(std::forward<InstanceTagsKeyT>(key), std::forward<InstanceTagsValueT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::String& GetAccountId() const { return m_accountId; }
120 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
121 template <typename AccountIdT = Aws::String>
122 void SetAccountId(AccountIdT&& value) {
123 m_accountIdHasBeenSet = true;
124 m_accountId = std::forward<AccountIdT>(value);
125 }
126 template <typename AccountIdT = Aws::String>
128 SetAccountId(std::forward<AccountIdT>(value));
129 return *this;
130 }
132
134
137 inline const SeverityCounts& GetSeverityCounts() const { return m_severityCounts; }
138 inline bool SeverityCountsHasBeenSet() const { return m_severityCountsHasBeenSet; }
139 template <typename SeverityCountsT = SeverityCounts>
140 void SetSeverityCounts(SeverityCountsT&& value) {
141 m_severityCountsHasBeenSet = true;
142 m_severityCounts = std::forward<SeverityCountsT>(value);
143 }
144 template <typename SeverityCountsT = SeverityCounts>
146 SetSeverityCounts(std::forward<SeverityCountsT>(value));
147 return *this;
148 }
150
152
155 inline long long GetNetworkFindings() const { return m_networkFindings; }
156 inline bool NetworkFindingsHasBeenSet() const { return m_networkFindingsHasBeenSet; }
157 inline void SetNetworkFindings(long long value) {
158 m_networkFindingsHasBeenSet = true;
159 m_networkFindings = value;
160 }
162 SetNetworkFindings(value);
163 return *this;
164 }
166 private:
167 Aws::String m_instanceId;
168
169 Aws::String m_ami;
170
171 Aws::String m_operatingSystem;
172
174
175 Aws::String m_accountId;
176
177 SeverityCounts m_severityCounts;
178
179 long long m_networkFindings{0};
180 bool m_instanceIdHasBeenSet = false;
181 bool m_amiHasBeenSet = false;
182 bool m_operatingSystemHasBeenSet = false;
183 bool m_instanceTagsHasBeenSet = false;
184 bool m_accountIdHasBeenSet = false;
185 bool m_severityCountsHasBeenSet = false;
186 bool m_networkFindingsHasBeenSet = false;
187};
188
189} // namespace Model
190} // namespace Inspector2
191} // namespace Aws
Ec2InstanceAggregationResponse & WithOperatingSystem(OperatingSystemT &&value)
Ec2InstanceAggregationResponse & WithInstanceId(InstanceIdT &&value)
Ec2InstanceAggregationResponse & WithAccountId(AccountIdT &&value)
AWS_INSPECTOR2_API Ec2InstanceAggregationResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR2_API Ec2InstanceAggregationResponse(Aws::Utils::Json::JsonView jsonValue)
Ec2InstanceAggregationResponse & WithNetworkFindings(long long value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
Ec2InstanceAggregationResponse & WithSeverityCounts(SeverityCountsT &&value)
AWS_INSPECTOR2_API Ec2InstanceAggregationResponse()=default
Ec2InstanceAggregationResponse & WithInstanceTags(InstanceTagsT &&value)
Ec2InstanceAggregationResponse & AddInstanceTags(InstanceTagsKeyT &&key, InstanceTagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetInstanceTags() const
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