AWS SDK for C++

AWS SDK for C++ Version 1.11.820

Loading...
Searching...
No Matches
ServiceSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
11#include <aws/resiliencehubv2/model/Achievability.h>
12#include <aws/resiliencehubv2/model/AssessmentStatus.h>
13#include <aws/resiliencehubv2/model/AssociatedSystem.h>
14#include <aws/resiliencehubv2/model/DependencyDiscoveryConfig.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace resiliencehubv2 {
26namespace Model {
27
34 public:
35 AWS_RESILIENCEHUBV2_API ServiceSummary() = default;
36 AWS_RESILIENCEHUBV2_API ServiceSummary(Aws::Utils::Json::JsonView jsonValue);
37 AWS_RESILIENCEHUBV2_API ServiceSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
42 inline const Aws::String& GetServiceArn() const { return m_serviceArn; }
43 inline bool ServiceArnHasBeenSet() const { return m_serviceArnHasBeenSet; }
44 template <typename ServiceArnT = Aws::String>
45 void SetServiceArn(ServiceArnT&& value) {
46 m_serviceArnHasBeenSet = true;
47 m_serviceArn = std::forward<ServiceArnT>(value);
48 }
49 template <typename ServiceArnT = Aws::String>
50 ServiceSummary& WithServiceArn(ServiceArnT&& value) {
51 SetServiceArn(std::forward<ServiceArnT>(value));
52 return *this;
53 }
55
57
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
66 ServiceSummary& WithName(NameT&& value) {
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Vector<AssociatedSystem>& GetAssociatedSystems() const { return m_associatedSystems; }
77 inline bool AssociatedSystemsHasBeenSet() const { return m_associatedSystemsHasBeenSet; }
78 template <typename AssociatedSystemsT = Aws::Vector<AssociatedSystem>>
79 void SetAssociatedSystems(AssociatedSystemsT&& value) {
80 m_associatedSystemsHasBeenSet = true;
81 m_associatedSystems = std::forward<AssociatedSystemsT>(value);
82 }
83 template <typename AssociatedSystemsT = Aws::Vector<AssociatedSystem>>
84 ServiceSummary& WithAssociatedSystems(AssociatedSystemsT&& value) {
85 SetAssociatedSystems(std::forward<AssociatedSystemsT>(value));
86 return *this;
87 }
88 template <typename AssociatedSystemsT = AssociatedSystem>
89 ServiceSummary& AddAssociatedSystems(AssociatedSystemsT&& value) {
90 m_associatedSystemsHasBeenSet = true;
91 m_associatedSystems.emplace_back(std::forward<AssociatedSystemsT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
101 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
102 template <typename RegionsT = Aws::Vector<Aws::String>>
103 void SetRegions(RegionsT&& value) {
104 m_regionsHasBeenSet = true;
105 m_regions = std::forward<RegionsT>(value);
106 }
107 template <typename RegionsT = Aws::Vector<Aws::String>>
108 ServiceSummary& WithRegions(RegionsT&& value) {
109 SetRegions(std::forward<RegionsT>(value));
110 return *this;
111 }
112 template <typename RegionsT = Aws::String>
113 ServiceSummary& AddRegions(RegionsT&& value) {
114 m_regionsHasBeenSet = true;
115 m_regions.emplace_back(std::forward<RegionsT>(value));
116 return *this;
117 }
119
121
122 inline const Aws::String& GetPolicyArn() const { return m_policyArn; }
123 inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
124 template <typename PolicyArnT = Aws::String>
125 void SetPolicyArn(PolicyArnT&& value) {
126 m_policyArnHasBeenSet = true;
127 m_policyArn = std::forward<PolicyArnT>(value);
128 }
129 template <typename PolicyArnT = Aws::String>
130 ServiceSummary& WithPolicyArn(PolicyArnT&& value) {
131 SetPolicyArn(std::forward<PolicyArnT>(value));
132 return *this;
133 }
135
137
140 inline AssessmentStatus GetAssessmentStatus() const { return m_assessmentStatus; }
141 inline bool AssessmentStatusHasBeenSet() const { return m_assessmentStatusHasBeenSet; }
143 m_assessmentStatusHasBeenSet = true;
144 m_assessmentStatus = value;
145 }
147 SetAssessmentStatus(value);
148 return *this;
149 }
151
153
156 inline int GetOpenFindingsCount() const { return m_openFindingsCount; }
157 inline bool OpenFindingsCountHasBeenSet() const { return m_openFindingsCountHasBeenSet; }
158 inline void SetOpenFindingsCount(int value) {
159 m_openFindingsCountHasBeenSet = true;
160 m_openFindingsCount = value;
161 }
164 return *this;
165 }
167
169
172 inline int GetResolvedFindingsCount() const { return m_resolvedFindingsCount; }
173 inline bool ResolvedFindingsCountHasBeenSet() const { return m_resolvedFindingsCountHasBeenSet; }
174 inline void SetResolvedFindingsCount(int value) {
175 m_resolvedFindingsCountHasBeenSet = true;
176 m_resolvedFindingsCount = value;
177 }
180 return *this;
181 }
183
185
188 inline const DependencyDiscoveryConfig& GetDependencyDiscovery() const { return m_dependencyDiscovery; }
189 inline bool DependencyDiscoveryHasBeenSet() const { return m_dependencyDiscoveryHasBeenSet; }
190 template <typename DependencyDiscoveryT = DependencyDiscoveryConfig>
191 void SetDependencyDiscovery(DependencyDiscoveryT&& value) {
192 m_dependencyDiscoveryHasBeenSet = true;
193 m_dependencyDiscovery = std::forward<DependencyDiscoveryT>(value);
194 }
195 template <typename DependencyDiscoveryT = DependencyDiscoveryConfig>
196 ServiceSummary& WithDependencyDiscovery(DependencyDiscoveryT&& value) {
197 SetDependencyDiscovery(std::forward<DependencyDiscoveryT>(value));
198 return *this;
199 }
201
203
206 inline const Achievability& GetAchievability() const { return m_achievability; }
207 inline bool AchievabilityHasBeenSet() const { return m_achievabilityHasBeenSet; }
208 template <typename AchievabilityT = Achievability>
209 void SetAchievability(AchievabilityT&& value) {
210 m_achievabilityHasBeenSet = true;
211 m_achievability = std::forward<AchievabilityT>(value);
212 }
213 template <typename AchievabilityT = Achievability>
214 ServiceSummary& WithAchievability(AchievabilityT&& value) {
215 SetAchievability(std::forward<AchievabilityT>(value));
216 return *this;
217 }
219
221
224 inline const Aws::String& GetOrganizationId() const { return m_organizationId; }
225 inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
226 template <typename OrganizationIdT = Aws::String>
227 void SetOrganizationId(OrganizationIdT&& value) {
228 m_organizationIdHasBeenSet = true;
229 m_organizationId = std::forward<OrganizationIdT>(value);
230 }
231 template <typename OrganizationIdT = Aws::String>
232 ServiceSummary& WithOrganizationId(OrganizationIdT&& value) {
233 SetOrganizationId(std::forward<OrganizationIdT>(value));
234 return *this;
235 }
237
239
242 inline const Aws::String& GetOuId() const { return m_ouId; }
243 inline bool OuIdHasBeenSet() const { return m_ouIdHasBeenSet; }
244 template <typename OuIdT = Aws::String>
245 void SetOuId(OuIdT&& value) {
246 m_ouIdHasBeenSet = true;
247 m_ouId = std::forward<OuIdT>(value);
248 }
249 template <typename OuIdT = Aws::String>
250 ServiceSummary& WithOuId(OuIdT&& value) {
251 SetOuId(std::forward<OuIdT>(value));
252 return *this;
253 }
255
257
260 inline const Aws::String& GetAccountId() const { return m_accountId; }
261 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
262 template <typename AccountIdT = Aws::String>
263 void SetAccountId(AccountIdT&& value) {
264 m_accountIdHasBeenSet = true;
265 m_accountId = std::forward<AccountIdT>(value);
266 }
267 template <typename AccountIdT = Aws::String>
268 ServiceSummary& WithAccountId(AccountIdT&& value) {
269 SetAccountId(std::forward<AccountIdT>(value));
270 return *this;
271 }
273
275
278 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
279 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
280 template <typename CreatedAtT = Aws::Utils::DateTime>
281 void SetCreatedAt(CreatedAtT&& value) {
282 m_createdAtHasBeenSet = true;
283 m_createdAt = std::forward<CreatedAtT>(value);
284 }
285 template <typename CreatedAtT = Aws::Utils::DateTime>
286 ServiceSummary& WithCreatedAt(CreatedAtT&& value) {
287 SetCreatedAt(std::forward<CreatedAtT>(value));
288 return *this;
289 }
291
293
296 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
297 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
298 template <typename UpdatedAtT = Aws::Utils::DateTime>
299 void SetUpdatedAt(UpdatedAtT&& value) {
300 m_updatedAtHasBeenSet = true;
301 m_updatedAt = std::forward<UpdatedAtT>(value);
302 }
303 template <typename UpdatedAtT = Aws::Utils::DateTime>
304 ServiceSummary& WithUpdatedAt(UpdatedAtT&& value) {
305 SetUpdatedAt(std::forward<UpdatedAtT>(value));
306 return *this;
307 }
309 private:
310 Aws::String m_serviceArn;
311
312 Aws::String m_name;
313
314 Aws::Vector<AssociatedSystem> m_associatedSystems;
315
316 Aws::Vector<Aws::String> m_regions;
317
318 Aws::String m_policyArn;
319
321
322 int m_openFindingsCount{0};
323
324 int m_resolvedFindingsCount{0};
325
326 DependencyDiscoveryConfig m_dependencyDiscovery;
327
328 Achievability m_achievability;
329
330 Aws::String m_organizationId;
331
332 Aws::String m_ouId;
333
334 Aws::String m_accountId;
335
336 Aws::Utils::DateTime m_createdAt{};
337
338 Aws::Utils::DateTime m_updatedAt{};
339 bool m_serviceArnHasBeenSet = false;
340 bool m_nameHasBeenSet = false;
341 bool m_associatedSystemsHasBeenSet = false;
342 bool m_regionsHasBeenSet = false;
343 bool m_policyArnHasBeenSet = false;
344 bool m_assessmentStatusHasBeenSet = false;
345 bool m_openFindingsCountHasBeenSet = false;
346 bool m_resolvedFindingsCountHasBeenSet = false;
347 bool m_dependencyDiscoveryHasBeenSet = false;
348 bool m_achievabilityHasBeenSet = false;
349 bool m_organizationIdHasBeenSet = false;
350 bool m_ouIdHasBeenSet = false;
351 bool m_accountIdHasBeenSet = false;
352 bool m_createdAtHasBeenSet = false;
353 bool m_updatedAtHasBeenSet = false;
354};
355
356} // namespace Model
357} // namespace resiliencehubv2
358} // namespace Aws
AWS_RESILIENCEHUBV2_API ServiceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceSummary & WithPolicyArn(PolicyArnT &&value)
ServiceSummary & WithOrganizationId(OrganizationIdT &&value)
ServiceSummary & WithUpdatedAt(UpdatedAtT &&value)
ServiceSummary & WithAssessmentStatus(AssessmentStatus value)
ServiceSummary & AddRegions(RegionsT &&value)
ServiceSummary & WithCreatedAt(CreatedAtT &&value)
const Aws::Vector< Aws::String > & GetRegions() const
const Achievability & GetAchievability() const
const Aws::Utils::DateTime & GetCreatedAt() const
ServiceSummary & WithOpenFindingsCount(int value)
const Aws::String & GetOrganizationId() const
AWS_RESILIENCEHUBV2_API ServiceSummary()=default
void SetOrganizationId(OrganizationIdT &&value)
const Aws::String & GetServiceArn() const
ServiceSummary & WithAchievability(AchievabilityT &&value)
ServiceSummary & WithServiceArn(ServiceArnT &&value)
const DependencyDiscoveryConfig & GetDependencyDiscovery() const
ServiceSummary & WithOuId(OuIdT &&value)
void SetAchievability(AchievabilityT &&value)
AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAssessmentStatus(AssessmentStatus value)
AWS_RESILIENCEHUBV2_API ServiceSummary(Aws::Utils::Json::JsonView jsonValue)
ServiceSummary & WithDependencyDiscovery(DependencyDiscoveryT &&value)
void SetDependencyDiscovery(DependencyDiscoveryT &&value)
ServiceSummary & AddAssociatedSystems(AssociatedSystemsT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
ServiceSummary & WithResolvedFindingsCount(int value)
ServiceSummary & WithName(NameT &&value)
const Aws::Vector< AssociatedSystem > & GetAssociatedSystems() const
ServiceSummary & WithAccountId(AccountIdT &&value)
ServiceSummary & WithAssociatedSystems(AssociatedSystemsT &&value)
ServiceSummary & WithRegions(RegionsT &&value)
void SetAssociatedSystems(AssociatedSystemsT &&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