AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
CreateRecommendationTemplateRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.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/ResilienceHubRequest.h>
12#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
13#include <aws/resiliencehub/model/RenderRecommendationType.h>
14#include <aws/resiliencehub/model/TemplateFormat.h>
15
16#include <utility>
17
18namespace Aws {
19namespace ResilienceHub {
20namespace Model {
21
25 public:
26 AWS_RESILIENCEHUB_API CreateRecommendationTemplateRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateRecommendationTemplate"; }
33
34 AWS_RESILIENCEHUB_API Aws::String SerializePayload() const override;
35
37
45 inline const Aws::String& GetAssessmentArn() const { return m_assessmentArn; }
46 inline bool AssessmentArnHasBeenSet() const { return m_assessmentArnHasBeenSet; }
47 template <typename AssessmentArnT = Aws::String>
48 void SetAssessmentArn(AssessmentArnT&& value) {
49 m_assessmentArnHasBeenSet = true;
50 m_assessmentArn = std::forward<AssessmentArnT>(value);
51 }
52 template <typename AssessmentArnT = Aws::String>
54 SetAssessmentArn(std::forward<AssessmentArnT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::String& GetBucketName() const { return m_bucketName; }
65 inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
66 template <typename BucketNameT = Aws::String>
67 void SetBucketName(BucketNameT&& value) {
68 m_bucketNameHasBeenSet = true;
69 m_bucketName = std::forward<BucketNameT>(value);
70 }
71 template <typename BucketNameT = Aws::String>
73 SetBucketName(std::forward<BucketNameT>(value));
74 return *this;
75 }
77
79
84 inline const Aws::String& GetClientToken() const { return m_clientToken; }
85 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
86 template <typename ClientTokenT = Aws::String>
87 void SetClientToken(ClientTokenT&& value) {
88 m_clientTokenHasBeenSet = true;
89 m_clientToken = std::forward<ClientTokenT>(value);
90 }
91 template <typename ClientTokenT = Aws::String>
93 SetClientToken(std::forward<ClientTokenT>(value));
94 return *this;
95 }
97
99
104 inline TemplateFormat GetFormat() const { return m_format; }
105 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
106 inline void SetFormat(TemplateFormat value) {
107 m_formatHasBeenSet = true;
108 m_format = value;
109 }
111 SetFormat(value);
112 return *this;
113 }
115
117
120 inline const Aws::String& GetName() const { return m_name; }
121 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
122 template <typename NameT = Aws::String>
123 void SetName(NameT&& value) {
124 m_nameHasBeenSet = true;
125 m_name = std::forward<NameT>(value);
126 }
127 template <typename NameT = Aws::String>
129 SetName(std::forward<NameT>(value));
130 return *this;
131 }
133
135
139 inline const Aws::Vector<Aws::String>& GetRecommendationIds() const { return m_recommendationIds; }
140 inline bool RecommendationIdsHasBeenSet() const { return m_recommendationIdsHasBeenSet; }
141 template <typename RecommendationIdsT = Aws::Vector<Aws::String>>
142 void SetRecommendationIds(RecommendationIdsT&& value) {
143 m_recommendationIdsHasBeenSet = true;
144 m_recommendationIds = std::forward<RecommendationIdsT>(value);
145 }
146 template <typename RecommendationIdsT = Aws::Vector<Aws::String>>
148 SetRecommendationIds(std::forward<RecommendationIdsT>(value));
149 return *this;
150 }
151 template <typename RecommendationIdsT = Aws::String>
153 m_recommendationIdsHasBeenSet = true;
154 m_recommendationIds.emplace_back(std::forward<RecommendationIdsT>(value));
155 return *this;
156 }
158
160
167 inline const Aws::Vector<RenderRecommendationType>& GetRecommendationTypes() const { return m_recommendationTypes; }
168 inline bool RecommendationTypesHasBeenSet() const { return m_recommendationTypesHasBeenSet; }
169 template <typename RecommendationTypesT = Aws::Vector<RenderRecommendationType>>
170 void SetRecommendationTypes(RecommendationTypesT&& value) {
171 m_recommendationTypesHasBeenSet = true;
172 m_recommendationTypes = std::forward<RecommendationTypesT>(value);
173 }
174 template <typename RecommendationTypesT = Aws::Vector<RenderRecommendationType>>
176 SetRecommendationTypes(std::forward<RecommendationTypesT>(value));
177 return *this;
178 }
180 m_recommendationTypesHasBeenSet = true;
181 m_recommendationTypes.push_back(value);
182 return *this;
183 }
185
187
191 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
192 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
193 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
194 void SetTags(TagsT&& value) {
195 m_tagsHasBeenSet = true;
196 m_tags = std::forward<TagsT>(value);
197 }
198 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
200 SetTags(std::forward<TagsT>(value));
201 return *this;
202 }
203 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
204 CreateRecommendationTemplateRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
205 m_tagsHasBeenSet = true;
206 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
207 return *this;
208 }
210 private:
211 Aws::String m_assessmentArn;
212 bool m_assessmentArnHasBeenSet = false;
213
214 Aws::String m_bucketName;
215 bool m_bucketNameHasBeenSet = false;
216
218 bool m_clientTokenHasBeenSet = true;
219
221 bool m_formatHasBeenSet = false;
222
223 Aws::String m_name;
224 bool m_nameHasBeenSet = false;
225
226 Aws::Vector<Aws::String> m_recommendationIds;
227 bool m_recommendationIdsHasBeenSet = false;
228
229 Aws::Vector<RenderRecommendationType> m_recommendationTypes;
230 bool m_recommendationTypesHasBeenSet = false;
231
233 bool m_tagsHasBeenSet = false;
234};
235
236} // namespace Model
237} // namespace ResilienceHub
238} // namespace Aws
CreateRecommendationTemplateRequest & WithBucketName(BucketNameT &&value)
CreateRecommendationTemplateRequest & AddRecommendationTypes(RenderRecommendationType value)
CreateRecommendationTemplateRequest & WithRecommendationIds(RecommendationIdsT &&value)
AWS_RESILIENCEHUB_API Aws::String SerializePayload() const override
CreateRecommendationTemplateRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Vector< RenderRecommendationType > & GetRecommendationTypes() const
CreateRecommendationTemplateRequest & WithFormat(TemplateFormat value)
AWS_RESILIENCEHUB_API CreateRecommendationTemplateRequest()=default
CreateRecommendationTemplateRequest & WithClientToken(ClientTokenT &&value)
CreateRecommendationTemplateRequest & AddRecommendationIds(RecommendationIdsT &&value)
CreateRecommendationTemplateRequest & WithRecommendationTypes(RecommendationTypesT &&value)
CreateRecommendationTemplateRequest & WithAssessmentArn(AssessmentArnT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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