AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ResourceResult.h
1
6#pragma once
7#include <aws/core/utils/Document.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/securityhub/SecurityHub_EXPORTS.h>
11#include <aws/securityhub/model/ResourceCategory.h>
12#include <aws/securityhub/model/ResourceFindingsSummary.h>
13#include <aws/securityhub/model/ResourceTag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SecurityHub {
25namespace Model {
26
34 public:
35 AWS_SECURITYHUB_API ResourceResult() = default;
36 AWS_SECURITYHUB_API ResourceResult(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SECURITYHUB_API ResourceResult& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetResourceGuid() const { return m_resourceGuid; }
45 inline bool ResourceGuidHasBeenSet() const { return m_resourceGuidHasBeenSet; }
46 template <typename ResourceGuidT = Aws::String>
47 void SetResourceGuid(ResourceGuidT&& value) {
48 m_resourceGuidHasBeenSet = true;
49 m_resourceGuid = std::forward<ResourceGuidT>(value);
50 }
51 template <typename ResourceGuidT = Aws::String>
52 ResourceResult& WithResourceGuid(ResourceGuidT&& value) {
53 SetResourceGuid(std::forward<ResourceGuidT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetResourceId() const { return m_resourceId; }
63 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
64 template <typename ResourceIdT = Aws::String>
65 void SetResourceId(ResourceIdT&& value) {
66 m_resourceIdHasBeenSet = true;
67 m_resourceId = std::forward<ResourceIdT>(value);
68 }
69 template <typename ResourceIdT = Aws::String>
70 ResourceResult& WithResourceId(ResourceIdT&& value) {
71 SetResourceId(std::forward<ResourceIdT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetAccountId() const { return m_accountId; }
81 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
82 template <typename AccountIdT = Aws::String>
83 void SetAccountId(AccountIdT&& value) {
84 m_accountIdHasBeenSet = true;
85 m_accountId = std::forward<AccountIdT>(value);
86 }
87 template <typename AccountIdT = Aws::String>
88 ResourceResult& WithAccountId(AccountIdT&& value) {
89 SetAccountId(std::forward<AccountIdT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetRegion() const { return m_region; }
99 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
100 template <typename RegionT = Aws::String>
101 void SetRegion(RegionT&& value) {
102 m_regionHasBeenSet = true;
103 m_region = std::forward<RegionT>(value);
104 }
105 template <typename RegionT = Aws::String>
106 ResourceResult& WithRegion(RegionT&& value) {
107 SetRegion(std::forward<RegionT>(value));
108 return *this;
109 }
111
113
116 inline ResourceCategory GetResourceCategory() const { return m_resourceCategory; }
117 inline bool ResourceCategoryHasBeenSet() const { return m_resourceCategoryHasBeenSet; }
119 m_resourceCategoryHasBeenSet = true;
120 m_resourceCategory = value;
121 }
123 SetResourceCategory(value);
124 return *this;
125 }
127
129
132 inline const Aws::String& GetResourceType() const { return m_resourceType; }
133 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
134 template <typename ResourceTypeT = Aws::String>
135 void SetResourceType(ResourceTypeT&& value) {
136 m_resourceTypeHasBeenSet = true;
137 m_resourceType = std::forward<ResourceTypeT>(value);
138 }
139 template <typename ResourceTypeT = Aws::String>
140 ResourceResult& WithResourceType(ResourceTypeT&& value) {
141 SetResourceType(std::forward<ResourceTypeT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::String& GetResourceName() const { return m_resourceName; }
151 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
152 template <typename ResourceNameT = Aws::String>
153 void SetResourceName(ResourceNameT&& value) {
154 m_resourceNameHasBeenSet = true;
155 m_resourceName = std::forward<ResourceNameT>(value);
156 }
157 template <typename ResourceNameT = Aws::String>
158 ResourceResult& WithResourceName(ResourceNameT&& value) {
159 SetResourceName(std::forward<ResourceNameT>(value));
160 return *this;
161 }
163
165
168 inline const Aws::String& GetResourceCreationTimeDt() const { return m_resourceCreationTimeDt; }
169 inline bool ResourceCreationTimeDtHasBeenSet() const { return m_resourceCreationTimeDtHasBeenSet; }
170 template <typename ResourceCreationTimeDtT = Aws::String>
171 void SetResourceCreationTimeDt(ResourceCreationTimeDtT&& value) {
172 m_resourceCreationTimeDtHasBeenSet = true;
173 m_resourceCreationTimeDt = std::forward<ResourceCreationTimeDtT>(value);
174 }
175 template <typename ResourceCreationTimeDtT = Aws::String>
176 ResourceResult& WithResourceCreationTimeDt(ResourceCreationTimeDtT&& value) {
177 SetResourceCreationTimeDt(std::forward<ResourceCreationTimeDtT>(value));
178 return *this;
179 }
181
183
186 inline const Aws::String& GetResourceDetailCaptureTimeDt() const { return m_resourceDetailCaptureTimeDt; }
187 inline bool ResourceDetailCaptureTimeDtHasBeenSet() const { return m_resourceDetailCaptureTimeDtHasBeenSet; }
188 template <typename ResourceDetailCaptureTimeDtT = Aws::String>
189 void SetResourceDetailCaptureTimeDt(ResourceDetailCaptureTimeDtT&& value) {
190 m_resourceDetailCaptureTimeDtHasBeenSet = true;
191 m_resourceDetailCaptureTimeDt = std::forward<ResourceDetailCaptureTimeDtT>(value);
192 }
193 template <typename ResourceDetailCaptureTimeDtT = Aws::String>
194 ResourceResult& WithResourceDetailCaptureTimeDt(ResourceDetailCaptureTimeDtT&& value) {
195 SetResourceDetailCaptureTimeDt(std::forward<ResourceDetailCaptureTimeDtT>(value));
196 return *this;
197 }
199
201
204 inline const Aws::Vector<ResourceFindingsSummary>& GetFindingsSummary() const { return m_findingsSummary; }
205 inline bool FindingsSummaryHasBeenSet() const { return m_findingsSummaryHasBeenSet; }
206 template <typename FindingsSummaryT = Aws::Vector<ResourceFindingsSummary>>
207 void SetFindingsSummary(FindingsSummaryT&& value) {
208 m_findingsSummaryHasBeenSet = true;
209 m_findingsSummary = std::forward<FindingsSummaryT>(value);
210 }
211 template <typename FindingsSummaryT = Aws::Vector<ResourceFindingsSummary>>
212 ResourceResult& WithFindingsSummary(FindingsSummaryT&& value) {
213 SetFindingsSummary(std::forward<FindingsSummaryT>(value));
214 return *this;
215 }
216 template <typename FindingsSummaryT = ResourceFindingsSummary>
217 ResourceResult& AddFindingsSummary(FindingsSummaryT&& value) {
218 m_findingsSummaryHasBeenSet = true;
219 m_findingsSummary.emplace_back(std::forward<FindingsSummaryT>(value));
220 return *this;
221 }
223
225
228 inline const Aws::Vector<ResourceTag>& GetResourceTags() const { return m_resourceTags; }
229 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
230 template <typename ResourceTagsT = Aws::Vector<ResourceTag>>
231 void SetResourceTags(ResourceTagsT&& value) {
232 m_resourceTagsHasBeenSet = true;
233 m_resourceTags = std::forward<ResourceTagsT>(value);
234 }
235 template <typename ResourceTagsT = Aws::Vector<ResourceTag>>
236 ResourceResult& WithResourceTags(ResourceTagsT&& value) {
237 SetResourceTags(std::forward<ResourceTagsT>(value));
238 return *this;
239 }
240 template <typename ResourceTagsT = ResourceTag>
241 ResourceResult& AddResourceTags(ResourceTagsT&& value) {
242 m_resourceTagsHasBeenSet = true;
243 m_resourceTags.emplace_back(std::forward<ResourceTagsT>(value));
244 return *this;
245 }
247
249
252 inline Aws::Utils::DocumentView GetResourceConfig() const { return m_resourceConfig; }
253 inline bool ResourceConfigHasBeenSet() const { return m_resourceConfigHasBeenSet; }
254 template <typename ResourceConfigT = Aws::Utils::Document>
255 void SetResourceConfig(ResourceConfigT&& value) {
256 m_resourceConfigHasBeenSet = true;
257 m_resourceConfig = std::forward<ResourceConfigT>(value);
258 }
259 template <typename ResourceConfigT = Aws::Utils::Document>
260 ResourceResult& WithResourceConfig(ResourceConfigT&& value) {
261 SetResourceConfig(std::forward<ResourceConfigT>(value));
262 return *this;
263 }
265 private:
266 Aws::String m_resourceGuid;
267
268 Aws::String m_resourceId;
269
270 Aws::String m_accountId;
271
272 Aws::String m_region;
273
275
276 Aws::String m_resourceType;
277
278 Aws::String m_resourceName;
279
280 Aws::String m_resourceCreationTimeDt;
281
282 Aws::String m_resourceDetailCaptureTimeDt;
283
284 Aws::Vector<ResourceFindingsSummary> m_findingsSummary;
285
286 Aws::Vector<ResourceTag> m_resourceTags;
287
288 Aws::Utils::Document m_resourceConfig;
289 bool m_resourceGuidHasBeenSet = false;
290 bool m_resourceIdHasBeenSet = false;
291 bool m_accountIdHasBeenSet = false;
292 bool m_regionHasBeenSet = false;
293 bool m_resourceCategoryHasBeenSet = false;
294 bool m_resourceTypeHasBeenSet = false;
295 bool m_resourceNameHasBeenSet = false;
296 bool m_resourceCreationTimeDtHasBeenSet = false;
297 bool m_resourceDetailCaptureTimeDtHasBeenSet = false;
298 bool m_findingsSummaryHasBeenSet = false;
299 bool m_resourceTagsHasBeenSet = false;
300 bool m_resourceConfigHasBeenSet = false;
301};
302
303} // namespace Model
304} // namespace SecurityHub
305} // namespace Aws
AWS_SECURITYHUB_API ResourceResult(Aws::Utils::Json::JsonView jsonValue)
void SetAccountId(AccountIdT &&value)
ResourceResult & WithAccountId(AccountIdT &&value)
const Aws::String & GetResourceDetailCaptureTimeDt() const
ResourceResult & WithResourceTags(ResourceTagsT &&value)
ResourceCategory GetResourceCategory() const
ResourceResult & WithResourceConfig(ResourceConfigT &&value)
const Aws::String & GetResourceName() const
const Aws::String & GetRegion() const
const Aws::Vector< ResourceFindingsSummary > & GetFindingsSummary() const
ResourceResult & AddFindingsSummary(FindingsSummaryT &&value)
ResourceResult & AddResourceTags(ResourceTagsT &&value)
const Aws::Vector< ResourceTag > & GetResourceTags() const
void SetFindingsSummary(FindingsSummaryT &&value)
void SetResourceConfig(ResourceConfigT &&value)
const Aws::String & GetResourceCreationTimeDt() const
ResourceResult & WithResourceGuid(ResourceGuidT &&value)
ResourceResult & WithResourceCategory(ResourceCategory value)
void SetResourceCreationTimeDt(ResourceCreationTimeDtT &&value)
Aws::Utils::DocumentView GetResourceConfig() const
AWS_SECURITYHUB_API ResourceResult()=default
const Aws::String & GetAccountId() const
void SetResourceGuid(ResourceGuidT &&value)
void SetResourceId(ResourceIdT &&value)
ResourceResult & WithResourceCreationTimeDt(ResourceCreationTimeDtT &&value)
void SetResourceName(ResourceNameT &&value)
const Aws::String & GetResourceGuid() const
void SetResourceCategory(ResourceCategory value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetResourceType(ResourceTypeT &&value)
const Aws::String & GetResourceType() const
ResourceResult & WithResourceId(ResourceIdT &&value)
AWS_SECURITYHUB_API ResourceResult & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceResult & WithResourceName(ResourceNameT &&value)
const Aws::String & GetResourceId() const
ResourceResult & WithResourceDetailCaptureTimeDt(ResourceDetailCaptureTimeDtT &&value)
void SetResourceDetailCaptureTimeDt(ResourceDetailCaptureTimeDtT &&value)
void SetResourceTags(ResourceTagsT &&value)
ResourceResult & WithRegion(RegionT &&value)
ResourceResult & WithFindingsSummary(FindingsSummaryT &&value)
ResourceResult & WithResourceType(ResourceTypeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue