AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/CreateExperimentTemplateStopConditionInput.h>
15#include <aws/fis/model/CreateExperimentTemplateTargetInput.h>
16#include <aws/fis/model/CreateExperimentTemplateActionInput.h>
17#include <utility>
18#include <aws/core/utils/UUID.h>
19
20namespace Aws
21{
22namespace FIS
23{
24namespace Model
25{
26
30 {
31 public:
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "CreateExperimentTemplate"; }
39
40 AWS_FIS_API Aws::String SerializePayload() const override;
41
42
44
48 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
49 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
50 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
51 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
52 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
53 inline CreateExperimentTemplateRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
54 inline CreateExperimentTemplateRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
55 inline CreateExperimentTemplateRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
57
59
62 inline const Aws::String& GetDescription() const{ return m_description; }
63 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
64 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
65 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
66 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
67 inline CreateExperimentTemplateRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
68 inline CreateExperimentTemplateRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
69 inline CreateExperimentTemplateRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
71
73
76 inline const Aws::Vector<CreateExperimentTemplateStopConditionInput>& GetStopConditions() const{ return m_stopConditions; }
77 inline bool StopConditionsHasBeenSet() const { return m_stopConditionsHasBeenSet; }
78 inline void SetStopConditions(const Aws::Vector<CreateExperimentTemplateStopConditionInput>& value) { m_stopConditionsHasBeenSet = true; m_stopConditions = value; }
79 inline void SetStopConditions(Aws::Vector<CreateExperimentTemplateStopConditionInput>&& value) { m_stopConditionsHasBeenSet = true; m_stopConditions = std::move(value); }
82 inline CreateExperimentTemplateRequest& AddStopConditions(const CreateExperimentTemplateStopConditionInput& value) { m_stopConditionsHasBeenSet = true; m_stopConditions.push_back(value); return *this; }
83 inline CreateExperimentTemplateRequest& AddStopConditions(CreateExperimentTemplateStopConditionInput&& value) { m_stopConditionsHasBeenSet = true; m_stopConditions.push_back(std::move(value)); return *this; }
85
87
91 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
92 inline void SetTargets(const Aws::Map<Aws::String, CreateExperimentTemplateTargetInput>& value) { m_targetsHasBeenSet = true; m_targets = value; }
93 inline void SetTargets(Aws::Map<Aws::String, CreateExperimentTemplateTargetInput>&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
96 inline CreateExperimentTemplateRequest& AddTargets(const Aws::String& key, const CreateExperimentTemplateTargetInput& value) { m_targetsHasBeenSet = true; m_targets.emplace(key, value); return *this; }
97 inline CreateExperimentTemplateRequest& AddTargets(Aws::String&& key, const CreateExperimentTemplateTargetInput& value) { m_targetsHasBeenSet = true; m_targets.emplace(std::move(key), value); return *this; }
98 inline CreateExperimentTemplateRequest& AddTargets(const Aws::String& key, CreateExperimentTemplateTargetInput&& value) { m_targetsHasBeenSet = true; m_targets.emplace(key, std::move(value)); return *this; }
99 inline CreateExperimentTemplateRequest& AddTargets(Aws::String&& key, CreateExperimentTemplateTargetInput&& value) { m_targetsHasBeenSet = true; m_targets.emplace(std::move(key), std::move(value)); return *this; }
100 inline CreateExperimentTemplateRequest& AddTargets(const char* key, CreateExperimentTemplateTargetInput&& value) { m_targetsHasBeenSet = true; m_targets.emplace(key, std::move(value)); return *this; }
101 inline CreateExperimentTemplateRequest& AddTargets(const char* key, const CreateExperimentTemplateTargetInput& value) { m_targetsHasBeenSet = true; m_targets.emplace(key, value); return *this; }
103
105
109 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
110 inline void SetActions(const Aws::Map<Aws::String, CreateExperimentTemplateActionInput>& value) { m_actionsHasBeenSet = true; m_actions = value; }
111 inline void SetActions(Aws::Map<Aws::String, CreateExperimentTemplateActionInput>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
114 inline CreateExperimentTemplateRequest& AddActions(const Aws::String& key, const CreateExperimentTemplateActionInput& value) { m_actionsHasBeenSet = true; m_actions.emplace(key, value); return *this; }
115 inline CreateExperimentTemplateRequest& AddActions(Aws::String&& key, const CreateExperimentTemplateActionInput& value) { m_actionsHasBeenSet = true; m_actions.emplace(std::move(key), value); return *this; }
116 inline CreateExperimentTemplateRequest& AddActions(const Aws::String& key, CreateExperimentTemplateActionInput&& value) { m_actionsHasBeenSet = true; m_actions.emplace(key, std::move(value)); return *this; }
117 inline CreateExperimentTemplateRequest& AddActions(Aws::String&& key, CreateExperimentTemplateActionInput&& value) { m_actionsHasBeenSet = true; m_actions.emplace(std::move(key), std::move(value)); return *this; }
118 inline CreateExperimentTemplateRequest& AddActions(const char* key, CreateExperimentTemplateActionInput&& value) { m_actionsHasBeenSet = true; m_actions.emplace(key, std::move(value)); return *this; }
119 inline CreateExperimentTemplateRequest& AddActions(const char* key, const CreateExperimentTemplateActionInput& value) { m_actionsHasBeenSet = true; m_actions.emplace(key, value); return *this; }
121
123
127 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
128 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
129 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
130 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
131 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
132 inline CreateExperimentTemplateRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
133 inline CreateExperimentTemplateRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
134 inline CreateExperimentTemplateRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
136
138
141 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
142 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
143 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
144 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
146 inline CreateExperimentTemplateRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
147 inline CreateExperimentTemplateRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
148 inline CreateExperimentTemplateRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
149 inline CreateExperimentTemplateRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
150 inline CreateExperimentTemplateRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
151 inline CreateExperimentTemplateRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
152 inline CreateExperimentTemplateRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
153 inline CreateExperimentTemplateRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
155
157
160 inline const CreateExperimentTemplateLogConfigurationInput& GetLogConfiguration() const{ return m_logConfiguration; }
161 inline bool LogConfigurationHasBeenSet() const { return m_logConfigurationHasBeenSet; }
162 inline void SetLogConfiguration(const CreateExperimentTemplateLogConfigurationInput& value) { m_logConfigurationHasBeenSet = true; m_logConfiguration = value; }
163 inline void SetLogConfiguration(CreateExperimentTemplateLogConfigurationInput&& value) { m_logConfigurationHasBeenSet = true; m_logConfiguration = std::move(value); }
167
169
172 inline const CreateExperimentTemplateExperimentOptionsInput& GetExperimentOptions() const{ return m_experimentOptions; }
173 inline bool ExperimentOptionsHasBeenSet() const { return m_experimentOptionsHasBeenSet; }
174 inline void SetExperimentOptions(const CreateExperimentTemplateExperimentOptionsInput& value) { m_experimentOptionsHasBeenSet = true; m_experimentOptions = value; }
175 inline void SetExperimentOptions(CreateExperimentTemplateExperimentOptionsInput&& value) { m_experimentOptionsHasBeenSet = true; m_experimentOptions = std::move(value); }
179 private:
180
181 Aws::String m_clientToken;
182 bool m_clientTokenHasBeenSet = false;
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
203 bool m_logConfigurationHasBeenSet = false;
204
206 bool m_experimentOptionsHasBeenSet = false;
207 };
208
209} // namespace Model
210} // namespace FIS
211} // namespace Aws
CreateExperimentTemplateRequest & AddTargets(const char *key, const CreateExperimentTemplateTargetInput &value)
const CreateExperimentTemplateExperimentOptionsInput & GetExperimentOptions() const
CreateExperimentTemplateRequest & WithStopConditions(const Aws::Vector< CreateExperimentTemplateStopConditionInput > &value)
void SetActions(Aws::Map< Aws::String, CreateExperimentTemplateActionInput > &&value)
CreateExperimentTemplateRequest & AddTags(const char *key, const char *value)
void SetActions(const Aws::Map< Aws::String, CreateExperimentTemplateActionInput > &value)
CreateExperimentTemplateRequest & WithRoleArn(const Aws::String &value)
void SetStopConditions(const Aws::Vector< CreateExperimentTemplateStopConditionInput > &value)
void SetExperimentOptions(const CreateExperimentTemplateExperimentOptionsInput &value)
AWS_FIS_API Aws::String SerializePayload() const override
CreateExperimentTemplateRequest & WithExperimentOptions(const CreateExperimentTemplateExperimentOptionsInput &value)
CreateExperimentTemplateRequest & WithDescription(const char *value)
void SetLogConfiguration(CreateExperimentTemplateLogConfigurationInput &&value)
CreateExperimentTemplateRequest & WithClientToken(Aws::String &&value)
CreateExperimentTemplateRequest & AddTargets(Aws::String &&key, CreateExperimentTemplateTargetInput &&value)
CreateExperimentTemplateRequest & AddTargets(const Aws::String &key, CreateExperimentTemplateTargetInput &&value)
CreateExperimentTemplateRequest & AddActions(const Aws::String &key, const CreateExperimentTemplateActionInput &value)
CreateExperimentTemplateRequest & AddActions(Aws::String &&key, CreateExperimentTemplateActionInput &&value)
CreateExperimentTemplateRequest & AddActions(const char *key, CreateExperimentTemplateActionInput &&value)
CreateExperimentTemplateRequest & AddTags(Aws::String &&key, const char *value)
CreateExperimentTemplateRequest & AddTargets(const Aws::String &key, const CreateExperimentTemplateTargetInput &value)
const Aws::Map< Aws::String, CreateExperimentTemplateActionInput > & GetActions() const
CreateExperimentTemplateRequest & WithTargets(Aws::Map< Aws::String, CreateExperimentTemplateTargetInput > &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateExperimentTemplateRequest & AddTargets(Aws::String &&key, const CreateExperimentTemplateTargetInput &value)
void SetLogConfiguration(const CreateExperimentTemplateLogConfigurationInput &value)
CreateExperimentTemplateRequest & WithLogConfiguration(CreateExperimentTemplateLogConfigurationInput &&value)
CreateExperimentTemplateRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateExperimentTemplateRequest & AddTags(const char *key, Aws::String &&value)
CreateExperimentTemplateRequest & WithDescription(const Aws::String &value)
void SetStopConditions(Aws::Vector< CreateExperimentTemplateStopConditionInput > &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateExperimentTemplateRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateExperimentTemplateRequest & WithRoleArn(const char *value)
CreateExperimentTemplateRequest & WithStopConditions(Aws::Vector< CreateExperimentTemplateStopConditionInput > &&value)
CreateExperimentTemplateRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateExperimentTemplateRequest & WithClientToken(const Aws::String &value)
CreateExperimentTemplateRequest & WithExperimentOptions(CreateExperimentTemplateExperimentOptionsInput &&value)
CreateExperimentTemplateRequest & AddTargets(const char *key, CreateExperimentTemplateTargetInput &&value)
CreateExperimentTemplateRequest & WithLogConfiguration(const CreateExperimentTemplateLogConfigurationInput &value)
void SetTargets(const Aws::Map< Aws::String, CreateExperimentTemplateTargetInput > &value)
CreateExperimentTemplateRequest & WithClientToken(const char *value)
CreateExperimentTemplateRequest & WithActions(Aws::Map< Aws::String, CreateExperimentTemplateActionInput > &&value)
CreateExperimentTemplateRequest & WithDescription(Aws::String &&value)
CreateExperimentTemplateRequest & AddActions(const Aws::String &key, CreateExperimentTemplateActionInput &&value)
CreateExperimentTemplateRequest & WithActions(const Aws::Map< Aws::String, CreateExperimentTemplateActionInput > &value)
CreateExperimentTemplateRequest & WithTargets(const Aws::Map< Aws::String, CreateExperimentTemplateTargetInput > &value)
const Aws::Map< Aws::String, CreateExperimentTemplateTargetInput > & GetTargets() const
CreateExperimentTemplateRequest & AddTags(Aws::String &&key, Aws::String &&value)
void SetExperimentOptions(CreateExperimentTemplateExperimentOptionsInput &&value)
CreateExperimentTemplateRequest & AddActions(const char *key, const CreateExperimentTemplateActionInput &value)
CreateExperimentTemplateRequest & AddStopConditions(CreateExperimentTemplateStopConditionInput &&value)
const CreateExperimentTemplateLogConfigurationInput & GetLogConfiguration() const
CreateExperimentTemplateRequest & AddTags(Aws::String &&key, const Aws::String &value)
const Aws::Vector< CreateExperimentTemplateStopConditionInput > & GetStopConditions() const
CreateExperimentTemplateRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateExperimentTemplateRequest & WithRoleArn(Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateExperimentTemplateRequest & AddActions(Aws::String &&key, const CreateExperimentTemplateActionInput &value)
void SetTargets(Aws::Map< Aws::String, CreateExperimentTemplateTargetInput > &&value)
CreateExperimentTemplateRequest & AddStopConditions(const CreateExperimentTemplateStopConditionInput &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