AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RecommendationTemplate.h
1
6#pragma once
7#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/resiliencehub/model/TemplateFormat.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/resiliencehub/model/RecommendationTemplateStatus.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/resiliencehub/model/S3Location.h>
15#include <aws/resiliencehub/model/RenderRecommendationType.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace ResilienceHub
29{
30namespace Model
31{
32
40 {
41 public:
42 AWS_RESILIENCEHUB_API RecommendationTemplate();
43 AWS_RESILIENCEHUB_API RecommendationTemplate(Aws::Utils::Json::JsonView jsonValue);
45 AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
58 inline const Aws::String& GetAppArn() const{ return m_appArn; }
59 inline bool AppArnHasBeenSet() const { return m_appArnHasBeenSet; }
60 inline void SetAppArn(const Aws::String& value) { m_appArnHasBeenSet = true; m_appArn = value; }
61 inline void SetAppArn(Aws::String&& value) { m_appArnHasBeenSet = true; m_appArn = std::move(value); }
62 inline void SetAppArn(const char* value) { m_appArnHasBeenSet = true; m_appArn.assign(value); }
63 inline RecommendationTemplate& WithAppArn(const Aws::String& value) { SetAppArn(value); return *this;}
64 inline RecommendationTemplate& WithAppArn(Aws::String&& value) { SetAppArn(std::move(value)); return *this;}
65 inline RecommendationTemplate& WithAppArn(const char* value) { SetAppArn(value); return *this;}
67
69
77 inline const Aws::String& GetAssessmentArn() const{ return m_assessmentArn; }
78 inline bool AssessmentArnHasBeenSet() const { return m_assessmentArnHasBeenSet; }
79 inline void SetAssessmentArn(const Aws::String& value) { m_assessmentArnHasBeenSet = true; m_assessmentArn = value; }
80 inline void SetAssessmentArn(Aws::String&& value) { m_assessmentArnHasBeenSet = true; m_assessmentArn = std::move(value); }
81 inline void SetAssessmentArn(const char* value) { m_assessmentArnHasBeenSet = true; m_assessmentArn.assign(value); }
82 inline RecommendationTemplate& WithAssessmentArn(const Aws::String& value) { SetAssessmentArn(value); return *this;}
83 inline RecommendationTemplate& WithAssessmentArn(Aws::String&& value) { SetAssessmentArn(std::move(value)); return *this;}
84 inline RecommendationTemplate& WithAssessmentArn(const char* value) { SetAssessmentArn(value); return *this;}
86
88
91 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
92 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
93 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
94 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
95 inline RecommendationTemplate& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
96 inline RecommendationTemplate& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
98
100
105 inline const TemplateFormat& GetFormat() const{ return m_format; }
106 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
107 inline void SetFormat(const TemplateFormat& value) { m_formatHasBeenSet = true; m_format = value; }
108 inline void SetFormat(TemplateFormat&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
109 inline RecommendationTemplate& WithFormat(const TemplateFormat& value) { SetFormat(value); return *this;}
110 inline RecommendationTemplate& WithFormat(TemplateFormat&& value) { SetFormat(std::move(value)); return *this;}
112
114
117 inline const Aws::String& GetMessage() const{ return m_message; }
118 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
119 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
120 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
121 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
122 inline RecommendationTemplate& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
123 inline RecommendationTemplate& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
124 inline RecommendationTemplate& WithMessage(const char* value) { SetMessage(value); return *this;}
126
128
131 inline const Aws::String& GetName() const{ return m_name; }
132 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
133 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
134 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
135 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
136 inline RecommendationTemplate& WithName(const Aws::String& value) { SetName(value); return *this;}
137 inline RecommendationTemplate& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
138 inline RecommendationTemplate& WithName(const char* value) { SetName(value); return *this;}
140
142
145 inline bool GetNeedsReplacements() const{ return m_needsReplacements; }
146 inline bool NeedsReplacementsHasBeenSet() const { return m_needsReplacementsHasBeenSet; }
147 inline void SetNeedsReplacements(bool value) { m_needsReplacementsHasBeenSet = true; m_needsReplacements = value; }
148 inline RecommendationTemplate& WithNeedsReplacements(bool value) { SetNeedsReplacements(value); return *this;}
150
152
155 inline const Aws::Vector<Aws::String>& GetRecommendationIds() const{ return m_recommendationIds; }
156 inline bool RecommendationIdsHasBeenSet() const { return m_recommendationIdsHasBeenSet; }
157 inline void SetRecommendationIds(const Aws::Vector<Aws::String>& value) { m_recommendationIdsHasBeenSet = true; m_recommendationIds = value; }
158 inline void SetRecommendationIds(Aws::Vector<Aws::String>&& value) { m_recommendationIdsHasBeenSet = true; m_recommendationIds = std::move(value); }
161 inline RecommendationTemplate& AddRecommendationIds(const Aws::String& value) { m_recommendationIdsHasBeenSet = true; m_recommendationIds.push_back(value); return *this; }
162 inline RecommendationTemplate& AddRecommendationIds(Aws::String&& value) { m_recommendationIdsHasBeenSet = true; m_recommendationIds.push_back(std::move(value)); return *this; }
163 inline RecommendationTemplate& AddRecommendationIds(const char* value) { m_recommendationIdsHasBeenSet = true; m_recommendationIds.push_back(value); return *this; }
165
167
170 inline const Aws::String& GetRecommendationTemplateArn() const{ return m_recommendationTemplateArn; }
171 inline bool RecommendationTemplateArnHasBeenSet() const { return m_recommendationTemplateArnHasBeenSet; }
172 inline void SetRecommendationTemplateArn(const Aws::String& value) { m_recommendationTemplateArnHasBeenSet = true; m_recommendationTemplateArn = value; }
173 inline void SetRecommendationTemplateArn(Aws::String&& value) { m_recommendationTemplateArnHasBeenSet = true; m_recommendationTemplateArn = std::move(value); }
174 inline void SetRecommendationTemplateArn(const char* value) { m_recommendationTemplateArnHasBeenSet = true; m_recommendationTemplateArn.assign(value); }
179
181
188 inline const Aws::Vector<RenderRecommendationType>& GetRecommendationTypes() const{ return m_recommendationTypes; }
189 inline bool RecommendationTypesHasBeenSet() const { return m_recommendationTypesHasBeenSet; }
190 inline void SetRecommendationTypes(const Aws::Vector<RenderRecommendationType>& value) { m_recommendationTypesHasBeenSet = true; m_recommendationTypes = value; }
191 inline void SetRecommendationTypes(Aws::Vector<RenderRecommendationType>&& value) { m_recommendationTypesHasBeenSet = true; m_recommendationTypes = std::move(value); }
194 inline RecommendationTemplate& AddRecommendationTypes(const RenderRecommendationType& value) { m_recommendationTypesHasBeenSet = true; m_recommendationTypes.push_back(value); return *this; }
195 inline RecommendationTemplate& AddRecommendationTypes(RenderRecommendationType&& value) { m_recommendationTypesHasBeenSet = true; m_recommendationTypes.push_back(std::move(value)); return *this; }
197
199
202 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
203 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
204 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
205 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
206 inline RecommendationTemplate& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
207 inline RecommendationTemplate& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
209
211
214 inline const RecommendationTemplateStatus& GetStatus() const{ return m_status; }
215 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
216 inline void SetStatus(const RecommendationTemplateStatus& value) { m_statusHasBeenSet = true; m_status = value; }
217 inline void SetStatus(RecommendationTemplateStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
218 inline RecommendationTemplate& WithStatus(const RecommendationTemplateStatus& value) { SetStatus(value); return *this;}
219 inline RecommendationTemplate& WithStatus(RecommendationTemplateStatus&& value) { SetStatus(std::move(value)); return *this;}
221
223
227 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
228 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
229 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
230 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
231 inline RecommendationTemplate& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
232 inline RecommendationTemplate& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
233 inline RecommendationTemplate& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
234 inline RecommendationTemplate& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
235 inline RecommendationTemplate& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
236 inline RecommendationTemplate& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
237 inline RecommendationTemplate& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
238 inline RecommendationTemplate& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
239 inline RecommendationTemplate& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
241
243
246 inline const S3Location& GetTemplatesLocation() const{ return m_templatesLocation; }
247 inline bool TemplatesLocationHasBeenSet() const { return m_templatesLocationHasBeenSet; }
248 inline void SetTemplatesLocation(const S3Location& value) { m_templatesLocationHasBeenSet = true; m_templatesLocation = value; }
249 inline void SetTemplatesLocation(S3Location&& value) { m_templatesLocationHasBeenSet = true; m_templatesLocation = std::move(value); }
251 inline RecommendationTemplate& WithTemplatesLocation(S3Location&& value) { SetTemplatesLocation(std::move(value)); return *this;}
253 private:
254
255 Aws::String m_appArn;
256 bool m_appArnHasBeenSet = false;
257
258 Aws::String m_assessmentArn;
259 bool m_assessmentArnHasBeenSet = false;
260
261 Aws::Utils::DateTime m_endTime;
262 bool m_endTimeHasBeenSet = false;
263
264 TemplateFormat m_format;
265 bool m_formatHasBeenSet = false;
266
267 Aws::String m_message;
268 bool m_messageHasBeenSet = false;
269
270 Aws::String m_name;
271 bool m_nameHasBeenSet = false;
272
273 bool m_needsReplacements;
274 bool m_needsReplacementsHasBeenSet = false;
275
276 Aws::Vector<Aws::String> m_recommendationIds;
277 bool m_recommendationIdsHasBeenSet = false;
278
279 Aws::String m_recommendationTemplateArn;
280 bool m_recommendationTemplateArnHasBeenSet = false;
281
282 Aws::Vector<RenderRecommendationType> m_recommendationTypes;
283 bool m_recommendationTypesHasBeenSet = false;
284
285 Aws::Utils::DateTime m_startTime;
286 bool m_startTimeHasBeenSet = false;
287
289 bool m_statusHasBeenSet = false;
290
292 bool m_tagsHasBeenSet = false;
293
294 S3Location m_templatesLocation;
295 bool m_templatesLocationHasBeenSet = false;
296 };
297
298} // namespace Model
299} // namespace ResilienceHub
300} // namespace Aws
AWS_RESILIENCEHUB_API RecommendationTemplate(Aws::Utils::Json::JsonView jsonValue)
RecommendationTemplate & WithStartTime(Aws::Utils::DateTime &&value)
RecommendationTemplate & AddTags(Aws::String &&key, const Aws::String &value)
RecommendationTemplate & WithTemplatesLocation(S3Location &&value)
RecommendationTemplate & WithMessage(Aws::String &&value)
RecommendationTemplate & WithRecommendationTemplateArn(Aws::String &&value)
RecommendationTemplate & WithRecommendationTypes(const Aws::Vector< RenderRecommendationType > &value)
RecommendationTemplate & AddRecommendationIds(Aws::String &&value)
RecommendationTemplate & WithStartTime(const Aws::Utils::DateTime &value)
RecommendationTemplate & WithRecommendationTypes(Aws::Vector< RenderRecommendationType > &&value)
RecommendationTemplate & WithEndTime(Aws::Utils::DateTime &&value)
void SetRecommendationTypes(const Aws::Vector< RenderRecommendationType > &value)
RecommendationTemplate & WithName(Aws::String &&value)
RecommendationTemplate & AddTags(const char *key, Aws::String &&value)
RecommendationTemplate & WithFormat(const TemplateFormat &value)
RecommendationTemplate & WithNeedsReplacements(bool value)
RecommendationTemplate & WithRecommendationTemplateArn(const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
RecommendationTemplate & AddRecommendationTypes(RenderRecommendationType &&value)
RecommendationTemplate & WithMessage(const Aws::String &value)
RecommendationTemplate & WithAssessmentArn(const char *value)
RecommendationTemplate & WithRecommendationIds(const Aws::Vector< Aws::String > &value)
RecommendationTemplate & AddTags(Aws::String &&key, const char *value)
RecommendationTemplate & WithName(const Aws::String &value)
RecommendationTemplate & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetStatus(const RecommendationTemplateStatus &value)
RecommendationTemplate & WithAssessmentArn(Aws::String &&value)
RecommendationTemplate & WithRecommendationTemplateArn(const char *value)
RecommendationTemplate & AddRecommendationIds(const char *value)
void SetStartTime(const Aws::Utils::DateTime &value)
RecommendationTemplate & WithEndTime(const Aws::Utils::DateTime &value)
AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRecommendationIds(const Aws::Vector< Aws::String > &value)
RecommendationTemplate & WithStatus(const RecommendationTemplateStatus &value)
RecommendationTemplate & WithName(const char *value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
RecommendationTemplate & WithAppArn(Aws::String &&value)
RecommendationTemplate & WithAssessmentArn(const Aws::String &value)
RecommendationTemplate & AddTags(const Aws::String &key, const Aws::String &value)
RecommendationTemplate & AddTags(const char *key, const char *value)
RecommendationTemplate & AddRecommendationIds(const Aws::String &value)
const Aws::Vector< Aws::String > & GetRecommendationIds() const
RecommendationTemplate & WithStatus(RecommendationTemplateStatus &&value)
RecommendationTemplate & WithMessage(const char *value)
AWS_RESILIENCEHUB_API RecommendationTemplate & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< RenderRecommendationType > & GetRecommendationTypes() const
void SetRecommendationIds(Aws::Vector< Aws::String > &&value)
void SetStatus(RecommendationTemplateStatus &&value)
RecommendationTemplate & AddTags(const Aws::String &key, Aws::String &&value)
void SetEndTime(const Aws::Utils::DateTime &value)
RecommendationTemplate & AddTags(Aws::String &&key, Aws::String &&value)
RecommendationTemplate & WithAppArn(const char *value)
void SetRecommendationTypes(Aws::Vector< RenderRecommendationType > &&value)
RecommendationTemplate & WithTemplatesLocation(const S3Location &value)
RecommendationTemplate & WithRecommendationIds(Aws::Vector< Aws::String > &&value)
RecommendationTemplate & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
const RecommendationTemplateStatus & GetStatus() const
RecommendationTemplate & AddRecommendationTypes(const RenderRecommendationType &value)
RecommendationTemplate & WithAppArn(const Aws::String &value)
RecommendationTemplate & WithFormat(TemplateFormat &&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