AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
SopRecommendation.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#include <aws/resiliencehub/model/RecommendationItem.h>
11#include <aws/resiliencehub/model/RecommendationStatus.h>
12#include <aws/resiliencehub/model/SopServiceType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ResilienceHub {
24namespace Model {
25
33 public:
34 AWS_RESILIENCEHUB_API SopRecommendation() = default;
35 AWS_RESILIENCEHUB_API SopRecommendation(Aws::Utils::Json::JsonView jsonValue);
36 AWS_RESILIENCEHUB_API SopRecommendation& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetAppComponentName() const { return m_appComponentName; }
44 inline bool AppComponentNameHasBeenSet() const { return m_appComponentNameHasBeenSet; }
45 template <typename AppComponentNameT = Aws::String>
46 void SetAppComponentName(AppComponentNameT&& value) {
47 m_appComponentNameHasBeenSet = true;
48 m_appComponentName = std::forward<AppComponentNameT>(value);
49 }
50 template <typename AppComponentNameT = Aws::String>
51 SopRecommendation& WithAppComponentName(AppComponentNameT&& value) {
52 SetAppComponentName(std::forward<AppComponentNameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetDescription() const { return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
63 template <typename DescriptionT = Aws::String>
64 void SetDescription(DescriptionT&& value) {
65 m_descriptionHasBeenSet = true;
66 m_description = std::forward<DescriptionT>(value);
67 }
68 template <typename DescriptionT = Aws::String>
69 SopRecommendation& WithDescription(DescriptionT&& value) {
70 SetDescription(std::forward<DescriptionT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::Vector<RecommendationItem>& GetItems() const { return m_items; }
80 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
81 template <typename ItemsT = Aws::Vector<RecommendationItem>>
82 void SetItems(ItemsT&& value) {
83 m_itemsHasBeenSet = true;
84 m_items = std::forward<ItemsT>(value);
85 }
86 template <typename ItemsT = Aws::Vector<RecommendationItem>>
87 SopRecommendation& WithItems(ItemsT&& value) {
88 SetItems(std::forward<ItemsT>(value));
89 return *this;
90 }
91 template <typename ItemsT = RecommendationItem>
92 SopRecommendation& AddItems(ItemsT&& value) {
93 m_itemsHasBeenSet = true;
94 m_items.emplace_back(std::forward<ItemsT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::String& GetName() const { return m_name; }
104 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
105 template <typename NameT = Aws::String>
106 void SetName(NameT&& value) {
107 m_nameHasBeenSet = true;
108 m_name = std::forward<NameT>(value);
109 }
110 template <typename NameT = Aws::String>
111 SopRecommendation& WithName(NameT&& value) {
112 SetName(std::forward<NameT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::String& GetPrerequisite() const { return m_prerequisite; }
122 inline bool PrerequisiteHasBeenSet() const { return m_prerequisiteHasBeenSet; }
123 template <typename PrerequisiteT = Aws::String>
124 void SetPrerequisite(PrerequisiteT&& value) {
125 m_prerequisiteHasBeenSet = true;
126 m_prerequisite = std::forward<PrerequisiteT>(value);
127 }
128 template <typename PrerequisiteT = Aws::String>
129 SopRecommendation& WithPrerequisite(PrerequisiteT&& value) {
130 SetPrerequisite(std::forward<PrerequisiteT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::String& GetRecommendationId() const { return m_recommendationId; }
140 inline bool RecommendationIdHasBeenSet() const { return m_recommendationIdHasBeenSet; }
141 template <typename RecommendationIdT = Aws::String>
142 void SetRecommendationId(RecommendationIdT&& value) {
143 m_recommendationIdHasBeenSet = true;
144 m_recommendationId = std::forward<RecommendationIdT>(value);
145 }
146 template <typename RecommendationIdT = Aws::String>
147 SopRecommendation& WithRecommendationId(RecommendationIdT&& value) {
148 SetRecommendationId(std::forward<RecommendationIdT>(value));
149 return *this;
150 }
152
154
157 inline RecommendationStatus GetRecommendationStatus() const { return m_recommendationStatus; }
158 inline bool RecommendationStatusHasBeenSet() const { return m_recommendationStatusHasBeenSet; }
160 m_recommendationStatusHasBeenSet = true;
161 m_recommendationStatus = value;
162 }
165 return *this;
166 }
168
170
173 inline const Aws::String& GetReferenceId() const { return m_referenceId; }
174 inline bool ReferenceIdHasBeenSet() const { return m_referenceIdHasBeenSet; }
175 template <typename ReferenceIdT = Aws::String>
176 void SetReferenceId(ReferenceIdT&& value) {
177 m_referenceIdHasBeenSet = true;
178 m_referenceId = std::forward<ReferenceIdT>(value);
179 }
180 template <typename ReferenceIdT = Aws::String>
181 SopRecommendation& WithReferenceId(ReferenceIdT&& value) {
182 SetReferenceId(std::forward<ReferenceIdT>(value));
183 return *this;
184 }
186
188
191 inline SopServiceType GetServiceType() const { return m_serviceType; }
192 inline bool ServiceTypeHasBeenSet() const { return m_serviceTypeHasBeenSet; }
193 inline void SetServiceType(SopServiceType value) {
194 m_serviceTypeHasBeenSet = true;
195 m_serviceType = value;
196 }
198 SetServiceType(value);
199 return *this;
200 }
202 private:
203 Aws::String m_appComponentName;
204
205 Aws::String m_description;
206
208
209 Aws::String m_name;
210
211 Aws::String m_prerequisite;
212
213 Aws::String m_recommendationId;
214
216
217 Aws::String m_referenceId;
218
220 bool m_appComponentNameHasBeenSet = false;
221 bool m_descriptionHasBeenSet = false;
222 bool m_itemsHasBeenSet = false;
223 bool m_nameHasBeenSet = false;
224 bool m_prerequisiteHasBeenSet = false;
225 bool m_recommendationIdHasBeenSet = false;
226 bool m_recommendationStatusHasBeenSet = false;
227 bool m_referenceIdHasBeenSet = false;
228 bool m_serviceTypeHasBeenSet = false;
229};
230
231} // namespace Model
232} // namespace ResilienceHub
233} // namespace Aws
const Aws::Vector< RecommendationItem > & GetItems() const
AWS_RESILIENCEHUB_API SopRecommendation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_RESILIENCEHUB_API SopRecommendation()=default
void SetAppComponentName(AppComponentNameT &&value)
const Aws::String & GetAppComponentName() const
SopRecommendation & WithServiceType(SopServiceType value)
void SetRecommendationId(RecommendationIdT &&value)
RecommendationStatus GetRecommendationStatus() const
SopRecommendation & WithReferenceId(ReferenceIdT &&value)
AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const
SopRecommendation & WithRecommendationId(RecommendationIdT &&value)
SopRecommendation & WithAppComponentName(AppComponentNameT &&value)
SopRecommendation & WithDescription(DescriptionT &&value)
void SetRecommendationStatus(RecommendationStatus value)
SopRecommendation & AddItems(ItemsT &&value)
SopRecommendation & WithPrerequisite(PrerequisiteT &&value)
SopRecommendation & WithName(NameT &&value)
SopRecommendation & WithRecommendationStatus(RecommendationStatus value)
AWS_RESILIENCEHUB_API SopRecommendation(Aws::Utils::Json::JsonView jsonValue)
SopRecommendation & WithItems(ItemsT &&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