AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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/ExperimentTemplateReportConfiguration.h>
15#include <aws/fis/model/ExperimentTemplateTarget.h>
16#include <aws/fis/model/ExperimentTemplateAction.h>
17#include <aws/fis/model/ExperimentTemplateStopCondition.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27 class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace FIS
31{
32namespace Model
33{
34
41 {
42 public:
43 AWS_FIS_API ExperimentTemplate() = default;
47
48
50
53 inline const Aws::String& GetId() const { return m_id; }
54 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
55 template<typename IdT = Aws::String>
56 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
57 template<typename IdT = Aws::String>
58 ExperimentTemplate& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
60
62
65 inline const Aws::String& GetArn() const { return m_arn; }
66 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
67 template<typename ArnT = Aws::String>
68 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
69 template<typename ArnT = Aws::String>
70 ExperimentTemplate& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
72
74
77 inline const Aws::String& GetDescription() const { return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 template<typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
81 template<typename DescriptionT = Aws::String>
82 ExperimentTemplate& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
84
86
89 inline const Aws::Map<Aws::String, ExperimentTemplateTarget>& GetTargets() const { return m_targets; }
90 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
91 template<typename TargetsT = Aws::Map<Aws::String, ExperimentTemplateTarget>>
92 void SetTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets = std::forward<TargetsT>(value); }
93 template<typename TargetsT = Aws::Map<Aws::String, ExperimentTemplateTarget>>
94 ExperimentTemplate& WithTargets(TargetsT&& value) { SetTargets(std::forward<TargetsT>(value)); return *this;}
95 template<typename TargetsKeyT = Aws::String, typename TargetsValueT = ExperimentTemplateTarget>
96 ExperimentTemplate& AddTargets(TargetsKeyT&& key, TargetsValueT&& value) {
97 m_targetsHasBeenSet = true; m_targets.emplace(std::forward<TargetsKeyT>(key), std::forward<TargetsValueT>(value)); return *this;
98 }
100
102
105 inline const Aws::Map<Aws::String, ExperimentTemplateAction>& GetActions() const { return m_actions; }
106 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
107 template<typename ActionsT = Aws::Map<Aws::String, ExperimentTemplateAction>>
108 void SetActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions = std::forward<ActionsT>(value); }
109 template<typename ActionsT = Aws::Map<Aws::String, ExperimentTemplateAction>>
110 ExperimentTemplate& WithActions(ActionsT&& value) { SetActions(std::forward<ActionsT>(value)); return *this;}
111 template<typename ActionsKeyT = Aws::String, typename ActionsValueT = ExperimentTemplateAction>
112 ExperimentTemplate& AddActions(ActionsKeyT&& key, ActionsValueT&& value) {
113 m_actionsHasBeenSet = true; m_actions.emplace(std::forward<ActionsKeyT>(key), std::forward<ActionsValueT>(value)); return *this;
114 }
116
118
121 inline const Aws::Vector<ExperimentTemplateStopCondition>& GetStopConditions() const { return m_stopConditions; }
122 inline bool StopConditionsHasBeenSet() const { return m_stopConditionsHasBeenSet; }
123 template<typename StopConditionsT = Aws::Vector<ExperimentTemplateStopCondition>>
124 void SetStopConditions(StopConditionsT&& value) { m_stopConditionsHasBeenSet = true; m_stopConditions = std::forward<StopConditionsT>(value); }
125 template<typename StopConditionsT = Aws::Vector<ExperimentTemplateStopCondition>>
126 ExperimentTemplate& WithStopConditions(StopConditionsT&& value) { SetStopConditions(std::forward<StopConditionsT>(value)); return *this;}
127 template<typename StopConditionsT = ExperimentTemplateStopCondition>
128 ExperimentTemplate& AddStopConditions(StopConditionsT&& value) { m_stopConditionsHasBeenSet = true; m_stopConditions.emplace_back(std::forward<StopConditionsT>(value)); return *this; }
130
132
135 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
136 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
137 template<typename CreationTimeT = Aws::Utils::DateTime>
138 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
139 template<typename CreationTimeT = Aws::Utils::DateTime>
140 ExperimentTemplate& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
142
144
147 inline const Aws::Utils::DateTime& GetLastUpdateTime() const { return m_lastUpdateTime; }
148 inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; }
149 template<typename LastUpdateTimeT = Aws::Utils::DateTime>
150 void SetLastUpdateTime(LastUpdateTimeT&& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = std::forward<LastUpdateTimeT>(value); }
151 template<typename LastUpdateTimeT = Aws::Utils::DateTime>
152 ExperimentTemplate& WithLastUpdateTime(LastUpdateTimeT&& value) { SetLastUpdateTime(std::forward<LastUpdateTimeT>(value)); return *this;}
154
156
159 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
160 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
161 template<typename RoleArnT = Aws::String>
162 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
163 template<typename RoleArnT = Aws::String>
164 ExperimentTemplate& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
166
168
171 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
172 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
173 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
174 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
175 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
176 ExperimentTemplate& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
177 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
178 ExperimentTemplate& AddTags(TagsKeyT&& key, TagsValueT&& value) {
179 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
180 }
182
184
187 inline const ExperimentTemplateLogConfiguration& GetLogConfiguration() const { return m_logConfiguration; }
188 inline bool LogConfigurationHasBeenSet() const { return m_logConfigurationHasBeenSet; }
189 template<typename LogConfigurationT = ExperimentTemplateLogConfiguration>
190 void SetLogConfiguration(LogConfigurationT&& value) { m_logConfigurationHasBeenSet = true; m_logConfiguration = std::forward<LogConfigurationT>(value); }
191 template<typename LogConfigurationT = ExperimentTemplateLogConfiguration>
192 ExperimentTemplate& WithLogConfiguration(LogConfigurationT&& value) { SetLogConfiguration(std::forward<LogConfigurationT>(value)); return *this;}
194
196
199 inline const ExperimentTemplateExperimentOptions& GetExperimentOptions() const { return m_experimentOptions; }
200 inline bool ExperimentOptionsHasBeenSet() const { return m_experimentOptionsHasBeenSet; }
201 template<typename ExperimentOptionsT = ExperimentTemplateExperimentOptions>
202 void SetExperimentOptions(ExperimentOptionsT&& value) { m_experimentOptionsHasBeenSet = true; m_experimentOptions = std::forward<ExperimentOptionsT>(value); }
203 template<typename ExperimentOptionsT = ExperimentTemplateExperimentOptions>
204 ExperimentTemplate& WithExperimentOptions(ExperimentOptionsT&& value) { SetExperimentOptions(std::forward<ExperimentOptionsT>(value)); return *this;}
206
208
211 inline long long GetTargetAccountConfigurationsCount() const { return m_targetAccountConfigurationsCount; }
212 inline bool TargetAccountConfigurationsCountHasBeenSet() const { return m_targetAccountConfigurationsCountHasBeenSet; }
213 inline void SetTargetAccountConfigurationsCount(long long value) { m_targetAccountConfigurationsCountHasBeenSet = true; m_targetAccountConfigurationsCount = value; }
216
218
221 inline const ExperimentTemplateReportConfiguration& GetExperimentReportConfiguration() const { return m_experimentReportConfiguration; }
222 inline bool ExperimentReportConfigurationHasBeenSet() const { return m_experimentReportConfigurationHasBeenSet; }
223 template<typename ExperimentReportConfigurationT = ExperimentTemplateReportConfiguration>
224 void SetExperimentReportConfiguration(ExperimentReportConfigurationT&& value) { m_experimentReportConfigurationHasBeenSet = true; m_experimentReportConfiguration = std::forward<ExperimentReportConfigurationT>(value); }
225 template<typename ExperimentReportConfigurationT = ExperimentTemplateReportConfiguration>
226 ExperimentTemplate& WithExperimentReportConfiguration(ExperimentReportConfigurationT&& value) { SetExperimentReportConfiguration(std::forward<ExperimentReportConfigurationT>(value)); return *this;}
228 private:
229
230 Aws::String m_id;
231 bool m_idHasBeenSet = false;
232
233 Aws::String m_arn;
234 bool m_arnHasBeenSet = false;
235
236 Aws::String m_description;
237 bool m_descriptionHasBeenSet = false;
238
240 bool m_targetsHasBeenSet = false;
241
243 bool m_actionsHasBeenSet = false;
244
246 bool m_stopConditionsHasBeenSet = false;
247
248 Aws::Utils::DateTime m_creationTime{};
249 bool m_creationTimeHasBeenSet = false;
250
251 Aws::Utils::DateTime m_lastUpdateTime{};
252 bool m_lastUpdateTimeHasBeenSet = false;
253
254 Aws::String m_roleArn;
255 bool m_roleArnHasBeenSet = false;
256
258 bool m_tagsHasBeenSet = false;
259
260 ExperimentTemplateLogConfiguration m_logConfiguration;
261 bool m_logConfigurationHasBeenSet = false;
262
263 ExperimentTemplateExperimentOptions m_experimentOptions;
264 bool m_experimentOptionsHasBeenSet = false;
265
266 long long m_targetAccountConfigurationsCount{0};
267 bool m_targetAccountConfigurationsCountHasBeenSet = false;
268
269 ExperimentTemplateReportConfiguration m_experimentReportConfiguration;
270 bool m_experimentReportConfigurationHasBeenSet = false;
271 };
272
273} // namespace Model
274} // namespace FIS
275} // namespace Aws
void SetLastUpdateTime(LastUpdateTimeT &&value)
ExperimentTemplate & WithId(IdT &&value)
AWS_FIS_API ExperimentTemplate & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetExperimentOptions(ExperimentOptionsT &&value)
ExperimentTemplate & WithActions(ActionsT &&value)
const Aws::Map< Aws::String, ExperimentTemplateTarget > & GetTargets() const
ExperimentTemplate & AddTargets(TargetsKeyT &&key, TargetsValueT &&value)
const Aws::String & GetId() const
ExperimentTemplate & AddStopConditions(StopConditionsT &&value)
const Aws::String & GetRoleArn() const
void SetCreationTime(CreationTimeT &&value)
ExperimentTemplate & WithTargets(TargetsT &&value)
const ExperimentTemplateExperimentOptions & GetExperimentOptions() const
const Aws::Vector< ExperimentTemplateStopCondition > & GetStopConditions() const
ExperimentTemplate & WithDescription(DescriptionT &&value)
ExperimentTemplate & WithRoleArn(RoleArnT &&value)
ExperimentTemplate & WithExperimentReportConfiguration(ExperimentReportConfigurationT &&value)
const Aws::String & GetArn() const
ExperimentTemplate & WithTargetAccountConfigurationsCount(long long value)
ExperimentTemplate & WithLogConfiguration(LogConfigurationT &&value)
const Aws::String & GetDescription() const
ExperimentTemplate & AddActions(ActionsKeyT &&key, ActionsValueT &&value)
ExperimentTemplate & WithStopConditions(StopConditionsT &&value)
void SetStopConditions(StopConditionsT &&value)
const Aws::Utils::DateTime & GetLastUpdateTime() const
const Aws::Map< Aws::String, ExperimentTemplateAction > & GetActions() const
AWS_FIS_API Aws::Utils::Json::JsonValue Jsonize() const
long long GetTargetAccountConfigurationsCount() const
ExperimentTemplate & WithArn(ArnT &&value)
ExperimentTemplate & WithExperimentOptions(ExperimentOptionsT &&value)
void SetDescription(DescriptionT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ExperimentTemplate & WithLastUpdateTime(LastUpdateTimeT &&value)
const ExperimentTemplateReportConfiguration & GetExperimentReportConfiguration() const
ExperimentTemplate & WithTags(TagsT &&value)
AWS_FIS_API ExperimentTemplate()=default
void SetTargetAccountConfigurationsCount(long long value)
void SetLogConfiguration(LogConfigurationT &&value)
ExperimentTemplate & WithCreationTime(CreationTimeT &&value)
const ExperimentTemplateLogConfiguration & GetLogConfiguration() const
const Aws::Utils::DateTime & GetCreationTime() const
AWS_FIS_API ExperimentTemplate(Aws::Utils::Json::JsonView jsonValue)
void SetExperimentReportConfiguration(ExperimentReportConfigurationT &&value)
ExperimentTemplate & AddTags(TagsKeyT &&key, TagsValueT &&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