AWS SDK for C++

AWS SDK for C++ Version 1.11.820

Loading...
Searching...
No Matches
FindingSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
10#include <aws/resiliencehubv2/model/FailureCategory.h>
11#include <aws/resiliencehubv2/model/FindingSeverity.h>
12#include <aws/resiliencehubv2/model/FindingStatus.h>
13#include <aws/resiliencehubv2/model/PolicyComponent.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace resiliencehubv2 {
25namespace Model {
26
33 public:
34 AWS_RESILIENCEHUBV2_API FindingSummary() = default;
35 AWS_RESILIENCEHUBV2_API FindingSummary(Aws::Utils::Json::JsonView jsonValue);
36 AWS_RESILIENCEHUBV2_API FindingSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
41 inline const Aws::String& GetServiceArn() const { return m_serviceArn; }
42 inline bool ServiceArnHasBeenSet() const { return m_serviceArnHasBeenSet; }
43 template <typename ServiceArnT = Aws::String>
44 void SetServiceArn(ServiceArnT&& value) {
45 m_serviceArnHasBeenSet = true;
46 m_serviceArn = std::forward<ServiceArnT>(value);
47 }
48 template <typename ServiceArnT = Aws::String>
49 FindingSummary& WithServiceArn(ServiceArnT&& value) {
50 SetServiceArn(std::forward<ServiceArnT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetFindingId() const { return m_findingId; }
60 inline bool FindingIdHasBeenSet() const { return m_findingIdHasBeenSet; }
61 template <typename FindingIdT = Aws::String>
62 void SetFindingId(FindingIdT&& value) {
63 m_findingIdHasBeenSet = true;
64 m_findingId = std::forward<FindingIdT>(value);
65 }
66 template <typename FindingIdT = Aws::String>
67 FindingSummary& WithFindingId(FindingIdT&& value) {
68 SetFindingId(std::forward<FindingIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetName() const { return m_name; }
78 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
79 template <typename NameT = Aws::String>
80 void SetName(NameT&& value) {
81 m_nameHasBeenSet = true;
82 m_name = std::forward<NameT>(value);
83 }
84 template <typename NameT = Aws::String>
85 FindingSummary& WithName(NameT&& value) {
86 SetName(std::forward<NameT>(value));
87 return *this;
88 }
90
92
93 inline const Aws::String& GetDescription() const { return m_description; }
94 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
95 template <typename DescriptionT = Aws::String>
96 void SetDescription(DescriptionT&& value) {
97 m_descriptionHasBeenSet = true;
98 m_description = std::forward<DescriptionT>(value);
99 }
100 template <typename DescriptionT = Aws::String>
101 FindingSummary& WithDescription(DescriptionT&& value) {
102 SetDescription(std::forward<DescriptionT>(value));
103 return *this;
104 }
106
108
111 inline FailureCategory GetFailureCategory() const { return m_failureCategory; }
112 inline bool FailureCategoryHasBeenSet() const { return m_failureCategoryHasBeenSet; }
114 m_failureCategoryHasBeenSet = true;
115 m_failureCategory = value;
116 }
118 SetFailureCategory(value);
119 return *this;
120 }
122
124
127 inline FindingSeverity GetSeverity() const { return m_severity; }
128 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
129 inline void SetSeverity(FindingSeverity value) {
130 m_severityHasBeenSet = true;
131 m_severity = value;
132 }
134 SetSeverity(value);
135 return *this;
136 }
138
140
143 inline FindingStatus GetStatus() const { return m_status; }
144 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
145 inline void SetStatus(FindingStatus value) {
146 m_statusHasBeenSet = true;
147 m_status = value;
148 }
150 SetStatus(value);
151 return *this;
152 }
154
156
159 inline PolicyComponent GetPolicyComponent() const { return m_policyComponent; }
160 inline bool PolicyComponentHasBeenSet() const { return m_policyComponentHasBeenSet; }
162 m_policyComponentHasBeenSet = true;
163 m_policyComponent = value;
164 }
166 SetPolicyComponent(value);
167 return *this;
168 }
170
172
175 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
176 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
177 template <typename UpdatedAtT = Aws::Utils::DateTime>
178 void SetUpdatedAt(UpdatedAtT&& value) {
179 m_updatedAtHasBeenSet = true;
180 m_updatedAt = std::forward<UpdatedAtT>(value);
181 }
182 template <typename UpdatedAtT = Aws::Utils::DateTime>
183 FindingSummary& WithUpdatedAt(UpdatedAtT&& value) {
184 SetUpdatedAt(std::forward<UpdatedAtT>(value));
185 return *this;
186 }
188 private:
189 Aws::String m_serviceArn;
190
191 Aws::String m_findingId;
192
193 Aws::String m_name;
194
195 Aws::String m_description;
196
197 FailureCategory m_failureCategory{FailureCategory::NOT_SET};
198
200
202
203 PolicyComponent m_policyComponent{PolicyComponent::NOT_SET};
204
205 Aws::Utils::DateTime m_updatedAt{};
206 bool m_serviceArnHasBeenSet = false;
207 bool m_findingIdHasBeenSet = false;
208 bool m_nameHasBeenSet = false;
209 bool m_descriptionHasBeenSet = false;
210 bool m_failureCategoryHasBeenSet = false;
211 bool m_severityHasBeenSet = false;
212 bool m_statusHasBeenSet = false;
213 bool m_policyComponentHasBeenSet = false;
214 bool m_updatedAtHasBeenSet = false;
215};
216
217} // namespace Model
218} // namespace resiliencehubv2
219} // namespace Aws
FindingSummary & WithDescription(DescriptionT &&value)
AWS_RESILIENCEHUBV2_API FindingSummary()=default
FindingSummary & WithFindingId(FindingIdT &&value)
FindingSummary & WithUpdatedAt(UpdatedAtT &&value)
FindingSummary & WithPolicyComponent(PolicyComponent value)
FindingSummary & WithName(NameT &&value)
void SetFailureCategory(FailureCategory value)
FindingSummary & WithFailureCategory(FailureCategory value)
const Aws::String & GetServiceArn() const
void SetPolicyComponent(PolicyComponent value)
AWS_RESILIENCEHUBV2_API FindingSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDescription() const
FindingSummary & WithStatus(FindingStatus value)
const Aws::Utils::DateTime & GetUpdatedAt() const
AWS_RESILIENCEHUBV2_API FindingSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
FindingSummary & WithServiceArn(ServiceArnT &&value)
AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetFindingId() const
void SetDescription(DescriptionT &&value)
FindingSummary & WithSeverity(FindingSeverity value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue