AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UpdateExperimentTemplateRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/fis/FISRequest.h>
11#include <aws/fis/FIS_EXPORTS.h>
12#include <aws/fis/model/UpdateExperimentTemplateActionInputItem.h>
13#include <aws/fis/model/UpdateExperimentTemplateExperimentOptionsInput.h>
14#include <aws/fis/model/UpdateExperimentTemplateLogConfigurationInput.h>
15#include <aws/fis/model/UpdateExperimentTemplateReportConfigurationInput.h>
16#include <aws/fis/model/UpdateExperimentTemplateStopConditionInput.h>
17#include <aws/fis/model/UpdateExperimentTemplateTargetInput.h>
18
19#include <utility>
20
21namespace Aws {
22namespace FIS {
23namespace Model {
24
28 public:
29 AWS_FIS_API UpdateExperimentTemplateRequest() = 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 "UpdateExperimentTemplate"; }
36
37 AWS_FIS_API Aws::String SerializePayload() const override;
38
40
43 inline const Aws::String& GetId() const { return m_id; }
44 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
45 template <typename IdT = Aws::String>
46 void SetId(IdT&& value) {
47 m_idHasBeenSet = true;
48 m_id = std::forward<IdT>(value);
49 }
50 template <typename IdT = Aws::String>
52 SetId(std::forward<IdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetDescription() const { return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
63 template <typename DescriptionT = Aws::String>
64 void SetDescription(DescriptionT&& value) {
65 m_descriptionHasBeenSet = true;
66 m_description = std::forward<DescriptionT>(value);
67 }
68 template <typename DescriptionT = Aws::String>
70 SetDescription(std::forward<DescriptionT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::Vector<UpdateExperimentTemplateStopConditionInput>& GetStopConditions() const { return m_stopConditions; }
80 inline bool StopConditionsHasBeenSet() const { return m_stopConditionsHasBeenSet; }
81 template <typename StopConditionsT = Aws::Vector<UpdateExperimentTemplateStopConditionInput>>
82 void SetStopConditions(StopConditionsT&& value) {
83 m_stopConditionsHasBeenSet = true;
84 m_stopConditions = std::forward<StopConditionsT>(value);
85 }
86 template <typename StopConditionsT = Aws::Vector<UpdateExperimentTemplateStopConditionInput>>
88 SetStopConditions(std::forward<StopConditionsT>(value));
89 return *this;
90 }
91 template <typename StopConditionsT = UpdateExperimentTemplateStopConditionInput>
93 m_stopConditionsHasBeenSet = true;
94 m_stopConditions.emplace_back(std::forward<StopConditionsT>(value));
95 return *this;
96 }
98
100
104 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
105 template <typename TargetsT = Aws::Map<Aws::String, UpdateExperimentTemplateTargetInput>>
106 void SetTargets(TargetsT&& value) {
107 m_targetsHasBeenSet = true;
108 m_targets = std::forward<TargetsT>(value);
109 }
110 template <typename TargetsT = Aws::Map<Aws::String, UpdateExperimentTemplateTargetInput>>
112 SetTargets(std::forward<TargetsT>(value));
113 return *this;
114 }
115 template <typename TargetsKeyT = Aws::String, typename TargetsValueT = UpdateExperimentTemplateTargetInput>
116 UpdateExperimentTemplateRequest& AddTargets(TargetsKeyT&& key, TargetsValueT&& value) {
117 m_targetsHasBeenSet = true;
118 m_targets.emplace(std::forward<TargetsKeyT>(key), std::forward<TargetsValueT>(value));
119 return *this;
120 }
122
124
128 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
129 template <typename ActionsT = Aws::Map<Aws::String, UpdateExperimentTemplateActionInputItem>>
130 void SetActions(ActionsT&& value) {
131 m_actionsHasBeenSet = true;
132 m_actions = std::forward<ActionsT>(value);
133 }
134 template <typename ActionsT = Aws::Map<Aws::String, UpdateExperimentTemplateActionInputItem>>
136 SetActions(std::forward<ActionsT>(value));
137 return *this;
138 }
139 template <typename ActionsKeyT = Aws::String, typename ActionsValueT = UpdateExperimentTemplateActionInputItem>
140 UpdateExperimentTemplateRequest& AddActions(ActionsKeyT&& key, ActionsValueT&& value) {
141 m_actionsHasBeenSet = true;
142 m_actions.emplace(std::forward<ActionsKeyT>(key), std::forward<ActionsValueT>(value));
143 return *this;
144 }
146
148
152 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
153 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
154 template <typename RoleArnT = Aws::String>
155 void SetRoleArn(RoleArnT&& value) {
156 m_roleArnHasBeenSet = true;
157 m_roleArn = std::forward<RoleArnT>(value);
158 }
159 template <typename RoleArnT = Aws::String>
161 SetRoleArn(std::forward<RoleArnT>(value));
162 return *this;
163 }
165
167
170 inline const UpdateExperimentTemplateLogConfigurationInput& GetLogConfiguration() const { return m_logConfiguration; }
171 inline bool LogConfigurationHasBeenSet() const { return m_logConfigurationHasBeenSet; }
172 template <typename LogConfigurationT = UpdateExperimentTemplateLogConfigurationInput>
173 void SetLogConfiguration(LogConfigurationT&& value) {
174 m_logConfigurationHasBeenSet = true;
175 m_logConfiguration = std::forward<LogConfigurationT>(value);
176 }
177 template <typename LogConfigurationT = UpdateExperimentTemplateLogConfigurationInput>
179 SetLogConfiguration(std::forward<LogConfigurationT>(value));
180 return *this;
181 }
183
185
188 inline const UpdateExperimentTemplateExperimentOptionsInput& GetExperimentOptions() const { return m_experimentOptions; }
189 inline bool ExperimentOptionsHasBeenSet() const { return m_experimentOptionsHasBeenSet; }
190 template <typename ExperimentOptionsT = UpdateExperimentTemplateExperimentOptionsInput>
191 void SetExperimentOptions(ExperimentOptionsT&& value) {
192 m_experimentOptionsHasBeenSet = true;
193 m_experimentOptions = std::forward<ExperimentOptionsT>(value);
194 }
195 template <typename ExperimentOptionsT = UpdateExperimentTemplateExperimentOptionsInput>
197 SetExperimentOptions(std::forward<ExperimentOptionsT>(value));
198 return *this;
199 }
201
203
207 return m_experimentReportConfiguration;
208 }
209 inline bool ExperimentReportConfigurationHasBeenSet() const { return m_experimentReportConfigurationHasBeenSet; }
210 template <typename ExperimentReportConfigurationT = UpdateExperimentTemplateReportConfigurationInput>
211 void SetExperimentReportConfiguration(ExperimentReportConfigurationT&& value) {
212 m_experimentReportConfigurationHasBeenSet = true;
213 m_experimentReportConfiguration = std::forward<ExperimentReportConfigurationT>(value);
214 }
215 template <typename ExperimentReportConfigurationT = UpdateExperimentTemplateReportConfigurationInput>
217 SetExperimentReportConfiguration(std::forward<ExperimentReportConfigurationT>(value));
218 return *this;
219 }
221 private:
222 Aws::String m_id;
223
224 Aws::String m_description;
225
227
229
231
232 Aws::String m_roleArn;
233
235
237
238 UpdateExperimentTemplateReportConfigurationInput m_experimentReportConfiguration;
239 bool m_idHasBeenSet = false;
240 bool m_descriptionHasBeenSet = false;
241 bool m_stopConditionsHasBeenSet = false;
242 bool m_targetsHasBeenSet = false;
243 bool m_actionsHasBeenSet = false;
244 bool m_roleArnHasBeenSet = false;
245 bool m_logConfigurationHasBeenSet = false;
246 bool m_experimentOptionsHasBeenSet = false;
247 bool m_experimentReportConfigurationHasBeenSet = false;
248};
249
250} // namespace Model
251} // namespace FIS
252} // namespace Aws
void SetExperimentReportConfiguration(ExperimentReportConfigurationT &&value)
UpdateExperimentTemplateRequest & AddActions(ActionsKeyT &&key, ActionsValueT &&value)
const Aws::Map< Aws::String, UpdateExperimentTemplateActionInputItem > & GetActions() const
const UpdateExperimentTemplateLogConfigurationInput & GetLogConfiguration() const
const Aws::Map< Aws::String, UpdateExperimentTemplateTargetInput > & GetTargets() const
AWS_FIS_API Aws::String SerializePayload() const override
UpdateExperimentTemplateRequest & WithExperimentOptions(ExperimentOptionsT &&value)
UpdateExperimentTemplateRequest & WithLogConfiguration(LogConfigurationT &&value)
const UpdateExperimentTemplateReportConfigurationInput & GetExperimentReportConfiguration() const
UpdateExperimentTemplateRequest & WithStopConditions(StopConditionsT &&value)
UpdateExperimentTemplateRequest & WithId(IdT &&value)
const Aws::Vector< UpdateExperimentTemplateStopConditionInput > & GetStopConditions() const
UpdateExperimentTemplateRequest & WithActions(ActionsT &&value)
UpdateExperimentTemplateRequest & WithRoleArn(RoleArnT &&value)
UpdateExperimentTemplateRequest & WithDescription(DescriptionT &&value)
UpdateExperimentTemplateRequest & AddStopConditions(StopConditionsT &&value)
UpdateExperimentTemplateRequest & WithTargets(TargetsT &&value)
const UpdateExperimentTemplateExperimentOptionsInput & GetExperimentOptions() const
UpdateExperimentTemplateRequest & WithExperimentReportConfiguration(ExperimentReportConfigurationT &&value)
UpdateExperimentTemplateRequest & AddTargets(TargetsKeyT &&key, TargetsValueT &&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