AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ExperimentAction.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/fis/model/ExperimentActionState.h>
12#include <aws/core/utils/DateTime.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace FIS
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_FIS_API ExperimentAction();
42
43
45
48 inline const Aws::String& GetActionId() const{ return m_actionId; }
49 inline bool ActionIdHasBeenSet() const { return m_actionIdHasBeenSet; }
50 inline void SetActionId(const Aws::String& value) { m_actionIdHasBeenSet = true; m_actionId = value; }
51 inline void SetActionId(Aws::String&& value) { m_actionIdHasBeenSet = true; m_actionId = std::move(value); }
52 inline void SetActionId(const char* value) { m_actionIdHasBeenSet = true; m_actionId.assign(value); }
53 inline ExperimentAction& WithActionId(const Aws::String& value) { SetActionId(value); return *this;}
54 inline ExperimentAction& WithActionId(Aws::String&& value) { SetActionId(std::move(value)); return *this;}
55 inline ExperimentAction& WithActionId(const char* value) { SetActionId(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 ExperimentAction& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
68 inline ExperimentAction& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
69 inline ExperimentAction& WithDescription(const char* value) { SetDescription(value); return *this;}
71
73
76 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const{ return m_parameters; }
77 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
78 inline void SetParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
79 inline void SetParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
81 inline ExperimentAction& WithParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetParameters(std::move(value)); return *this;}
82 inline ExperimentAction& AddParameters(const Aws::String& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
83 inline ExperimentAction& AddParameters(Aws::String&& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
84 inline ExperimentAction& AddParameters(const Aws::String& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
85 inline ExperimentAction& AddParameters(Aws::String&& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
86 inline ExperimentAction& AddParameters(const char* key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
87 inline ExperimentAction& AddParameters(Aws::String&& key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
88 inline ExperimentAction& AddParameters(const char* key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
90
92
95 inline const Aws::Map<Aws::String, Aws::String>& GetTargets() const{ return m_targets; }
96 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
97 inline void SetTargets(const Aws::Map<Aws::String, Aws::String>& value) { m_targetsHasBeenSet = true; m_targets = value; }
98 inline void SetTargets(Aws::Map<Aws::String, Aws::String>&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
99 inline ExperimentAction& WithTargets(const Aws::Map<Aws::String, Aws::String>& value) { SetTargets(value); return *this;}
100 inline ExperimentAction& WithTargets(Aws::Map<Aws::String, Aws::String>&& value) { SetTargets(std::move(value)); return *this;}
101 inline ExperimentAction& AddTargets(const Aws::String& key, const Aws::String& value) { m_targetsHasBeenSet = true; m_targets.emplace(key, value); return *this; }
102 inline ExperimentAction& AddTargets(Aws::String&& key, const Aws::String& value) { m_targetsHasBeenSet = true; m_targets.emplace(std::move(key), value); return *this; }
103 inline ExperimentAction& AddTargets(const Aws::String& key, Aws::String&& value) { m_targetsHasBeenSet = true; m_targets.emplace(key, std::move(value)); return *this; }
104 inline ExperimentAction& AddTargets(Aws::String&& key, Aws::String&& value) { m_targetsHasBeenSet = true; m_targets.emplace(std::move(key), std::move(value)); return *this; }
105 inline ExperimentAction& AddTargets(const char* key, Aws::String&& value) { m_targetsHasBeenSet = true; m_targets.emplace(key, std::move(value)); return *this; }
106 inline ExperimentAction& AddTargets(Aws::String&& key, const char* value) { m_targetsHasBeenSet = true; m_targets.emplace(std::move(key), value); return *this; }
107 inline ExperimentAction& AddTargets(const char* key, const char* value) { m_targetsHasBeenSet = true; m_targets.emplace(key, value); return *this; }
109
111
114 inline const Aws::Vector<Aws::String>& GetStartAfter() const{ return m_startAfter; }
115 inline bool StartAfterHasBeenSet() const { return m_startAfterHasBeenSet; }
116 inline void SetStartAfter(const Aws::Vector<Aws::String>& value) { m_startAfterHasBeenSet = true; m_startAfter = value; }
117 inline void SetStartAfter(Aws::Vector<Aws::String>&& value) { m_startAfterHasBeenSet = true; m_startAfter = std::move(value); }
118 inline ExperimentAction& WithStartAfter(const Aws::Vector<Aws::String>& value) { SetStartAfter(value); return *this;}
119 inline ExperimentAction& WithStartAfter(Aws::Vector<Aws::String>&& value) { SetStartAfter(std::move(value)); return *this;}
120 inline ExperimentAction& AddStartAfter(const Aws::String& value) { m_startAfterHasBeenSet = true; m_startAfter.push_back(value); return *this; }
121 inline ExperimentAction& AddStartAfter(Aws::String&& value) { m_startAfterHasBeenSet = true; m_startAfter.push_back(std::move(value)); return *this; }
122 inline ExperimentAction& AddStartAfter(const char* value) { m_startAfterHasBeenSet = true; m_startAfter.push_back(value); return *this; }
124
126
129 inline const ExperimentActionState& GetState() const{ return m_state; }
130 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
131 inline void SetState(const ExperimentActionState& value) { m_stateHasBeenSet = true; m_state = value; }
132 inline void SetState(ExperimentActionState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
133 inline ExperimentAction& WithState(const ExperimentActionState& value) { SetState(value); return *this;}
134 inline ExperimentAction& WithState(ExperimentActionState&& value) { SetState(std::move(value)); return *this;}
136
138
141 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
142 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
143 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
144 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
145 inline ExperimentAction& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
146 inline ExperimentAction& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
148
150
153 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
154 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
155 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
156 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
157 inline ExperimentAction& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
158 inline ExperimentAction& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
160 private:
161
162 Aws::String m_actionId;
163 bool m_actionIdHasBeenSet = false;
164
165 Aws::String m_description;
166 bool m_descriptionHasBeenSet = false;
167
169 bool m_parametersHasBeenSet = false;
170
172 bool m_targetsHasBeenSet = false;
173
174 Aws::Vector<Aws::String> m_startAfter;
175 bool m_startAfterHasBeenSet = false;
176
177 ExperimentActionState m_state;
178 bool m_stateHasBeenSet = false;
179
180 Aws::Utils::DateTime m_startTime;
181 bool m_startTimeHasBeenSet = false;
182
183 Aws::Utils::DateTime m_endTime;
184 bool m_endTimeHasBeenSet = false;
185 };
186
187} // namespace Model
188} // namespace FIS
189} // namespace Aws
ExperimentAction & AddTargets(const char *key, const char *value)
void SetDescription(Aws::String &&value)
void SetStartAfter(const Aws::Vector< Aws::String > &value)
AWS_FIS_API ExperimentAction(Aws::Utils::Json::JsonView jsonValue)
void SetTargets(const Aws::Map< Aws::String, Aws::String > &value)
void SetState(const ExperimentActionState &value)
ExperimentAction & AddParameters(Aws::String &&key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
ExperimentAction & AddParameters(const char *key, Aws::String &&value)
ExperimentAction & AddStartAfter(const char *value)
void SetDescription(const char *value)
void SetStartTime(Aws::Utils::DateTime &&value)
ExperimentAction & WithStartTime(Aws::Utils::DateTime &&value)
AWS_FIS_API ExperimentAction & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetActionId(const Aws::String &value)
void SetParameters(Aws::Map< Aws::String, Aws::String > &&value)
ExperimentAction & WithStartAfter(Aws::Vector< Aws::String > &&value)
const Aws::String & GetDescription() const
const Aws::Utils::DateTime & GetEndTime() const
ExperimentAction & WithState(const ExperimentActionState &value)
ExperimentAction & WithDescription(const char *value)
void SetActionId(const char *value)
const Aws::Vector< Aws::String > & GetStartAfter() const
AWS_FIS_API Aws::Utils::Json::JsonValue Jsonize() const
ExperimentAction & AddTargets(const Aws::String &key, const Aws::String &value)
ExperimentAction & WithStartAfter(const Aws::Vector< Aws::String > &value)
void SetStartTime(const Aws::Utils::DateTime &value)
const Aws::Map< Aws::String, Aws::String > & GetTargets() const
ExperimentAction & WithDescription(const Aws::String &value)
ExperimentAction & AddStartAfter(const Aws::String &value)
ExperimentAction & WithActionId(const char *value)
void SetActionId(Aws::String &&value)
ExperimentAction & WithDescription(Aws::String &&value)
const Aws::Utils::DateTime & GetStartTime() const
ExperimentAction & WithTargets(const Aws::Map< Aws::String, Aws::String > &value)
ExperimentAction & WithEndTime(const Aws::Utils::DateTime &value)
void SetState(ExperimentActionState &&value)
ExperimentAction & AddStartAfter(Aws::String &&value)
ExperimentAction & WithParameters(const Aws::Map< Aws::String, Aws::String > &value)
ExperimentAction & AddTargets(const char *key, Aws::String &&value)
void SetDescription(const Aws::String &value)
void SetTargets(Aws::Map< Aws::String, Aws::String > &&value)
ExperimentAction & AddParameters(const Aws::String &key, const Aws::String &value)
void SetParameters(const Aws::Map< Aws::String, Aws::String > &value)
ExperimentAction & WithParameters(Aws::Map< Aws::String, Aws::String > &&value)
ExperimentAction & AddParameters(Aws::String &&key, const Aws::String &value)
ExperimentAction & WithState(ExperimentActionState &&value)
void SetStartAfter(Aws::Vector< Aws::String > &&value)
void SetEndTime(const Aws::Utils::DateTime &value)
ExperimentAction & AddTargets(Aws::String &&key, const char *value)
ExperimentAction & AddParameters(Aws::String &&key, const char *value)
ExperimentAction & WithActionId(const Aws::String &value)
ExperimentAction & AddTargets(Aws::String &&key, Aws::String &&value)
ExperimentAction & WithEndTime(Aws::Utils::DateTime &&value)
ExperimentAction & AddParameters(const Aws::String &key, Aws::String &&value)
ExperimentAction & AddParameters(const char *key, const char *value)
ExperimentAction & AddTargets(const Aws::String &key, Aws::String &&value)
const Aws::String & GetActionId() const
ExperimentAction & AddTargets(Aws::String &&key, const Aws::String &value)
ExperimentAction & WithActionId(Aws::String &&value)
void SetEndTime(Aws::Utils::DateTime &&value)
ExperimentAction & WithTargets(Aws::Map< Aws::String, Aws::String > &&value)
const ExperimentActionState & GetState() const
ExperimentAction & WithStartTime(const Aws::Utils::DateTime &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