AWS SDK for C++

AWS SDK for C++ Version 1.11.852

Loading...
Searching...
No Matches
ImageLayerAggregationResponse.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/SeverityCounts.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Inspector2 {
21namespace Model {
22
30 public:
31 AWS_INSPECTOR2_API ImageLayerAggregationResponse() = default;
34 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetRepository() const { return m_repository; }
41 inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
42 template <typename RepositoryT = Aws::String>
43 void SetRepository(RepositoryT&& value) {
44 m_repositoryHasBeenSet = true;
45 m_repository = std::forward<RepositoryT>(value);
46 }
47 template <typename RepositoryT = Aws::String>
49 SetRepository(std::forward<RepositoryT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetResourceId() const { return m_resourceId; }
59 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
60 template <typename ResourceIdT = Aws::String>
61 void SetResourceId(ResourceIdT&& value) {
62 m_resourceIdHasBeenSet = true;
63 m_resourceId = std::forward<ResourceIdT>(value);
64 }
65 template <typename ResourceIdT = Aws::String>
67 SetResourceId(std::forward<ResourceIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetLayerHash() const { return m_layerHash; }
77 inline bool LayerHashHasBeenSet() const { return m_layerHashHasBeenSet; }
78 template <typename LayerHashT = Aws::String>
79 void SetLayerHash(LayerHashT&& value) {
80 m_layerHashHasBeenSet = true;
81 m_layerHash = std::forward<LayerHashT>(value);
82 }
83 template <typename LayerHashT = Aws::String>
85 SetLayerHash(std::forward<LayerHashT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::String& GetAccountId() const { return m_accountId; }
96 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
97 template <typename AccountIdT = Aws::String>
98 void SetAccountId(AccountIdT&& value) {
99 m_accountIdHasBeenSet = true;
100 m_accountId = std::forward<AccountIdT>(value);
101 }
102 template <typename AccountIdT = Aws::String>
104 SetAccountId(std::forward<AccountIdT>(value));
105 return *this;
106 }
108
110
116 inline const Aws::String& GetCloudProvider() const { return m_cloudProvider; }
117 inline bool CloudProviderHasBeenSet() const { return m_cloudProviderHasBeenSet; }
118 template <typename CloudProviderT = Aws::String>
119 void SetCloudProvider(CloudProviderT&& value) {
120 m_cloudProviderHasBeenSet = true;
121 m_cloudProvider = std::forward<CloudProviderT>(value);
122 }
123 template <typename CloudProviderT = Aws::String>
125 SetCloudProvider(std::forward<CloudProviderT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::String& GetCloudAccountId() const { return m_cloudAccountId; }
135 inline bool CloudAccountIdHasBeenSet() const { return m_cloudAccountIdHasBeenSet; }
136 template <typename CloudAccountIdT = Aws::String>
137 void SetCloudAccountId(CloudAccountIdT&& value) {
138 m_cloudAccountIdHasBeenSet = true;
139 m_cloudAccountId = std::forward<CloudAccountIdT>(value);
140 }
141 template <typename CloudAccountIdT = Aws::String>
143 SetCloudAccountId(std::forward<CloudAccountIdT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::String& GetCloudOrgId() const { return m_cloudOrgId; }
153 inline bool CloudOrgIdHasBeenSet() const { return m_cloudOrgIdHasBeenSet; }
154 template <typename CloudOrgIdT = Aws::String>
155 void SetCloudOrgId(CloudOrgIdT&& value) {
156 m_cloudOrgIdHasBeenSet = true;
157 m_cloudOrgId = std::forward<CloudOrgIdT>(value);
158 }
159 template <typename CloudOrgIdT = Aws::String>
161 SetCloudOrgId(std::forward<CloudOrgIdT>(value));
162 return *this;
163 }
165
167
173 inline const Aws::String& GetCloudRegion() const { return m_cloudRegion; }
174 inline bool CloudRegionHasBeenSet() const { return m_cloudRegionHasBeenSet; }
175 template <typename CloudRegionT = Aws::String>
176 void SetCloudRegion(CloudRegionT&& value) {
177 m_cloudRegionHasBeenSet = true;
178 m_cloudRegion = std::forward<CloudRegionT>(value);
179 }
180 template <typename CloudRegionT = Aws::String>
182 SetCloudRegion(std::forward<CloudRegionT>(value));
183 return *this;
184 }
186
188
196 inline const Aws::String& GetCloudPartition() const { return m_cloudPartition; }
197 inline bool CloudPartitionHasBeenSet() const { return m_cloudPartitionHasBeenSet; }
198 template <typename CloudPartitionT = Aws::String>
199 void SetCloudPartition(CloudPartitionT&& value) {
200 m_cloudPartitionHasBeenSet = true;
201 m_cloudPartition = std::forward<CloudPartitionT>(value);
202 }
203 template <typename CloudPartitionT = Aws::String>
205 SetCloudPartition(std::forward<CloudPartitionT>(value));
206 return *this;
207 }
209
211
214 inline const SeverityCounts& GetSeverityCounts() const { return m_severityCounts; }
215 inline bool SeverityCountsHasBeenSet() const { return m_severityCountsHasBeenSet; }
216 template <typename SeverityCountsT = SeverityCounts>
217 void SetSeverityCounts(SeverityCountsT&& value) {
218 m_severityCountsHasBeenSet = true;
219 m_severityCounts = std::forward<SeverityCountsT>(value);
220 }
221 template <typename SeverityCountsT = SeverityCounts>
223 SetSeverityCounts(std::forward<SeverityCountsT>(value));
224 return *this;
225 }
227 private:
228 Aws::String m_repository;
229
230 Aws::String m_resourceId;
231
232 Aws::String m_layerHash;
233
234 Aws::String m_accountId;
235
236 Aws::String m_cloudProvider;
237
238 Aws::String m_cloudAccountId;
239
240 Aws::String m_cloudOrgId;
241
242 Aws::String m_cloudRegion;
243
244 Aws::String m_cloudPartition;
245
246 SeverityCounts m_severityCounts;
247 bool m_repositoryHasBeenSet = false;
248 bool m_resourceIdHasBeenSet = false;
249 bool m_layerHashHasBeenSet = false;
250 bool m_accountIdHasBeenSet = false;
251 bool m_cloudProviderHasBeenSet = false;
252 bool m_cloudAccountIdHasBeenSet = false;
253 bool m_cloudOrgIdHasBeenSet = false;
254 bool m_cloudRegionHasBeenSet = false;
255 bool m_cloudPartitionHasBeenSet = false;
256 bool m_severityCountsHasBeenSet = false;
257};
258
259} // namespace Model
260} // namespace Inspector2
261} // namespace Aws
ImageLayerAggregationResponse & WithAccountId(AccountIdT &&value)
ImageLayerAggregationResponse & WithCloudOrgId(CloudOrgIdT &&value)
ImageLayerAggregationResponse & WithSeverityCounts(SeverityCountsT &&value)
ImageLayerAggregationResponse & WithCloudAccountId(CloudAccountIdT &&value)
ImageLayerAggregationResponse & WithCloudRegion(CloudRegionT &&value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_INSPECTOR2_API ImageLayerAggregationResponse()=default
ImageLayerAggregationResponse & WithLayerHash(LayerHashT &&value)
AWS_INSPECTOR2_API ImageLayerAggregationResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR2_API ImageLayerAggregationResponse(Aws::Utils::Json::JsonView jsonValue)
ImageLayerAggregationResponse & WithCloudProvider(CloudProviderT &&value)
ImageLayerAggregationResponse & WithRepository(RepositoryT &&value)
ImageLayerAggregationResponse & WithCloudPartition(CloudPartitionT &&value)
ImageLayerAggregationResponse & WithResourceId(ResourceIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue