AWS SDK for C++

AWS SDK for C++ Version 1.11.769

Loading...
Searching...
No Matches
AssessmentRiskRecommendation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ResilienceHub {
21namespace Model {
22
37 public:
38 AWS_RESILIENCEHUB_API AssessmentRiskRecommendation() = default;
41 AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
50 inline const Aws::Vector<Aws::String>& GetAppComponents() const { return m_appComponents; }
51 inline bool AppComponentsHasBeenSet() const { return m_appComponentsHasBeenSet; }
52 template <typename AppComponentsT = Aws::Vector<Aws::String>>
53 void SetAppComponents(AppComponentsT&& value) {
54 m_appComponentsHasBeenSet = true;
55 m_appComponents = std::forward<AppComponentsT>(value);
56 }
57 template <typename AppComponentsT = Aws::Vector<Aws::String>>
59 SetAppComponents(std::forward<AppComponentsT>(value));
60 return *this;
61 }
62 template <typename AppComponentsT = Aws::String>
64 m_appComponentsHasBeenSet = true;
65 m_appComponents.emplace_back(std::forward<AppComponentsT>(value));
66 return *this;
67 }
69
71
76 inline const Aws::String& GetRecommendation() const { return m_recommendation; }
77 inline bool RecommendationHasBeenSet() const { return m_recommendationHasBeenSet; }
78 template <typename RecommendationT = Aws::String>
79 void SetRecommendation(RecommendationT&& value) {
80 m_recommendationHasBeenSet = true;
81 m_recommendation = std::forward<RecommendationT>(value);
82 }
83 template <typename RecommendationT = Aws::String>
85 SetRecommendation(std::forward<RecommendationT>(value));
86 return *this;
87 }
89
91
96 inline const Aws::String& GetRisk() const { return m_risk; }
97 inline bool RiskHasBeenSet() const { return m_riskHasBeenSet; }
98 template <typename RiskT = Aws::String>
99 void SetRisk(RiskT&& value) {
100 m_riskHasBeenSet = true;
101 m_risk = std::forward<RiskT>(value);
102 }
103 template <typename RiskT = Aws::String>
105 SetRisk(std::forward<RiskT>(value));
106 return *this;
107 }
109 private:
110 Aws::Vector<Aws::String> m_appComponents;
111
112 Aws::String m_recommendation;
113
114 Aws::String m_risk;
115 bool m_appComponentsHasBeenSet = false;
116 bool m_recommendationHasBeenSet = false;
117 bool m_riskHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace ResilienceHub
122} // namespace Aws
AssessmentRiskRecommendation & AddAppComponents(AppComponentsT &&value)
AWS_RESILIENCEHUB_API AssessmentRiskRecommendation(Aws::Utils::Json::JsonView jsonValue)
AWS_RESILIENCEHUB_API AssessmentRiskRecommendation()=default
AWS_RESILIENCEHUB_API AssessmentRiskRecommendation & operator=(Aws::Utils::Json::JsonView jsonValue)
AssessmentRiskRecommendation & WithAppComponents(AppComponentsT &&value)
AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AssessmentRiskRecommendation & WithRecommendation(RecommendationT &&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