AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateExperimentTemplateRequest.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/fis/FISRequest.h>
12#include <aws/fis/FIS_EXPORTS.h>
13#include <aws/fis/model/CreateExperimentTemplateActionInput.h>
14#include <aws/fis/model/CreateExperimentTemplateExperimentOptionsInput.h>
15#include <aws/fis/model/CreateExperimentTemplateLogConfigurationInput.h>
16#include <aws/fis/model/CreateExperimentTemplateReportConfigurationInput.h>
17#include <aws/fis/model/CreateExperimentTemplateStopConditionInput.h>
18#include <aws/fis/model/CreateExperimentTemplateTargetInput.h>
19
20#include <utility>
21
22namespace Aws {
23namespace FIS {
24namespace Model {
25
29 public:
30 AWS_FIS_API CreateExperimentTemplateRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateExperimentTemplate"; }
37
38 AWS_FIS_API Aws::String SerializePayload() const override;
39
41
45 inline const Aws::String& GetClientToken() const { return m_clientToken; }
46 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
47 template <typename ClientTokenT = Aws::String>
48 void SetClientToken(ClientTokenT&& value) {
49 m_clientTokenHasBeenSet = true;
50 m_clientToken = std::forward<ClientTokenT>(value);
51 }
52 template <typename ClientTokenT = Aws::String>
54 SetClientToken(std::forward<ClientTokenT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetDescription() const { return m_description; }
64 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
65 template <typename DescriptionT = Aws::String>
66 void SetDescription(DescriptionT&& value) {
67 m_descriptionHasBeenSet = true;
68 m_description = std::forward<DescriptionT>(value);
69 }
70 template <typename DescriptionT = Aws::String>
72 SetDescription(std::forward<DescriptionT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::Vector<CreateExperimentTemplateStopConditionInput>& GetStopConditions() const { return m_stopConditions; }
82 inline bool StopConditionsHasBeenSet() const { return m_stopConditionsHasBeenSet; }
83 template <typename StopConditionsT = Aws::Vector<CreateExperimentTemplateStopConditionInput>>
84 void SetStopConditions(StopConditionsT&& value) {
85 m_stopConditionsHasBeenSet = true;
86 m_stopConditions = std::forward<StopConditionsT>(value);
87 }
88 template <typename StopConditionsT = Aws::Vector<CreateExperimentTemplateStopConditionInput>>
90 SetStopConditions(std::forward<StopConditionsT>(value));
91 return *this;
92 }
93 template <typename StopConditionsT = CreateExperimentTemplateStopConditionInput>
95 m_stopConditionsHasBeenSet = true;
96 m_stopConditions.emplace_back(std::forward<StopConditionsT>(value));
97 return *this;
98 }
100
102
106 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
107 template <typename TargetsT = Aws::Map<Aws::String, CreateExperimentTemplateTargetInput>>
108 void SetTargets(TargetsT&& value) {
109 m_targetsHasBeenSet = true;
110 m_targets = std::forward<TargetsT>(value);
111 }
112 template <typename TargetsT = Aws::Map<Aws::String, CreateExperimentTemplateTargetInput>>
114 SetTargets(std::forward<TargetsT>(value));
115 return *this;
116 }
117 template <typename TargetsKeyT = Aws::String, typename TargetsValueT = CreateExperimentTemplateTargetInput>
118 CreateExperimentTemplateRequest& AddTargets(TargetsKeyT&& key, TargetsValueT&& value) {
119 m_targetsHasBeenSet = true;
120 m_targets.emplace(std::forward<TargetsKeyT>(key), std::forward<TargetsValueT>(value));
121 return *this;
122 }
124
126
130 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
131 template <typename ActionsT = Aws::Map<Aws::String, CreateExperimentTemplateActionInput>>
132 void SetActions(ActionsT&& value) {
133 m_actionsHasBeenSet = true;
134 m_actions = std::forward<ActionsT>(value);
135 }
136 template <typename ActionsT = Aws::Map<Aws::String, CreateExperimentTemplateActionInput>>
138 SetActions(std::forward<ActionsT>(value));
139 return *this;
140 }
141 template <typename ActionsKeyT = Aws::String, typename ActionsValueT = CreateExperimentTemplateActionInput>
142 CreateExperimentTemplateRequest& AddActions(ActionsKeyT&& key, ActionsValueT&& value) {
143 m_actionsHasBeenSet = true;
144 m_actions.emplace(std::forward<ActionsKeyT>(key), std::forward<ActionsValueT>(value));
145 return *this;
146 }
148
150
154 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
155 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
156 template <typename RoleArnT = Aws::String>
157 void SetRoleArn(RoleArnT&& value) {
158 m_roleArnHasBeenSet = true;
159 m_roleArn = std::forward<RoleArnT>(value);
160 }
161 template <typename RoleArnT = Aws::String>
163 SetRoleArn(std::forward<RoleArnT>(value));
164 return *this;
165 }
167
169
172 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
173 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
174 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
175 void SetTags(TagsT&& value) {
176 m_tagsHasBeenSet = true;
177 m_tags = std::forward<TagsT>(value);
178 }
179 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
181 SetTags(std::forward<TagsT>(value));
182 return *this;
183 }
184 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
185 CreateExperimentTemplateRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
186 m_tagsHasBeenSet = true;
187 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
188 return *this;
189 }
191
193
196 inline const CreateExperimentTemplateLogConfigurationInput& GetLogConfiguration() const { return m_logConfiguration; }
197 inline bool LogConfigurationHasBeenSet() const { return m_logConfigurationHasBeenSet; }
198 template <typename LogConfigurationT = CreateExperimentTemplateLogConfigurationInput>
199 void SetLogConfiguration(LogConfigurationT&& value) {
200 m_logConfigurationHasBeenSet = true;
201 m_logConfiguration = std::forward<LogConfigurationT>(value);
202 }
203 template <typename LogConfigurationT = CreateExperimentTemplateLogConfigurationInput>
205 SetLogConfiguration(std::forward<LogConfigurationT>(value));
206 return *this;
207 }
209
211
214 inline const CreateExperimentTemplateExperimentOptionsInput& GetExperimentOptions() const { return m_experimentOptions; }
215 inline bool ExperimentOptionsHasBeenSet() const { return m_experimentOptionsHasBeenSet; }
216 template <typename ExperimentOptionsT = CreateExperimentTemplateExperimentOptionsInput>
217 void SetExperimentOptions(ExperimentOptionsT&& value) {
218 m_experimentOptionsHasBeenSet = true;
219 m_experimentOptions = std::forward<ExperimentOptionsT>(value);
220 }
221 template <typename ExperimentOptionsT = CreateExperimentTemplateExperimentOptionsInput>
223 SetExperimentOptions(std::forward<ExperimentOptionsT>(value));
224 return *this;
225 }
227
229
233 return m_experimentReportConfiguration;
234 }
235 inline bool ExperimentReportConfigurationHasBeenSet() const { return m_experimentReportConfigurationHasBeenSet; }
236 template <typename ExperimentReportConfigurationT = CreateExperimentTemplateReportConfigurationInput>
237 void SetExperimentReportConfiguration(ExperimentReportConfigurationT&& value) {
238 m_experimentReportConfigurationHasBeenSet = true;
239 m_experimentReportConfiguration = std::forward<ExperimentReportConfigurationT>(value);
240 }
241 template <typename ExperimentReportConfigurationT = CreateExperimentTemplateReportConfigurationInput>
243 SetExperimentReportConfiguration(std::forward<ExperimentReportConfigurationT>(value));
244 return *this;
245 }
247 private:
249
250 Aws::String m_description;
251
253
255
257
258 Aws::String m_roleArn;
259
261
262 CreateExperimentTemplateLogConfigurationInput m_logConfiguration;
263
264 CreateExperimentTemplateExperimentOptionsInput m_experimentOptions;
265
266 CreateExperimentTemplateReportConfigurationInput m_experimentReportConfiguration;
267 bool m_clientTokenHasBeenSet = true;
268 bool m_descriptionHasBeenSet = false;
269 bool m_stopConditionsHasBeenSet = false;
270 bool m_targetsHasBeenSet = false;
271 bool m_actionsHasBeenSet = false;
272 bool m_roleArnHasBeenSet = false;
273 bool m_tagsHasBeenSet = false;
274 bool m_logConfigurationHasBeenSet = false;
275 bool m_experimentOptionsHasBeenSet = false;
276 bool m_experimentReportConfigurationHasBeenSet = false;
277};
278
279} // namespace Model
280} // namespace FIS
281} // namespace Aws
const CreateExperimentTemplateExperimentOptionsInput & GetExperimentOptions() const
AWS_FIS_API Aws::String SerializePayload() const override
CreateExperimentTemplateRequest & AddActions(ActionsKeyT &&key, ActionsValueT &&value)
CreateExperimentTemplateRequest & WithLogConfiguration(LogConfigurationT &&value)
CreateExperimentTemplateRequest & WithClientToken(ClientTokenT &&value)
CreateExperimentTemplateRequest & WithTags(TagsT &&value)
CreateExperimentTemplateRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const CreateExperimentTemplateReportConfigurationInput & GetExperimentReportConfiguration() const
const Aws::Map< Aws::String, CreateExperimentTemplateActionInput > & GetActions() const
void SetExperimentReportConfiguration(ExperimentReportConfigurationT &&value)
CreateExperimentTemplateRequest & WithTargets(TargetsT &&value)
CreateExperimentTemplateRequest & AddStopConditions(StopConditionsT &&value)
CreateExperimentTemplateRequest & WithExperimentOptions(ExperimentOptionsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateExperimentTemplateRequest & WithDescription(DescriptionT &&value)
CreateExperimentTemplateRequest & WithActions(ActionsT &&value)
CreateExperimentTemplateRequest & WithExperimentReportConfiguration(ExperimentReportConfigurationT &&value)
const Aws::Map< Aws::String, CreateExperimentTemplateTargetInput > & GetTargets() const
const CreateExperimentTemplateLogConfigurationInput & GetLogConfiguration() const
CreateExperimentTemplateRequest & WithStopConditions(StopConditionsT &&value)
CreateExperimentTemplateRequest & AddTargets(TargetsKeyT &&key, TargetsValueT &&value)
const Aws::Vector< CreateExperimentTemplateStopConditionInput > & GetStopConditions() const
CreateExperimentTemplateRequest & WithRoleArn(RoleArnT &&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