AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename AppArnT = Aws::String>
61 void SetAppArn(AppArnT&& value) { m_appArnHasBeenSet = true; m_appArn = std::forward<AppArnT>(value); }
62 template<typename AppArnT = Aws::String>
63 RecommendationTemplate& WithAppArn(AppArnT&& value) { SetAppArn(std::forward<AppArnT>(value)); return *this;}
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) { m_assessmentArnHasBeenSet = true; m_assessmentArn = std::forward<AssessmentArnT>(value); }
79 template<typename AssessmentArnT = Aws::String>
80 RecommendationTemplate& WithAssessmentArn(AssessmentArnT&& value) { SetAssessmentArn(std::forward<AssessmentArnT>(value)); return *this;}
82
84
87 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
88 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
89 template<typename EndTimeT = Aws::Utils::DateTime>
90 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
91 template<typename EndTimeT = Aws::Utils::DateTime>
92 RecommendationTemplate& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
94
96
101 inline TemplateFormat GetFormat() const { return m_format; }
102 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
103 inline void SetFormat(TemplateFormat value) { m_formatHasBeenSet = true; m_format = value; }
104 inline RecommendationTemplate& WithFormat(TemplateFormat value) { SetFormat(value); return *this;}
106
108
111 inline const Aws::String& GetMessage() const { return m_message; }
112 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
113 template<typename MessageT = Aws::String>
114 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
115 template<typename MessageT = Aws::String>
116 RecommendationTemplate& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
118
120
123 inline const Aws::String& GetName() const { return m_name; }
124 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
125 template<typename NameT = Aws::String>
126 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
127 template<typename NameT = Aws::String>
128 RecommendationTemplate& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
130
132
135 inline bool GetNeedsReplacements() const { return m_needsReplacements; }
136 inline bool NeedsReplacementsHasBeenSet() const { return m_needsReplacementsHasBeenSet; }
137 inline void SetNeedsReplacements(bool value) { m_needsReplacementsHasBeenSet = true; m_needsReplacements = value; }
138 inline RecommendationTemplate& WithNeedsReplacements(bool value) { SetNeedsReplacements(value); return *this;}
140
142
145 inline const Aws::Vector<Aws::String>& GetRecommendationIds() const { return m_recommendationIds; }
146 inline bool RecommendationIdsHasBeenSet() const { return m_recommendationIdsHasBeenSet; }
147 template<typename RecommendationIdsT = Aws::Vector<Aws::String>>
148 void SetRecommendationIds(RecommendationIdsT&& value) { m_recommendationIdsHasBeenSet = true; m_recommendationIds = std::forward<RecommendationIdsT>(value); }
149 template<typename RecommendationIdsT = Aws::Vector<Aws::String>>
150 RecommendationTemplate& WithRecommendationIds(RecommendationIdsT&& value) { SetRecommendationIds(std::forward<RecommendationIdsT>(value)); return *this;}
151 template<typename RecommendationIdsT = Aws::String>
152 RecommendationTemplate& AddRecommendationIds(RecommendationIdsT&& value) { m_recommendationIdsHasBeenSet = true; m_recommendationIds.emplace_back(std::forward<RecommendationIdsT>(value)); return *this; }
154
156
159 inline const Aws::String& GetRecommendationTemplateArn() const { return m_recommendationTemplateArn; }
160 inline bool RecommendationTemplateArnHasBeenSet() const { return m_recommendationTemplateArnHasBeenSet; }
161 template<typename RecommendationTemplateArnT = Aws::String>
162 void SetRecommendationTemplateArn(RecommendationTemplateArnT&& value) { m_recommendationTemplateArnHasBeenSet = true; m_recommendationTemplateArn = std::forward<RecommendationTemplateArnT>(value); }
163 template<typename RecommendationTemplateArnT = Aws::String>
164 RecommendationTemplate& WithRecommendationTemplateArn(RecommendationTemplateArnT&& value) { SetRecommendationTemplateArn(std::forward<RecommendationTemplateArnT>(value)); return *this;}
166
168
175 inline const Aws::Vector<RenderRecommendationType>& GetRecommendationTypes() const { return m_recommendationTypes; }
176 inline bool RecommendationTypesHasBeenSet() const { return m_recommendationTypesHasBeenSet; }
177 template<typename RecommendationTypesT = Aws::Vector<RenderRecommendationType>>
178 void SetRecommendationTypes(RecommendationTypesT&& value) { m_recommendationTypesHasBeenSet = true; m_recommendationTypes = std::forward<RecommendationTypesT>(value); }
179 template<typename RecommendationTypesT = Aws::Vector<RenderRecommendationType>>
180 RecommendationTemplate& WithRecommendationTypes(RecommendationTypesT&& value) { SetRecommendationTypes(std::forward<RecommendationTypesT>(value)); return *this;}
181 inline RecommendationTemplate& AddRecommendationTypes(RenderRecommendationType value) { m_recommendationTypesHasBeenSet = true; m_recommendationTypes.push_back(value); return *this; }
183
185
188 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
189 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
190 template<typename StartTimeT = Aws::Utils::DateTime>
191 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
192 template<typename StartTimeT = Aws::Utils::DateTime>
193 RecommendationTemplate& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
195
197
200 inline RecommendationTemplateStatus GetStatus() const { return m_status; }
201 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
202 inline void SetStatus(RecommendationTemplateStatus value) { m_statusHasBeenSet = true; m_status = value; }
205
207
211 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
212 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
213 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
214 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
215 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
216 RecommendationTemplate& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
217 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
218 RecommendationTemplate& AddTags(TagsKeyT&& key, TagsValueT&& value) {
219 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
220 }
222
224
227 inline const S3Location& GetTemplatesLocation() const { return m_templatesLocation; }
228 inline bool TemplatesLocationHasBeenSet() const { return m_templatesLocationHasBeenSet; }
229 template<typename TemplatesLocationT = S3Location>
230 void SetTemplatesLocation(TemplatesLocationT&& value) { m_templatesLocationHasBeenSet = true; m_templatesLocation = std::forward<TemplatesLocationT>(value); }
231 template<typename TemplatesLocationT = S3Location>
232 RecommendationTemplate& WithTemplatesLocation(TemplatesLocationT&& value) { SetTemplatesLocation(std::forward<TemplatesLocationT>(value)); return *this;}
234 private:
235
236 Aws::String m_appArn;
237 bool m_appArnHasBeenSet = false;
238
239 Aws::String m_assessmentArn;
240 bool m_assessmentArnHasBeenSet = false;
241
242 Aws::Utils::DateTime m_endTime{};
243 bool m_endTimeHasBeenSet = false;
244
246 bool m_formatHasBeenSet = false;
247
248 Aws::String m_message;
249 bool m_messageHasBeenSet = false;
250
251 Aws::String m_name;
252 bool m_nameHasBeenSet = false;
253
254 bool m_needsReplacements{false};
255 bool m_needsReplacementsHasBeenSet = false;
256
257 Aws::Vector<Aws::String> m_recommendationIds;
258 bool m_recommendationIdsHasBeenSet = false;
259
260 Aws::String m_recommendationTemplateArn;
261 bool m_recommendationTemplateArnHasBeenSet = false;
262
263 Aws::Vector<RenderRecommendationType> m_recommendationTypes;
264 bool m_recommendationTypesHasBeenSet = false;
265
266 Aws::Utils::DateTime m_startTime{};
267 bool m_startTimeHasBeenSet = false;
268
270 bool m_statusHasBeenSet = false;
271
273 bool m_tagsHasBeenSet = false;
274
275 S3Location m_templatesLocation;
276 bool m_templatesLocationHasBeenSet = false;
277 };
278
279} // namespace Model
280} // namespace ResilienceHub
281} // 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