AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateExperimentTemplateRequest.h
1
6#pragma once
7#include <aws/fis/FIS_EXPORTS.h>
8#include <aws/fis/FISRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/fis/model/CreateExperimentTemplateLogConfigurationInput.h>
13#include <aws/fis/model/CreateExperimentTemplateExperimentOptionsInput.h>
14#include <aws/fis/model/CreateExperimentTemplateReportConfigurationInput.h>
15#include <aws/fis/model/CreateExperimentTemplateStopConditionInput.h>
16#include <aws/fis/model/CreateExperimentTemplateTargetInput.h>
17#include <aws/fis/model/CreateExperimentTemplateActionInput.h>
18#include <utility>
19#include <aws/core/utils/UUID.h>
20
21namespace Aws
22{
23namespace FIS
24{
25namespace Model
26{
27
31 {
32 public:
33 AWS_FIS_API CreateExperimentTemplateRequest() = default;
34
35 // Service request name is the Operation name which will send this request out,
36 // each operation should has unique request name, so that we can get operation's name from this request.
37 // Note: this is not true for response, multiple operations may have the same response name,
38 // so we can not get operation's name from response.
39 inline virtual const char* GetServiceRequestName() const override { return "CreateExperimentTemplate"; }
40
41 AWS_FIS_API Aws::String SerializePayload() const override;
42
43
45
49 inline const Aws::String& GetClientToken() const { return m_clientToken; }
50 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
51 template<typename ClientTokenT = Aws::String>
52 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
53 template<typename ClientTokenT = Aws::String>
54 CreateExperimentTemplateRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
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) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
65 template<typename DescriptionT = Aws::String>
66 CreateExperimentTemplateRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
68
70
73 inline const Aws::Vector<CreateExperimentTemplateStopConditionInput>& GetStopConditions() const { return m_stopConditions; }
74 inline bool StopConditionsHasBeenSet() const { return m_stopConditionsHasBeenSet; }
75 template<typename StopConditionsT = Aws::Vector<CreateExperimentTemplateStopConditionInput>>
76 void SetStopConditions(StopConditionsT&& value) { m_stopConditionsHasBeenSet = true; m_stopConditions = std::forward<StopConditionsT>(value); }
77 template<typename StopConditionsT = Aws::Vector<CreateExperimentTemplateStopConditionInput>>
78 CreateExperimentTemplateRequest& WithStopConditions(StopConditionsT&& value) { SetStopConditions(std::forward<StopConditionsT>(value)); return *this;}
79 template<typename StopConditionsT = CreateExperimentTemplateStopConditionInput>
80 CreateExperimentTemplateRequest& AddStopConditions(StopConditionsT&& value) { m_stopConditionsHasBeenSet = true; m_stopConditions.emplace_back(std::forward<StopConditionsT>(value)); return *this; }
82
84
88 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
89 template<typename TargetsT = Aws::Map<Aws::String, CreateExperimentTemplateTargetInput>>
90 void SetTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets = std::forward<TargetsT>(value); }
91 template<typename TargetsT = Aws::Map<Aws::String, CreateExperimentTemplateTargetInput>>
92 CreateExperimentTemplateRequest& WithTargets(TargetsT&& value) { SetTargets(std::forward<TargetsT>(value)); return *this;}
93 template<typename TargetsKeyT = Aws::String, typename TargetsValueT = CreateExperimentTemplateTargetInput>
94 CreateExperimentTemplateRequest& AddTargets(TargetsKeyT&& key, TargetsValueT&& value) {
95 m_targetsHasBeenSet = true; m_targets.emplace(std::forward<TargetsKeyT>(key), std::forward<TargetsValueT>(value)); return *this;
96 }
98
100
104 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
105 template<typename ActionsT = Aws::Map<Aws::String, CreateExperimentTemplateActionInput>>
106 void SetActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions = std::forward<ActionsT>(value); }
107 template<typename ActionsT = Aws::Map<Aws::String, CreateExperimentTemplateActionInput>>
108 CreateExperimentTemplateRequest& WithActions(ActionsT&& value) { SetActions(std::forward<ActionsT>(value)); return *this;}
109 template<typename ActionsKeyT = Aws::String, typename ActionsValueT = CreateExperimentTemplateActionInput>
110 CreateExperimentTemplateRequest& AddActions(ActionsKeyT&& key, ActionsValueT&& value) {
111 m_actionsHasBeenSet = true; m_actions.emplace(std::forward<ActionsKeyT>(key), std::forward<ActionsValueT>(value)); return *this;
112 }
114
116
120 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
121 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
122 template<typename RoleArnT = Aws::String>
123 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
124 template<typename RoleArnT = Aws::String>
125 CreateExperimentTemplateRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
127
129
132 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
133 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
134 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
135 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
136 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
137 CreateExperimentTemplateRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
138 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
139 CreateExperimentTemplateRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
140 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
141 }
143
145
148 inline const CreateExperimentTemplateLogConfigurationInput& GetLogConfiguration() const { return m_logConfiguration; }
149 inline bool LogConfigurationHasBeenSet() const { return m_logConfigurationHasBeenSet; }
150 template<typename LogConfigurationT = CreateExperimentTemplateLogConfigurationInput>
151 void SetLogConfiguration(LogConfigurationT&& value) { m_logConfigurationHasBeenSet = true; m_logConfiguration = std::forward<LogConfigurationT>(value); }
152 template<typename LogConfigurationT = CreateExperimentTemplateLogConfigurationInput>
153 CreateExperimentTemplateRequest& WithLogConfiguration(LogConfigurationT&& value) { SetLogConfiguration(std::forward<LogConfigurationT>(value)); return *this;}
155
157
160 inline const CreateExperimentTemplateExperimentOptionsInput& GetExperimentOptions() const { return m_experimentOptions; }
161 inline bool ExperimentOptionsHasBeenSet() const { return m_experimentOptionsHasBeenSet; }
162 template<typename ExperimentOptionsT = CreateExperimentTemplateExperimentOptionsInput>
163 void SetExperimentOptions(ExperimentOptionsT&& value) { m_experimentOptionsHasBeenSet = true; m_experimentOptions = std::forward<ExperimentOptionsT>(value); }
164 template<typename ExperimentOptionsT = CreateExperimentTemplateExperimentOptionsInput>
165 CreateExperimentTemplateRequest& WithExperimentOptions(ExperimentOptionsT&& value) { SetExperimentOptions(std::forward<ExperimentOptionsT>(value)); return *this;}
167
169
172 inline const CreateExperimentTemplateReportConfigurationInput& GetExperimentReportConfiguration() const { return m_experimentReportConfiguration; }
173 inline bool ExperimentReportConfigurationHasBeenSet() const { return m_experimentReportConfigurationHasBeenSet; }
174 template<typename ExperimentReportConfigurationT = CreateExperimentTemplateReportConfigurationInput>
175 void SetExperimentReportConfiguration(ExperimentReportConfigurationT&& value) { m_experimentReportConfigurationHasBeenSet = true; m_experimentReportConfiguration = std::forward<ExperimentReportConfigurationT>(value); }
176 template<typename ExperimentReportConfigurationT = CreateExperimentTemplateReportConfigurationInput>
177 CreateExperimentTemplateRequest& WithExperimentReportConfiguration(ExperimentReportConfigurationT&& value) { SetExperimentReportConfiguration(std::forward<ExperimentReportConfigurationT>(value)); return *this;}
179 private:
180
182 bool m_clientTokenHasBeenSet = true;
183
184 Aws::String m_description;
185 bool m_descriptionHasBeenSet = false;
186
188 bool m_stopConditionsHasBeenSet = false;
189
191 bool m_targetsHasBeenSet = false;
192
194 bool m_actionsHasBeenSet = false;
195
196 Aws::String m_roleArn;
197 bool m_roleArnHasBeenSet = false;
198
200 bool m_tagsHasBeenSet = false;
201
202 CreateExperimentTemplateLogConfigurationInput m_logConfiguration;
203 bool m_logConfigurationHasBeenSet = false;
204
205 CreateExperimentTemplateExperimentOptionsInput m_experimentOptions;
206 bool m_experimentOptionsHasBeenSet = false;
207
208 CreateExperimentTemplateReportConfigurationInput m_experimentReportConfiguration;
209 bool m_experimentReportConfigurationHasBeenSet = false;
210 };
211
212} // namespace Model
213} // namespace FIS
214} // 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