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/FailureCategory.h>
12#include <aws/resiliencehubv2/model/FindingSeverity.h>
13#include <aws/resiliencehubv2/model/FindingStatus.h>
14#include <aws/resiliencehubv2/model/InfrastructureAndCodeRecommendation.h>
15#include <aws/resiliencehubv2/model/ObservabilityRecommendation.h>
16#include <aws/resiliencehubv2/model/PolicyComponent.h>
17#include <aws/resiliencehubv2/model/TestingRecommendation.h>
28namespace resiliencehubv2 {
39 AWS_RESILIENCEHUBV2_API
Finding() =
default;
50 template <
typename FindingIdT = Aws::String>
52 m_findingIdHasBeenSet =
true;
53 m_findingId = std::forward<FindingIdT>(value);
55 template <
typename FindingIdT = Aws::String>
68 template <
typename NameT = Aws::String>
70 m_nameHasBeenSet =
true;
71 m_name = std::forward<NameT>(value);
73 template <
typename NameT = Aws::String>
75 SetName(std::forward<NameT>(value));
84 template <
typename DescriptionT = Aws::String>
86 m_descriptionHasBeenSet =
true;
87 m_description = std::forward<DescriptionT>(value);
89 template <
typename DescriptionT = Aws::String>
103 m_failureCategoryHasBeenSet =
true;
104 m_failureCategory = value;
119 m_statusHasBeenSet =
true;
134 template <
typename ReasoningT = Aws::String>
136 m_reasoningHasBeenSet =
true;
137 m_reasoning = std::forward<ReasoningT>(value);
139 template <
typename ReasoningT = Aws::String>
152 template <
typename CommentT = Aws::String>
154 m_commentHasBeenSet =
true;
155 m_comment = std::forward<CommentT>(value);
157 template <
typename CommentT = Aws::String>
171 m_severityHasBeenSet =
true;
186 template <
typename ServiceFunctionsT = Aws::Vector<Aws::String>>
188 m_serviceFunctionsHasBeenSet =
true;
189 m_serviceFunctions = std::forward<ServiceFunctionsT>(value);
191 template <
typename ServiceFunctionsT = Aws::Vector<Aws::String>>
196 template <
typename ServiceFunctionsT = Aws::String>
198 m_serviceFunctionsHasBeenSet =
true;
199 m_serviceFunctions.emplace_back(std::forward<ServiceFunctionsT>(value));
211 m_policyComponentHasBeenSet =
true;
212 m_policyComponent = value;
225 return m_infrastructureAndCodeRecommendations;
228 template <
typename InfrastructureAndCodeRecommendationsT = Aws::Vector<InfrastructureAndCodeRecommendation>>
230 m_infrastructureAndCodeRecommendationsHasBeenSet =
true;
231 m_infrastructureAndCodeRecommendations = std::forward<InfrastructureAndCodeRecommendationsT>(value);
233 template <
typename InfrastructureAndCodeRecommendationsT = Aws::Vector<InfrastructureAndCodeRecommendation>>
238 template <
typename InfrastructureAndCodeRecommendationsT = InfrastructureAndCodeRecommendation>
240 m_infrastructureAndCodeRecommendationsHasBeenSet =
true;
241 m_infrastructureAndCodeRecommendations.emplace_back(std::forward<InfrastructureAndCodeRecommendationsT>(value));
252 template <
typename ObservabilityRecommendationsT = Aws::Vector<ObservabilityRecommendation>>
254 m_observabilityRecommendationsHasBeenSet =
true;
255 m_observabilityRecommendations = std::forward<ObservabilityRecommendationsT>(value);
257 template <
typename ObservabilityRecommendationsT = Aws::Vector<ObservabilityRecommendation>>
262 template <
typename ObservabilityRecommendationsT = ObservabilityRecommendation>
264 m_observabilityRecommendationsHasBeenSet =
true;
265 m_observabilityRecommendations.emplace_back(std::forward<ObservabilityRecommendationsT>(value));
276 template <
typename TestingRecommendationsT = Aws::Vector<TestingRecommendation>>
278 m_testingRecommendationsHasBeenSet =
true;
279 m_testingRecommendations = std::forward<TestingRecommendationsT>(value);
281 template <
typename TestingRecommendationsT = Aws::Vector<TestingRecommendation>>
286 template <
typename TestingRecommendationsT = TestingRecommendation>
288 m_testingRecommendationsHasBeenSet =
true;
289 m_testingRecommendations.emplace_back(std::forward<TestingRecommendationsT>(value));
300 template <
typename UpdatedAtT = Aws::Utils::DateTime>
302 m_updatedAtHasBeenSet =
true;
303 m_updatedAt = std::forward<UpdatedAtT>(value);
305 template <
typename UpdatedAtT = Aws::Utils::DateTime>
339 bool m_findingIdHasBeenSet =
false;
340 bool m_nameHasBeenSet =
false;
341 bool m_descriptionHasBeenSet =
false;
342 bool m_failureCategoryHasBeenSet =
false;
343 bool m_statusHasBeenSet =
false;
344 bool m_reasoningHasBeenSet =
false;
345 bool m_commentHasBeenSet =
false;
346 bool m_severityHasBeenSet =
false;
347 bool m_serviceFunctionsHasBeenSet =
false;
348 bool m_policyComponentHasBeenSet =
false;
349 bool m_infrastructureAndCodeRecommendationsHasBeenSet =
false;
350 bool m_observabilityRecommendationsHasBeenSet =
false;
351 bool m_testingRecommendationsHasBeenSet =
false;
352 bool m_updatedAtHasBeenSet =
false;
Finding & WithComment(CommentT &&value)
Finding & WithStatus(FindingStatus value)
Finding & AddServiceFunctions(ServiceFunctionsT &&value)
Finding & AddTestingRecommendations(TestingRecommendationsT &&value)
Finding & WithServiceFunctions(ServiceFunctionsT &&value)
Finding & AddInfrastructureAndCodeRecommendations(InfrastructureAndCodeRecommendationsT &&value)
bool TestingRecommendationsHasBeenSet() const
const Aws::Vector< TestingRecommendation > & GetTestingRecommendations() const
FindingStatus GetStatus() const
PolicyComponent GetPolicyComponent() const
const Aws::String & GetComment() const
bool NameHasBeenSet() const
Finding & WithSeverity(FindingSeverity value)
bool FailureCategoryHasBeenSet() const
const Aws::String & GetReasoning() const
void SetObservabilityRecommendations(ObservabilityRecommendationsT &&value)
bool ReasoningHasBeenSet() const
void SetSeverity(FindingSeverity value)
bool PolicyComponentHasBeenSet() const
AWS_RESILIENCEHUBV2_API Finding(Aws::Utils::Json::JsonView jsonValue)
Finding & AddObservabilityRecommendations(ObservabilityRecommendationsT &&value)
bool InfrastructureAndCodeRecommendationsHasBeenSet() const
bool ObservabilityRecommendationsHasBeenSet() const
const Aws::String & GetDescription() const
AWS_RESILIENCEHUBV2_API Finding()=default
const Aws::Utils::DateTime & GetUpdatedAt() const
void SetTestingRecommendations(TestingRecommendationsT &&value)
Finding & WithObservabilityRecommendations(ObservabilityRecommendationsT &&value)
bool FindingIdHasBeenSet() const
Finding & WithReasoning(ReasoningT &&value)
AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const
Finding & WithDescription(DescriptionT &&value)
void SetDescription(DescriptionT &&value)
void SetComment(CommentT &&value)
void SetServiceFunctions(ServiceFunctionsT &&value)
bool DescriptionHasBeenSet() const
const Aws::Vector< ObservabilityRecommendation > & GetObservabilityRecommendations() const
Finding & WithFindingId(FindingIdT &&value)
void SetFindingId(FindingIdT &&value)
FailureCategory GetFailureCategory() const
Finding & WithFailureCategory(FailureCategory value)
Finding & WithName(NameT &&value)
FindingSeverity GetSeverity() const
bool SeverityHasBeenSet() const
Finding & WithUpdatedAt(UpdatedAtT &&value)
void SetStatus(FindingStatus value)
const Aws::Vector< InfrastructureAndCodeRecommendation > & GetInfrastructureAndCodeRecommendations() const
bool UpdatedAtHasBeenSet() const
AWS_RESILIENCEHUBV2_API Finding & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetName(NameT &&value)
bool ServiceFunctionsHasBeenSet() const
Finding & WithInfrastructureAndCodeRecommendations(InfrastructureAndCodeRecommendationsT &&value)
Finding & WithTestingRecommendations(TestingRecommendationsT &&value)
void SetInfrastructureAndCodeRecommendations(InfrastructureAndCodeRecommendationsT &&value)
void SetReasoning(ReasoningT &&value)
const Aws::String & GetName() const
Finding & WithPolicyComponent(PolicyComponent value)
const Aws::String & GetFindingId() const
const Aws::Vector< Aws::String > & GetServiceFunctions() const
bool CommentHasBeenSet() const
void SetFailureCategory(FailureCategory value)
bool StatusHasBeenSet() const
void SetUpdatedAt(UpdatedAtT &&value)
void SetPolicyComponent(PolicyComponent 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