AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateRecommendationTemplateRequest.h
1
6#pragma once
7#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
8#include <aws/resiliencehub/ResilienceHubRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/resiliencehub/model/TemplateFormat.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/resiliencehub/model/RenderRecommendationType.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace ResilienceHub
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_RESILIENCEHUB_API CreateRecommendationTemplateRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateRecommendationTemplate"; }
36
37 AWS_RESILIENCEHUB_API Aws::String SerializePayload() const override;
38
39
41
49 inline const Aws::String& GetAssessmentArn() const{ return m_assessmentArn; }
50 inline bool AssessmentArnHasBeenSet() const { return m_assessmentArnHasBeenSet; }
51 inline void SetAssessmentArn(const Aws::String& value) { m_assessmentArnHasBeenSet = true; m_assessmentArn = value; }
52 inline void SetAssessmentArn(Aws::String&& value) { m_assessmentArnHasBeenSet = true; m_assessmentArn = std::move(value); }
53 inline void SetAssessmentArn(const char* value) { m_assessmentArnHasBeenSet = true; m_assessmentArn.assign(value); }
55 inline CreateRecommendationTemplateRequest& WithAssessmentArn(Aws::String&& value) { SetAssessmentArn(std::move(value)); return *this;}
56 inline CreateRecommendationTemplateRequest& WithAssessmentArn(const char* value) { SetAssessmentArn(value); return *this;}
58
60
64 inline const Aws::String& GetBucketName() const{ return m_bucketName; }
65 inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
66 inline void SetBucketName(const Aws::String& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; }
67 inline void SetBucketName(Aws::String&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::move(value); }
68 inline void SetBucketName(const char* value) { m_bucketNameHasBeenSet = true; m_bucketName.assign(value); }
69 inline CreateRecommendationTemplateRequest& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;}
70 inline CreateRecommendationTemplateRequest& WithBucketName(Aws::String&& value) { SetBucketName(std::move(value)); return *this;}
71 inline CreateRecommendationTemplateRequest& WithBucketName(const char* value) { SetBucketName(value); return *this;}
73
75
80 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
81 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
82 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
83 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
84 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
86 inline CreateRecommendationTemplateRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
87 inline CreateRecommendationTemplateRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
89
91
96 inline const TemplateFormat& GetFormat() const{ return m_format; }
97 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
98 inline void SetFormat(const TemplateFormat& value) { m_formatHasBeenSet = true; m_format = value; }
99 inline void SetFormat(TemplateFormat&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
100 inline CreateRecommendationTemplateRequest& WithFormat(const TemplateFormat& value) { SetFormat(value); return *this;}
101 inline CreateRecommendationTemplateRequest& WithFormat(TemplateFormat&& value) { SetFormat(std::move(value)); return *this;}
103
105
108 inline const Aws::String& GetName() const{ return m_name; }
109 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
110 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
111 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
112 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
113 inline CreateRecommendationTemplateRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
114 inline CreateRecommendationTemplateRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
115 inline CreateRecommendationTemplateRequest& WithName(const char* value) { SetName(value); return *this;}
117
119
123 inline const Aws::Vector<Aws::String>& GetRecommendationIds() const{ return m_recommendationIds; }
124 inline bool RecommendationIdsHasBeenSet() const { return m_recommendationIdsHasBeenSet; }
125 inline void SetRecommendationIds(const Aws::Vector<Aws::String>& value) { m_recommendationIdsHasBeenSet = true; m_recommendationIds = value; }
126 inline void SetRecommendationIds(Aws::Vector<Aws::String>&& value) { m_recommendationIdsHasBeenSet = true; m_recommendationIds = std::move(value); }
129 inline CreateRecommendationTemplateRequest& AddRecommendationIds(const Aws::String& value) { m_recommendationIdsHasBeenSet = true; m_recommendationIds.push_back(value); return *this; }
130 inline CreateRecommendationTemplateRequest& AddRecommendationIds(Aws::String&& value) { m_recommendationIdsHasBeenSet = true; m_recommendationIds.push_back(std::move(value)); return *this; }
131 inline CreateRecommendationTemplateRequest& AddRecommendationIds(const char* value) { m_recommendationIdsHasBeenSet = true; m_recommendationIds.push_back(value); return *this; }
133
135
142 inline const Aws::Vector<RenderRecommendationType>& GetRecommendationTypes() const{ return m_recommendationTypes; }
143 inline bool RecommendationTypesHasBeenSet() const { return m_recommendationTypesHasBeenSet; }
144 inline void SetRecommendationTypes(const Aws::Vector<RenderRecommendationType>& value) { m_recommendationTypesHasBeenSet = true; m_recommendationTypes = value; }
145 inline void SetRecommendationTypes(Aws::Vector<RenderRecommendationType>&& value) { m_recommendationTypesHasBeenSet = true; m_recommendationTypes = std::move(value); }
148 inline CreateRecommendationTemplateRequest& AddRecommendationTypes(const RenderRecommendationType& value) { m_recommendationTypesHasBeenSet = true; m_recommendationTypes.push_back(value); return *this; }
149 inline CreateRecommendationTemplateRequest& AddRecommendationTypes(RenderRecommendationType&& value) { m_recommendationTypesHasBeenSet = true; m_recommendationTypes.push_back(std::move(value)); return *this; }
151
153
157 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
158 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
159 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
160 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
163 inline CreateRecommendationTemplateRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
164 inline CreateRecommendationTemplateRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
165 inline CreateRecommendationTemplateRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
166 inline CreateRecommendationTemplateRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
167 inline CreateRecommendationTemplateRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
168 inline CreateRecommendationTemplateRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
169 inline CreateRecommendationTemplateRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
171 private:
172
173 Aws::String m_assessmentArn;
174 bool m_assessmentArnHasBeenSet = false;
175
176 Aws::String m_bucketName;
177 bool m_bucketNameHasBeenSet = false;
178
179 Aws::String m_clientToken;
180 bool m_clientTokenHasBeenSet = false;
181
182 TemplateFormat m_format;
183 bool m_formatHasBeenSet = false;
184
185 Aws::String m_name;
186 bool m_nameHasBeenSet = false;
187
188 Aws::Vector<Aws::String> m_recommendationIds;
189 bool m_recommendationIdsHasBeenSet = false;
190
191 Aws::Vector<RenderRecommendationType> m_recommendationTypes;
192 bool m_recommendationTypesHasBeenSet = false;
193
195 bool m_tagsHasBeenSet = false;
196 };
197
198} // namespace Model
199} // namespace ResilienceHub
200} // namespace Aws
CreateRecommendationTemplateRequest & AddRecommendationTypes(const RenderRecommendationType &value)
CreateRecommendationTemplateRequest & AddTags(Aws::String &&key, const char *value)
CreateRecommendationTemplateRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateRecommendationTemplateRequest & WithAssessmentArn(const char *value)
CreateRecommendationTemplateRequest & WithRecommendationTypes(const Aws::Vector< RenderRecommendationType > &value)
CreateRecommendationTemplateRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateRecommendationTemplateRequest & WithClientToken(Aws::String &&value)
CreateRecommendationTemplateRequest & WithBucketName(const char *value)
CreateRecommendationTemplateRequest & WithName(Aws::String &&value)
CreateRecommendationTemplateRequest & AddRecommendationIds(const char *value)
AWS_RESILIENCEHUB_API Aws::String SerializePayload() const override
CreateRecommendationTemplateRequest & AddRecommendationIds(Aws::String &&value)
CreateRecommendationTemplateRequest & WithFormat(TemplateFormat &&value)
CreateRecommendationTemplateRequest & AddRecommendationTypes(RenderRecommendationType &&value)
CreateRecommendationTemplateRequest & AddTags(const char *key, Aws::String &&value)
CreateRecommendationTemplateRequest & WithRecommendationIds(const Aws::Vector< Aws::String > &value)
void SetRecommendationTypes(Aws::Vector< RenderRecommendationType > &&value)
const Aws::Vector< RenderRecommendationType > & GetRecommendationTypes() const
CreateRecommendationTemplateRequest & WithName(const char *value)
CreateRecommendationTemplateRequest & WithBucketName(const Aws::String &value)
CreateRecommendationTemplateRequest & AddRecommendationIds(const Aws::String &value)
void SetRecommendationTypes(const Aws::Vector< RenderRecommendationType > &value)
CreateRecommendationTemplateRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateRecommendationTemplateRequest & WithClientToken(const Aws::String &value)
CreateRecommendationTemplateRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateRecommendationTemplateRequest & WithAssessmentArn(const Aws::String &value)
CreateRecommendationTemplateRequest & WithName(const Aws::String &value)
CreateRecommendationTemplateRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateRecommendationTemplateRequest & AddTags(const char *key, const char *value)
CreateRecommendationTemplateRequest & WithAssessmentArn(Aws::String &&value)
CreateRecommendationTemplateRequest & WithFormat(const TemplateFormat &value)
CreateRecommendationTemplateRequest & WithBucketName(Aws::String &&value)
CreateRecommendationTemplateRequest & WithRecommendationTypes(Aws::Vector< RenderRecommendationType > &&value)
CreateRecommendationTemplateRequest & WithRecommendationIds(Aws::Vector< Aws::String > &&value)
CreateRecommendationTemplateRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateRecommendationTemplateRequest & WithClientToken(const char *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