AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename AssessmentArnT = Aws::String>
52 void SetAssessmentArn(AssessmentArnT&& value) { m_assessmentArnHasBeenSet = true; m_assessmentArn = std::forward<AssessmentArnT>(value); }
53 template<typename AssessmentArnT = Aws::String>
54 CreateRecommendationTemplateRequest& WithAssessmentArn(AssessmentArnT&& value) { SetAssessmentArn(std::forward<AssessmentArnT>(value)); return *this;}
56
58
62 inline const Aws::String& GetBucketName() const { return m_bucketName; }
63 inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
64 template<typename BucketNameT = Aws::String>
65 void SetBucketName(BucketNameT&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::forward<BucketNameT>(value); }
66 template<typename BucketNameT = Aws::String>
67 CreateRecommendationTemplateRequest& WithBucketName(BucketNameT&& value) { SetBucketName(std::forward<BucketNameT>(value)); return *this;}
69
71
76 inline const Aws::String& GetClientToken() const { return m_clientToken; }
77 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
78 template<typename ClientTokenT = Aws::String>
79 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
80 template<typename ClientTokenT = Aws::String>
81 CreateRecommendationTemplateRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
83
85
90 inline TemplateFormat GetFormat() const { return m_format; }
91 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
92 inline void SetFormat(TemplateFormat value) { m_formatHasBeenSet = true; m_format = value; }
95
97
100 inline const Aws::String& GetName() const { return m_name; }
101 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
102 template<typename NameT = Aws::String>
103 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
104 template<typename NameT = Aws::String>
105 CreateRecommendationTemplateRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
107
109
113 inline const Aws::Vector<Aws::String>& GetRecommendationIds() const { return m_recommendationIds; }
114 inline bool RecommendationIdsHasBeenSet() const { return m_recommendationIdsHasBeenSet; }
115 template<typename RecommendationIdsT = Aws::Vector<Aws::String>>
116 void SetRecommendationIds(RecommendationIdsT&& value) { m_recommendationIdsHasBeenSet = true; m_recommendationIds = std::forward<RecommendationIdsT>(value); }
117 template<typename RecommendationIdsT = Aws::Vector<Aws::String>>
118 CreateRecommendationTemplateRequest& WithRecommendationIds(RecommendationIdsT&& value) { SetRecommendationIds(std::forward<RecommendationIdsT>(value)); return *this;}
119 template<typename RecommendationIdsT = Aws::String>
120 CreateRecommendationTemplateRequest& AddRecommendationIds(RecommendationIdsT&& value) { m_recommendationIdsHasBeenSet = true; m_recommendationIds.emplace_back(std::forward<RecommendationIdsT>(value)); return *this; }
122
124
131 inline const Aws::Vector<RenderRecommendationType>& GetRecommendationTypes() const { return m_recommendationTypes; }
132 inline bool RecommendationTypesHasBeenSet() const { return m_recommendationTypesHasBeenSet; }
133 template<typename RecommendationTypesT = Aws::Vector<RenderRecommendationType>>
134 void SetRecommendationTypes(RecommendationTypesT&& value) { m_recommendationTypesHasBeenSet = true; m_recommendationTypes = std::forward<RecommendationTypesT>(value); }
135 template<typename RecommendationTypesT = Aws::Vector<RenderRecommendationType>>
136 CreateRecommendationTemplateRequest& WithRecommendationTypes(RecommendationTypesT&& value) { SetRecommendationTypes(std::forward<RecommendationTypesT>(value)); return *this;}
137 inline CreateRecommendationTemplateRequest& AddRecommendationTypes(RenderRecommendationType value) { m_recommendationTypesHasBeenSet = true; m_recommendationTypes.push_back(value); return *this; }
139
141
145 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
146 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
147 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
148 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
149 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
150 CreateRecommendationTemplateRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
151 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
152 CreateRecommendationTemplateRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
153 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
154 }
156 private:
157
158 Aws::String m_assessmentArn;
159 bool m_assessmentArnHasBeenSet = false;
160
161 Aws::String m_bucketName;
162 bool m_bucketNameHasBeenSet = false;
163
165 bool m_clientTokenHasBeenSet = true;
166
168 bool m_formatHasBeenSet = false;
169
170 Aws::String m_name;
171 bool m_nameHasBeenSet = false;
172
173 Aws::Vector<Aws::String> m_recommendationIds;
174 bool m_recommendationIdsHasBeenSet = false;
175
176 Aws::Vector<RenderRecommendationType> m_recommendationTypes;
177 bool m_recommendationTypesHasBeenSet = false;
178
180 bool m_tagsHasBeenSet = false;
181 };
182
183} // namespace Model
184} // namespace ResilienceHub
185} // 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