AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
RecommendationTemplate.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
12#include <aws/resiliencehub/model/RecommendationTemplateStatus.h>
13#include <aws/resiliencehub/model/RenderRecommendationType.h>
14#include <aws/resiliencehub/model/S3Location.h>
15#include <aws/resiliencehub/model/TemplateFormat.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace ResilienceHub {
27namespace Model {
28
36 public:
37 AWS_RESILIENCEHUB_API RecommendationTemplate() = default;
38 AWS_RESILIENCEHUB_API RecommendationTemplate(Aws::Utils::Json::JsonView jsonValue);
40 AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
52 inline const Aws::String& GetAppArn() const { return m_appArn; }
53 inline bool AppArnHasBeenSet() const { return m_appArnHasBeenSet; }
54 template <typename AppArnT = Aws::String>
55 void SetAppArn(AppArnT&& value) {
56 m_appArnHasBeenSet = true;
57 m_appArn = std::forward<AppArnT>(value);
58 }
59 template <typename AppArnT = Aws::String>
61 SetAppArn(std::forward<AppArnT>(value));
62 return *this;
63 }
65
67
75 inline const Aws::String& GetAssessmentArn() const { return m_assessmentArn; }
76 inline bool AssessmentArnHasBeenSet() const { return m_assessmentArnHasBeenSet; }
77 template <typename AssessmentArnT = Aws::String>
78 void SetAssessmentArn(AssessmentArnT&& value) {
79 m_assessmentArnHasBeenSet = true;
80 m_assessmentArn = std::forward<AssessmentArnT>(value);
81 }
82 template <typename AssessmentArnT = Aws::String>
83 RecommendationTemplate& WithAssessmentArn(AssessmentArnT&& value) {
84 SetAssessmentArn(std::forward<AssessmentArnT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
94 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
95 template <typename EndTimeT = Aws::Utils::DateTime>
96 void SetEndTime(EndTimeT&& value) {
97 m_endTimeHasBeenSet = true;
98 m_endTime = std::forward<EndTimeT>(value);
99 }
100 template <typename EndTimeT = Aws::Utils::DateTime>
102 SetEndTime(std::forward<EndTimeT>(value));
103 return *this;
104 }
106
108
113 inline TemplateFormat GetFormat() const { return m_format; }
114 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
115 inline void SetFormat(TemplateFormat value) {
116 m_formatHasBeenSet = true;
117 m_format = value;
118 }
120 SetFormat(value);
121 return *this;
122 }
124
126
129 inline const Aws::String& GetMessage() const { return m_message; }
130 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
131 template <typename MessageT = Aws::String>
132 void SetMessage(MessageT&& value) {
133 m_messageHasBeenSet = true;
134 m_message = std::forward<MessageT>(value);
135 }
136 template <typename MessageT = Aws::String>
138 SetMessage(std::forward<MessageT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::String& GetName() const { return m_name; }
148 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
149 template <typename NameT = Aws::String>
150 void SetName(NameT&& value) {
151 m_nameHasBeenSet = true;
152 m_name = std::forward<NameT>(value);
153 }
154 template <typename NameT = Aws::String>
156 SetName(std::forward<NameT>(value));
157 return *this;
158 }
160
162
165 inline bool GetNeedsReplacements() const { return m_needsReplacements; }
166 inline bool NeedsReplacementsHasBeenSet() const { return m_needsReplacementsHasBeenSet; }
167 inline void SetNeedsReplacements(bool value) {
168 m_needsReplacementsHasBeenSet = true;
169 m_needsReplacements = value;
170 }
173 return *this;
174 }
176
178
181 inline const Aws::Vector<Aws::String>& GetRecommendationIds() const { return m_recommendationIds; }
182 inline bool RecommendationIdsHasBeenSet() const { return m_recommendationIdsHasBeenSet; }
183 template <typename RecommendationIdsT = Aws::Vector<Aws::String>>
184 void SetRecommendationIds(RecommendationIdsT&& value) {
185 m_recommendationIdsHasBeenSet = true;
186 m_recommendationIds = std::forward<RecommendationIdsT>(value);
187 }
188 template <typename RecommendationIdsT = Aws::Vector<Aws::String>>
189 RecommendationTemplate& WithRecommendationIds(RecommendationIdsT&& value) {
190 SetRecommendationIds(std::forward<RecommendationIdsT>(value));
191 return *this;
192 }
193 template <typename RecommendationIdsT = Aws::String>
194 RecommendationTemplate& AddRecommendationIds(RecommendationIdsT&& value) {
195 m_recommendationIdsHasBeenSet = true;
196 m_recommendationIds.emplace_back(std::forward<RecommendationIdsT>(value));
197 return *this;
198 }
200
202
205 inline const Aws::String& GetRecommendationTemplateArn() const { return m_recommendationTemplateArn; }
206 inline bool RecommendationTemplateArnHasBeenSet() const { return m_recommendationTemplateArnHasBeenSet; }
207 template <typename RecommendationTemplateArnT = Aws::String>
208 void SetRecommendationTemplateArn(RecommendationTemplateArnT&& value) {
209 m_recommendationTemplateArnHasBeenSet = true;
210 m_recommendationTemplateArn = std::forward<RecommendationTemplateArnT>(value);
211 }
212 template <typename RecommendationTemplateArnT = Aws::String>
213 RecommendationTemplate& WithRecommendationTemplateArn(RecommendationTemplateArnT&& value) {
214 SetRecommendationTemplateArn(std::forward<RecommendationTemplateArnT>(value));
215 return *this;
216 }
218
220
227 inline const Aws::Vector<RenderRecommendationType>& GetRecommendationTypes() const { return m_recommendationTypes; }
228 inline bool RecommendationTypesHasBeenSet() const { return m_recommendationTypesHasBeenSet; }
229 template <typename RecommendationTypesT = Aws::Vector<RenderRecommendationType>>
230 void SetRecommendationTypes(RecommendationTypesT&& value) {
231 m_recommendationTypesHasBeenSet = true;
232 m_recommendationTypes = std::forward<RecommendationTypesT>(value);
233 }
234 template <typename RecommendationTypesT = Aws::Vector<RenderRecommendationType>>
235 RecommendationTemplate& WithRecommendationTypes(RecommendationTypesT&& value) {
236 SetRecommendationTypes(std::forward<RecommendationTypesT>(value));
237 return *this;
238 }
240 m_recommendationTypesHasBeenSet = true;
241 m_recommendationTypes.push_back(value);
242 return *this;
243 }
245
247
250 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
251 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
252 template <typename StartTimeT = Aws::Utils::DateTime>
253 void SetStartTime(StartTimeT&& value) {
254 m_startTimeHasBeenSet = true;
255 m_startTime = std::forward<StartTimeT>(value);
256 }
257 template <typename StartTimeT = Aws::Utils::DateTime>
259 SetStartTime(std::forward<StartTimeT>(value));
260 return *this;
261 }
263
265
268 inline RecommendationTemplateStatus GetStatus() const { return m_status; }
269 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
271 m_statusHasBeenSet = true;
272 m_status = value;
273 }
275 SetStatus(value);
276 return *this;
277 }
279
281
285 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
286 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
287 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
288 void SetTags(TagsT&& value) {
289 m_tagsHasBeenSet = true;
290 m_tags = std::forward<TagsT>(value);
291 }
292 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
294 SetTags(std::forward<TagsT>(value));
295 return *this;
296 }
297 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
298 RecommendationTemplate& AddTags(TagsKeyT&& key, TagsValueT&& value) {
299 m_tagsHasBeenSet = true;
300 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
301 return *this;
302 }
304
306
309 inline const S3Location& GetTemplatesLocation() const { return m_templatesLocation; }
310 inline bool TemplatesLocationHasBeenSet() const { return m_templatesLocationHasBeenSet; }
311 template <typename TemplatesLocationT = S3Location>
312 void SetTemplatesLocation(TemplatesLocationT&& value) {
313 m_templatesLocationHasBeenSet = true;
314 m_templatesLocation = std::forward<TemplatesLocationT>(value);
315 }
316 template <typename TemplatesLocationT = S3Location>
317 RecommendationTemplate& WithTemplatesLocation(TemplatesLocationT&& value) {
318 SetTemplatesLocation(std::forward<TemplatesLocationT>(value));
319 return *this;
320 }
322 private:
323 Aws::String m_appArn;
324
325 Aws::String m_assessmentArn;
326
327 Aws::Utils::DateTime m_endTime{};
328
330
331 Aws::String m_message;
332
333 Aws::String m_name;
334
335 bool m_needsReplacements{false};
336
337 Aws::Vector<Aws::String> m_recommendationIds;
338
339 Aws::String m_recommendationTemplateArn;
340
341 Aws::Vector<RenderRecommendationType> m_recommendationTypes;
342
343 Aws::Utils::DateTime m_startTime{};
344
346
348
349 S3Location m_templatesLocation;
350 bool m_appArnHasBeenSet = false;
351 bool m_assessmentArnHasBeenSet = false;
352 bool m_endTimeHasBeenSet = false;
353 bool m_formatHasBeenSet = false;
354 bool m_messageHasBeenSet = false;
355 bool m_nameHasBeenSet = false;
356 bool m_needsReplacementsHasBeenSet = false;
357 bool m_recommendationIdsHasBeenSet = false;
358 bool m_recommendationTemplateArnHasBeenSet = false;
359 bool m_recommendationTypesHasBeenSet = false;
360 bool m_startTimeHasBeenSet = false;
361 bool m_statusHasBeenSet = false;
362 bool m_tagsHasBeenSet = false;
363 bool m_templatesLocationHasBeenSet = false;
364};
365
366} // namespace Model
367} // namespace ResilienceHub
368} // namespace Aws
AWS_RESILIENCEHUB_API RecommendationTemplate(Aws::Utils::Json::JsonView jsonValue)
RecommendationTemplate & WithTags(TagsT &&value)
RecommendationTemplate & WithMessage(MessageT &&value)
RecommendationTemplate & WithNeedsReplacements(bool value)
void SetRecommendationTemplateArn(RecommendationTemplateArnT &&value)
RecommendationTemplate & WithAssessmentArn(AssessmentArnT &&value)
RecommendationTemplate & WithFormat(TemplateFormat value)
RecommendationTemplate & WithTemplatesLocation(TemplatesLocationT &&value)
AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const
RecommendationTemplate & WithRecommendationTemplateArn(RecommendationTemplateArnT &&value)
RecommendationTemplate & WithEndTime(EndTimeT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
RecommendationTemplate & AddRecommendationIds(RecommendationIdsT &&value)
RecommendationTemplate & WithName(NameT &&value)
RecommendationTemplate & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetStatus(RecommendationTemplateStatus value)
const Aws::Vector< Aws::String > & GetRecommendationIds() const
RecommendationTemplate & WithStartTime(StartTimeT &&value)
AWS_RESILIENCEHUB_API RecommendationTemplate & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< RenderRecommendationType > & GetRecommendationTypes() const
AWS_RESILIENCEHUB_API RecommendationTemplate()=default
RecommendationTemplate & WithRecommendationIds(RecommendationIdsT &&value)
RecommendationTemplate & WithStatus(RecommendationTemplateStatus value)
RecommendationTemplate & WithAppArn(AppArnT &&value)
void SetRecommendationTypes(RecommendationTypesT &&value)
RecommendationTemplate & AddRecommendationTypes(RenderRecommendationType value)
RecommendationTemplate & WithRecommendationTypes(RecommendationTypesT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue