AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ExperimentTemplate.h
1
6#pragma once
7#include <aws/fis/FIS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/fis/model/ExperimentTemplateLogConfiguration.h>
13#include <aws/fis/model/ExperimentTemplateExperimentOptions.h>
14#include <aws/fis/model/ExperimentTemplateTarget.h>
15#include <aws/fis/model/ExperimentTemplateAction.h>
16#include <aws/fis/model/ExperimentTemplateStopCondition.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace FIS
30{
31namespace Model
32{
33
40 {
41 public:
42 AWS_FIS_API ExperimentTemplate();
46
47
49
52 inline const Aws::String& GetId() const{ return m_id; }
53 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
54 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
55 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
56 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
57 inline ExperimentTemplate& WithId(const Aws::String& value) { SetId(value); return *this;}
58 inline ExperimentTemplate& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
59 inline ExperimentTemplate& WithId(const char* value) { SetId(value); return *this;}
61
63
66 inline const Aws::String& GetArn() const{ return m_arn; }
67 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
68 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
69 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
70 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
71 inline ExperimentTemplate& WithArn(const Aws::String& value) { SetArn(value); return *this;}
72 inline ExperimentTemplate& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
73 inline ExperimentTemplate& WithArn(const char* value) { SetArn(value); return *this;}
75
77
80 inline const Aws::String& GetDescription() const{ return m_description; }
81 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
82 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
83 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
84 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
85 inline ExperimentTemplate& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
86 inline ExperimentTemplate& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
87 inline ExperimentTemplate& WithDescription(const char* value) { SetDescription(value); return *this;}
89
91
94 inline const Aws::Map<Aws::String, ExperimentTemplateTarget>& GetTargets() const{ return m_targets; }
95 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
96 inline void SetTargets(const Aws::Map<Aws::String, ExperimentTemplateTarget>& value) { m_targetsHasBeenSet = true; m_targets = value; }
97 inline void SetTargets(Aws::Map<Aws::String, ExperimentTemplateTarget>&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
100 inline ExperimentTemplate& AddTargets(const Aws::String& key, const ExperimentTemplateTarget& value) { m_targetsHasBeenSet = true; m_targets.emplace(key, value); return *this; }
101 inline ExperimentTemplate& AddTargets(Aws::String&& key, const ExperimentTemplateTarget& value) { m_targetsHasBeenSet = true; m_targets.emplace(std::move(key), value); return *this; }
102 inline ExperimentTemplate& AddTargets(const Aws::String& key, ExperimentTemplateTarget&& value) { m_targetsHasBeenSet = true; m_targets.emplace(key, std::move(value)); return *this; }
103 inline ExperimentTemplate& AddTargets(Aws::String&& key, ExperimentTemplateTarget&& value) { m_targetsHasBeenSet = true; m_targets.emplace(std::move(key), std::move(value)); return *this; }
104 inline ExperimentTemplate& AddTargets(const char* key, ExperimentTemplateTarget&& value) { m_targetsHasBeenSet = true; m_targets.emplace(key, std::move(value)); return *this; }
105 inline ExperimentTemplate& AddTargets(const char* key, const ExperimentTemplateTarget& value) { m_targetsHasBeenSet = true; m_targets.emplace(key, value); return *this; }
107
109
112 inline const Aws::Map<Aws::String, ExperimentTemplateAction>& GetActions() const{ return m_actions; }
113 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
114 inline void SetActions(const Aws::Map<Aws::String, ExperimentTemplateAction>& value) { m_actionsHasBeenSet = true; m_actions = value; }
115 inline void SetActions(Aws::Map<Aws::String, ExperimentTemplateAction>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
118 inline ExperimentTemplate& AddActions(const Aws::String& key, const ExperimentTemplateAction& value) { m_actionsHasBeenSet = true; m_actions.emplace(key, value); return *this; }
119 inline ExperimentTemplate& AddActions(Aws::String&& key, const ExperimentTemplateAction& value) { m_actionsHasBeenSet = true; m_actions.emplace(std::move(key), value); return *this; }
120 inline ExperimentTemplate& AddActions(const Aws::String& key, ExperimentTemplateAction&& value) { m_actionsHasBeenSet = true; m_actions.emplace(key, std::move(value)); return *this; }
121 inline ExperimentTemplate& AddActions(Aws::String&& key, ExperimentTemplateAction&& value) { m_actionsHasBeenSet = true; m_actions.emplace(std::move(key), std::move(value)); return *this; }
122 inline ExperimentTemplate& AddActions(const char* key, ExperimentTemplateAction&& value) { m_actionsHasBeenSet = true; m_actions.emplace(key, std::move(value)); return *this; }
123 inline ExperimentTemplate& AddActions(const char* key, const ExperimentTemplateAction& value) { m_actionsHasBeenSet = true; m_actions.emplace(key, value); return *this; }
125
127
130 inline const Aws::Vector<ExperimentTemplateStopCondition>& GetStopConditions() const{ return m_stopConditions; }
131 inline bool StopConditionsHasBeenSet() const { return m_stopConditionsHasBeenSet; }
132 inline void SetStopConditions(const Aws::Vector<ExperimentTemplateStopCondition>& value) { m_stopConditionsHasBeenSet = true; m_stopConditions = value; }
133 inline void SetStopConditions(Aws::Vector<ExperimentTemplateStopCondition>&& value) { m_stopConditionsHasBeenSet = true; m_stopConditions = std::move(value); }
136 inline ExperimentTemplate& AddStopConditions(const ExperimentTemplateStopCondition& value) { m_stopConditionsHasBeenSet = true; m_stopConditions.push_back(value); return *this; }
137 inline ExperimentTemplate& AddStopConditions(ExperimentTemplateStopCondition&& value) { m_stopConditionsHasBeenSet = true; m_stopConditions.push_back(std::move(value)); return *this; }
139
141
144 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
145 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
146 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
147 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
148 inline ExperimentTemplate& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
149 inline ExperimentTemplate& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
151
153
156 inline const Aws::Utils::DateTime& GetLastUpdateTime() const{ return m_lastUpdateTime; }
157 inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; }
158 inline void SetLastUpdateTime(const Aws::Utils::DateTime& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = value; }
159 inline void SetLastUpdateTime(Aws::Utils::DateTime&& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = std::move(value); }
161 inline ExperimentTemplate& WithLastUpdateTime(Aws::Utils::DateTime&& value) { SetLastUpdateTime(std::move(value)); return *this;}
163
165
168 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
169 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
170 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
171 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
172 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
173 inline ExperimentTemplate& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
174 inline ExperimentTemplate& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
175 inline ExperimentTemplate& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
177
179
182 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
183 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
184 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
185 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
186 inline ExperimentTemplate& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
187 inline ExperimentTemplate& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
188 inline ExperimentTemplate& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
189 inline ExperimentTemplate& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
190 inline ExperimentTemplate& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
191 inline ExperimentTemplate& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
192 inline ExperimentTemplate& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
193 inline ExperimentTemplate& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
194 inline ExperimentTemplate& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
196
198
201 inline const ExperimentTemplateLogConfiguration& GetLogConfiguration() const{ return m_logConfiguration; }
202 inline bool LogConfigurationHasBeenSet() const { return m_logConfigurationHasBeenSet; }
203 inline void SetLogConfiguration(const ExperimentTemplateLogConfiguration& value) { m_logConfigurationHasBeenSet = true; m_logConfiguration = value; }
204 inline void SetLogConfiguration(ExperimentTemplateLogConfiguration&& value) { m_logConfigurationHasBeenSet = true; m_logConfiguration = std::move(value); }
208
210
213 inline const ExperimentTemplateExperimentOptions& GetExperimentOptions() const{ return m_experimentOptions; }
214 inline bool ExperimentOptionsHasBeenSet() const { return m_experimentOptionsHasBeenSet; }
215 inline void SetExperimentOptions(const ExperimentTemplateExperimentOptions& value) { m_experimentOptionsHasBeenSet = true; m_experimentOptions = value; }
216 inline void SetExperimentOptions(ExperimentTemplateExperimentOptions&& value) { m_experimentOptionsHasBeenSet = true; m_experimentOptions = std::move(value); }
220
222
225 inline long long GetTargetAccountConfigurationsCount() const{ return m_targetAccountConfigurationsCount; }
226 inline bool TargetAccountConfigurationsCountHasBeenSet() const { return m_targetAccountConfigurationsCountHasBeenSet; }
227 inline void SetTargetAccountConfigurationsCount(long long value) { m_targetAccountConfigurationsCountHasBeenSet = true; m_targetAccountConfigurationsCount = value; }
230 private:
231
232 Aws::String m_id;
233 bool m_idHasBeenSet = false;
234
235 Aws::String m_arn;
236 bool m_arnHasBeenSet = false;
237
238 Aws::String m_description;
239 bool m_descriptionHasBeenSet = false;
240
242 bool m_targetsHasBeenSet = false;
243
245 bool m_actionsHasBeenSet = false;
246
248 bool m_stopConditionsHasBeenSet = false;
249
250 Aws::Utils::DateTime m_creationTime;
251 bool m_creationTimeHasBeenSet = false;
252
253 Aws::Utils::DateTime m_lastUpdateTime;
254 bool m_lastUpdateTimeHasBeenSet = false;
255
256 Aws::String m_roleArn;
257 bool m_roleArnHasBeenSet = false;
258
260 bool m_tagsHasBeenSet = false;
261
262 ExperimentTemplateLogConfiguration m_logConfiguration;
263 bool m_logConfigurationHasBeenSet = false;
264
265 ExperimentTemplateExperimentOptions m_experimentOptions;
266 bool m_experimentOptionsHasBeenSet = false;
267
268 long long m_targetAccountConfigurationsCount;
269 bool m_targetAccountConfigurationsCountHasBeenSet = false;
270 };
271
272} // namespace Model
273} // namespace FIS
274} // namespace Aws
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
ExperimentTemplate & AddActions(Aws::String &&key, ExperimentTemplateAction &&value)
AWS_FIS_API ExperimentTemplate & operator=(Aws::Utils::Json::JsonView jsonValue)
ExperimentTemplate & WithActions(const Aws::Map< Aws::String, ExperimentTemplateAction > &value)
ExperimentTemplate & WithLogConfiguration(ExperimentTemplateLogConfiguration &&value)
ExperimentTemplate & AddTags(Aws::String &&key, const char *value)
void SetArn(const Aws::String &value)
ExperimentTemplate & WithRoleArn(Aws::String &&value)
ExperimentTemplate & WithDescription(const char *value)
ExperimentTemplate & AddTags(const char *key, const char *value)
const Aws::Map< Aws::String, ExperimentTemplateTarget > & GetTargets() const
ExperimentTemplate & AddTags(Aws::String &&key, const Aws::String &value)
ExperimentTemplate & AddTargets(const Aws::String &key, ExperimentTemplateTarget &&value)
void SetStopConditions(Aws::Vector< ExperimentTemplateStopCondition > &&value)
ExperimentTemplate & AddTargets(const char *key, ExperimentTemplateTarget &&value)
const Aws::String & GetId() const
void SetDescription(Aws::String &&value)
ExperimentTemplate & AddTags(const Aws::String &key, const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
ExperimentTemplate & AddTags(const Aws::String &key, Aws::String &&value)
ExperimentTemplate & WithArn(const char *value)
void SetTargets(Aws::Map< Aws::String, ExperimentTemplateTarget > &&value)
void SetStopConditions(const Aws::Vector< ExperimentTemplateStopCondition > &value)
void SetLogConfiguration(const ExperimentTemplateLogConfiguration &value)
const Aws::String & GetRoleArn() const
ExperimentTemplate & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
ExperimentTemplate & AddActions(const Aws::String &key, ExperimentTemplateAction &&value)
ExperimentTemplate & AddStopConditions(const ExperimentTemplateStopCondition &value)
const ExperimentTemplateExperimentOptions & GetExperimentOptions() const
void SetId(const Aws::String &value)
const Aws::Vector< ExperimentTemplateStopCondition > & GetStopConditions() const
void SetLastUpdateTime(const Aws::Utils::DateTime &value)
ExperimentTemplate & WithActions(Aws::Map< Aws::String, ExperimentTemplateAction > &&value)
ExperimentTemplate & WithLastUpdateTime(Aws::Utils::DateTime &&value)
ExperimentTemplate & WithDescription(const Aws::String &value)
ExperimentTemplate & AddTargets(const Aws::String &key, const ExperimentTemplateTarget &value)
ExperimentTemplate & WithArn(Aws::String &&value)
ExperimentTemplate & AddTags(Aws::String &&key, Aws::String &&value)
void SetTargets(const Aws::Map< Aws::String, ExperimentTemplateTarget > &value)
ExperimentTemplate & AddTargets(Aws::String &&key, const ExperimentTemplateTarget &value)
const Aws::String & GetArn() const
ExperimentTemplate & WithTargetAccountConfigurationsCount(long long value)
ExperimentTemplate & WithId(const Aws::String &value)
const Aws::String & GetDescription() const
ExperimentTemplate & WithRoleArn(const Aws::String &value)
ExperimentTemplate & WithId(Aws::String &&value)
ExperimentTemplate & WithId(const char *value)
const Aws::Utils::DateTime & GetLastUpdateTime() const
const Aws::Map< Aws::String, ExperimentTemplateAction > & GetActions() const
AWS_FIS_API Aws::Utils::Json::JsonValue Jsonize() const
ExperimentTemplate & WithStopConditions(Aws::Vector< ExperimentTemplateStopCondition > &&value)
long long GetTargetAccountConfigurationsCount() const
ExperimentTemplate & AddActions(const char *key, ExperimentTemplateAction &&value)
ExperimentTemplate & AddTargets(Aws::String &&key, ExperimentTemplateTarget &&value)
ExperimentTemplate & WithLastUpdateTime(const Aws::Utils::DateTime &value)
ExperimentTemplate & AddActions(Aws::String &&key, const ExperimentTemplateAction &value)
ExperimentTemplate & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ExperimentTemplate & AddActions(const char *key, const ExperimentTemplateAction &value)
void SetActions(const Aws::Map< Aws::String, ExperimentTemplateAction > &value)
ExperimentTemplate & WithTargets(Aws::Map< Aws::String, ExperimentTemplateTarget > &&value)
void SetTargetAccountConfigurationsCount(long long value)
ExperimentTemplate & AddActions(const Aws::String &key, const ExperimentTemplateAction &value)
ExperimentTemplate & AddStopConditions(ExperimentTemplateStopCondition &&value)
ExperimentTemplate & WithExperimentOptions(ExperimentTemplateExperimentOptions &&value)
ExperimentTemplate & WithStopConditions(const Aws::Vector< ExperimentTemplateStopCondition > &value)
ExperimentTemplate & AddTargets(const char *key, const ExperimentTemplateTarget &value)
ExperimentTemplate & WithArn(const Aws::String &value)
ExperimentTemplate & WithCreationTime(Aws::Utils::DateTime &&value)
void SetCreationTime(const Aws::Utils::DateTime &value)
ExperimentTemplate & WithDescription(Aws::String &&value)
void SetDescription(const Aws::String &value)
void SetCreationTime(Aws::Utils::DateTime &&value)
const ExperimentTemplateLogConfiguration & GetLogConfiguration() const
const Aws::Utils::DateTime & GetCreationTime() const
void SetLastUpdateTime(Aws::Utils::DateTime &&value)
AWS_FIS_API ExperimentTemplate(Aws::Utils::Json::JsonView jsonValue)
ExperimentTemplate & WithLogConfiguration(const ExperimentTemplateLogConfiguration &value)
void SetActions(Aws::Map< Aws::String, ExperimentTemplateAction > &&value)
ExperimentTemplate & WithTargets(const Aws::Map< Aws::String, ExperimentTemplateTarget > &value)
ExperimentTemplate & WithRoleArn(const char *value)
ExperimentTemplate & WithExperimentOptions(const ExperimentTemplateExperimentOptions &value)
ExperimentTemplate & AddTags(const char *key, Aws::String &&value)
void SetLogConfiguration(ExperimentTemplateLogConfiguration &&value)
void SetExperimentOptions(ExperimentTemplateExperimentOptions &&value)
void SetExperimentOptions(const ExperimentTemplateExperimentOptions &value)
ExperimentTemplate & WithCreationTime(const Aws::Utils::DateTime &value)
void SetRoleArn(const Aws::String &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
Aws::Utils::Json::JsonValue JsonValue