AWS SDK for C++

AWS SDK for C++ Version 1.11.850

Loading...
Searching...
No Matches
AmiAggregationResponse.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/inspector2/Inspector2_EXPORTS.h>
9#include <aws/inspector2/model/Provider.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 AmiAggregationResponse() = default;
35 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetAmi() const { return m_ami; }
42 inline bool AmiHasBeenSet() const { return m_amiHasBeenSet; }
43 template <typename AmiT = Aws::String>
44 void SetAmi(AmiT&& value) {
45 m_amiHasBeenSet = true;
46 m_ami = std::forward<AmiT>(value);
47 }
48 template <typename AmiT = Aws::String>
50 SetAmi(std::forward<AmiT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetAccountId() const { return m_accountId; }
60 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
61 template <typename AccountIdT = Aws::String>
62 void SetAccountId(AccountIdT&& value) {
63 m_accountIdHasBeenSet = true;
64 m_accountId = std::forward<AccountIdT>(value);
65 }
66 template <typename AccountIdT = Aws::String>
68 SetAccountId(std::forward<AccountIdT>(value));
69 return *this;
70 }
72
74
80 inline Provider GetCloudProvider() const { return m_cloudProvider; }
81 inline bool CloudProviderHasBeenSet() const { return m_cloudProviderHasBeenSet; }
82 inline void SetCloudProvider(Provider value) {
83 m_cloudProviderHasBeenSet = true;
84 m_cloudProvider = value;
85 }
87 SetCloudProvider(value);
88 return *this;
89 }
91
93
101 inline const Aws::String& GetCloudPartition() const { return m_cloudPartition; }
102 inline bool CloudPartitionHasBeenSet() const { return m_cloudPartitionHasBeenSet; }
103 template <typename CloudPartitionT = Aws::String>
104 void SetCloudPartition(CloudPartitionT&& value) {
105 m_cloudPartitionHasBeenSet = true;
106 m_cloudPartition = std::forward<CloudPartitionT>(value);
107 }
108 template <typename CloudPartitionT = Aws::String>
109 AmiAggregationResponse& WithCloudPartition(CloudPartitionT&& value) {
110 SetCloudPartition(std::forward<CloudPartitionT>(value));
111 return *this;
112 }
114
116
122 inline const Aws::String& GetCloudRegion() const { return m_cloudRegion; }
123 inline bool CloudRegionHasBeenSet() const { return m_cloudRegionHasBeenSet; }
124 template <typename CloudRegionT = Aws::String>
125 void SetCloudRegion(CloudRegionT&& value) {
126 m_cloudRegionHasBeenSet = true;
127 m_cloudRegion = std::forward<CloudRegionT>(value);
128 }
129 template <typename CloudRegionT = Aws::String>
131 SetCloudRegion(std::forward<CloudRegionT>(value));
132 return *this;
133 }
135
137
140 inline const Aws::String& GetCloudOrgId() const { return m_cloudOrgId; }
141 inline bool CloudOrgIdHasBeenSet() const { return m_cloudOrgIdHasBeenSet; }
142 template <typename CloudOrgIdT = Aws::String>
143 void SetCloudOrgId(CloudOrgIdT&& value) {
144 m_cloudOrgIdHasBeenSet = true;
145 m_cloudOrgId = std::forward<CloudOrgIdT>(value);
146 }
147 template <typename CloudOrgIdT = Aws::String>
149 SetCloudOrgId(std::forward<CloudOrgIdT>(value));
150 return *this;
151 }
153
155
158 inline const Aws::String& GetCloudAccountId() const { return m_cloudAccountId; }
159 inline bool CloudAccountIdHasBeenSet() const { return m_cloudAccountIdHasBeenSet; }
160 template <typename CloudAccountIdT = Aws::String>
161 void SetCloudAccountId(CloudAccountIdT&& value) {
162 m_cloudAccountIdHasBeenSet = true;
163 m_cloudAccountId = std::forward<CloudAccountIdT>(value);
164 }
165 template <typename CloudAccountIdT = Aws::String>
166 AmiAggregationResponse& WithCloudAccountId(CloudAccountIdT&& value) {
167 SetCloudAccountId(std::forward<CloudAccountIdT>(value));
168 return *this;
169 }
171
173
176 inline const SeverityCounts& GetSeverityCounts() const { return m_severityCounts; }
177 inline bool SeverityCountsHasBeenSet() const { return m_severityCountsHasBeenSet; }
178 template <typename SeverityCountsT = SeverityCounts>
179 void SetSeverityCounts(SeverityCountsT&& value) {
180 m_severityCountsHasBeenSet = true;
181 m_severityCounts = std::forward<SeverityCountsT>(value);
182 }
183 template <typename SeverityCountsT = SeverityCounts>
184 AmiAggregationResponse& WithSeverityCounts(SeverityCountsT&& value) {
185 SetSeverityCounts(std::forward<SeverityCountsT>(value));
186 return *this;
187 }
189
191
194 inline long long GetAffectedInstances() const { return m_affectedInstances; }
195 inline bool AffectedInstancesHasBeenSet() const { return m_affectedInstancesHasBeenSet; }
196 inline void SetAffectedInstances(long long value) {
197 m_affectedInstancesHasBeenSet = true;
198 m_affectedInstances = value;
199 }
202 return *this;
203 }
205 private:
206 Aws::String m_ami;
207
208 Aws::String m_accountId;
209
210 Provider m_cloudProvider{Provider::NOT_SET};
211
212 Aws::String m_cloudPartition;
213
214 Aws::String m_cloudRegion;
215
216 Aws::String m_cloudOrgId;
217
218 Aws::String m_cloudAccountId;
219
220 SeverityCounts m_severityCounts;
221
222 long long m_affectedInstances{0};
223 bool m_amiHasBeenSet = false;
224 bool m_accountIdHasBeenSet = false;
225 bool m_cloudProviderHasBeenSet = false;
226 bool m_cloudPartitionHasBeenSet = false;
227 bool m_cloudRegionHasBeenSet = false;
228 bool m_cloudOrgIdHasBeenSet = false;
229 bool m_cloudAccountIdHasBeenSet = false;
230 bool m_severityCountsHasBeenSet = false;
231 bool m_affectedInstancesHasBeenSet = false;
232};
233
234} // namespace Model
235} // namespace Inspector2
236} // namespace Aws
AWS_INSPECTOR2_API AmiAggregationResponse(Aws::Utils::Json::JsonView jsonValue)
AmiAggregationResponse & WithCloudOrgId(CloudOrgIdT &&value)
AmiAggregationResponse & WithAffectedInstances(long long value)
AWS_INSPECTOR2_API AmiAggregationResponse()=default
AmiAggregationResponse & WithCloudRegion(CloudRegionT &&value)
AmiAggregationResponse & WithCloudPartition(CloudPartitionT &&value)
AmiAggregationResponse & WithCloudAccountId(CloudAccountIdT &&value)
AmiAggregationResponse & WithCloudProvider(Provider value)
AmiAggregationResponse & WithAmi(AmiT &&value)
AWS_INSPECTOR2_API AmiAggregationResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
AmiAggregationResponse & WithAccountId(AccountIdT &&value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
AmiAggregationResponse & WithSeverityCounts(SeverityCountsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue