AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ExperimentAction.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/fis/FIS_EXPORTS.h>
12#include <aws/fis/model/ExperimentActionState.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace FIS {
24namespace Model {
25
32 public:
33 AWS_FIS_API ExperimentAction() = default;
37
39
42 inline const Aws::String& GetActionId() const { return m_actionId; }
43 inline bool ActionIdHasBeenSet() const { return m_actionIdHasBeenSet; }
44 template <typename ActionIdT = Aws::String>
45 void SetActionId(ActionIdT&& value) {
46 m_actionIdHasBeenSet = true;
47 m_actionId = std::forward<ActionIdT>(value);
48 }
49 template <typename ActionIdT = Aws::String>
50 ExperimentAction& WithActionId(ActionIdT&& value) {
51 SetActionId(std::forward<ActionIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetDescription() const { return m_description; }
61 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
62 template <typename DescriptionT = Aws::String>
63 void SetDescription(DescriptionT&& value) {
64 m_descriptionHasBeenSet = true;
65 m_description = std::forward<DescriptionT>(value);
66 }
67 template <typename DescriptionT = Aws::String>
68 ExperimentAction& WithDescription(DescriptionT&& value) {
69 SetDescription(std::forward<DescriptionT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const { return m_parameters; }
79 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
80 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
81 void SetParameters(ParametersT&& value) {
82 m_parametersHasBeenSet = true;
83 m_parameters = std::forward<ParametersT>(value);
84 }
85 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
86 ExperimentAction& WithParameters(ParametersT&& value) {
87 SetParameters(std::forward<ParametersT>(value));
88 return *this;
89 }
90 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::String>
91 ExperimentAction& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
92 m_parametersHasBeenSet = true;
93 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::Map<Aws::String, Aws::String>& GetTargets() const { return m_targets; }
103 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
104 template <typename TargetsT = Aws::Map<Aws::String, Aws::String>>
105 void SetTargets(TargetsT&& value) {
106 m_targetsHasBeenSet = true;
107 m_targets = std::forward<TargetsT>(value);
108 }
109 template <typename TargetsT = Aws::Map<Aws::String, Aws::String>>
110 ExperimentAction& WithTargets(TargetsT&& value) {
111 SetTargets(std::forward<TargetsT>(value));
112 return *this;
113 }
114 template <typename TargetsKeyT = Aws::String, typename TargetsValueT = Aws::String>
115 ExperimentAction& AddTargets(TargetsKeyT&& key, TargetsValueT&& value) {
116 m_targetsHasBeenSet = true;
117 m_targets.emplace(std::forward<TargetsKeyT>(key), std::forward<TargetsValueT>(value));
118 return *this;
119 }
121
123
126 inline const Aws::Vector<Aws::String>& GetStartAfter() const { return m_startAfter; }
127 inline bool StartAfterHasBeenSet() const { return m_startAfterHasBeenSet; }
128 template <typename StartAfterT = Aws::Vector<Aws::String>>
129 void SetStartAfter(StartAfterT&& value) {
130 m_startAfterHasBeenSet = true;
131 m_startAfter = std::forward<StartAfterT>(value);
132 }
133 template <typename StartAfterT = Aws::Vector<Aws::String>>
134 ExperimentAction& WithStartAfter(StartAfterT&& value) {
135 SetStartAfter(std::forward<StartAfterT>(value));
136 return *this;
137 }
138 template <typename StartAfterT = Aws::String>
139 ExperimentAction& AddStartAfter(StartAfterT&& value) {
140 m_startAfterHasBeenSet = true;
141 m_startAfter.emplace_back(std::forward<StartAfterT>(value));
142 return *this;
143 }
145
147
150 inline const ExperimentActionState& GetState() const { return m_state; }
151 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
152 template <typename StateT = ExperimentActionState>
153 void SetState(StateT&& value) {
154 m_stateHasBeenSet = true;
155 m_state = std::forward<StateT>(value);
156 }
157 template <typename StateT = ExperimentActionState>
158 ExperimentAction& WithState(StateT&& value) {
159 SetState(std::forward<StateT>(value));
160 return *this;
161 }
163
165
168 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
169 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
170 template <typename StartTimeT = Aws::Utils::DateTime>
171 void SetStartTime(StartTimeT&& value) {
172 m_startTimeHasBeenSet = true;
173 m_startTime = std::forward<StartTimeT>(value);
174 }
175 template <typename StartTimeT = Aws::Utils::DateTime>
176 ExperimentAction& WithStartTime(StartTimeT&& value) {
177 SetStartTime(std::forward<StartTimeT>(value));
178 return *this;
179 }
181
183
186 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
187 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
188 template <typename EndTimeT = Aws::Utils::DateTime>
189 void SetEndTime(EndTimeT&& value) {
190 m_endTimeHasBeenSet = true;
191 m_endTime = std::forward<EndTimeT>(value);
192 }
193 template <typename EndTimeT = Aws::Utils::DateTime>
194 ExperimentAction& WithEndTime(EndTimeT&& value) {
195 SetEndTime(std::forward<EndTimeT>(value));
196 return *this;
197 }
199 private:
200 Aws::String m_actionId;
201
202 Aws::String m_description;
203
205
207
208 Aws::Vector<Aws::String> m_startAfter;
209
210 ExperimentActionState m_state;
211
212 Aws::Utils::DateTime m_startTime{};
213
214 Aws::Utils::DateTime m_endTime{};
215 bool m_actionIdHasBeenSet = false;
216 bool m_descriptionHasBeenSet = false;
217 bool m_parametersHasBeenSet = false;
218 bool m_targetsHasBeenSet = false;
219 bool m_startAfterHasBeenSet = false;
220 bool m_stateHasBeenSet = false;
221 bool m_startTimeHasBeenSet = false;
222 bool m_endTimeHasBeenSet = false;
223};
224
225} // namespace Model
226} // namespace FIS
227} // namespace Aws
AWS_FIS_API ExperimentAction(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
AWS_FIS_API ExperimentAction & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDescription() const
const Aws::Utils::DateTime & GetEndTime() const
const Aws::Vector< Aws::String > & GetStartAfter() const
AWS_FIS_API Aws::Utils::Json::JsonValue Jsonize() const
ExperimentAction & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
ExperimentAction & WithState(StateT &&value)
ExperimentAction & WithActionId(ActionIdT &&value)
ExperimentAction & WithEndTime(EndTimeT &&value)
void SetStartAfter(StartAfterT &&value)
void SetParameters(ParametersT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTargets() const
ExperimentAction & WithStartAfter(StartAfterT &&value)
const Aws::Utils::DateTime & GetStartTime() const
ExperimentAction & WithParameters(ParametersT &&value)
ExperimentAction & AddStartAfter(StartAfterT &&value)
void SetActionId(ActionIdT &&value)
void SetStartTime(StartTimeT &&value)
ExperimentAction & WithDescription(DescriptionT &&value)
void SetDescription(DescriptionT &&value)
ExperimentAction & AddTargets(TargetsKeyT &&key, TargetsValueT &&value)
ExperimentAction & WithStartTime(StartTimeT &&value)
const Aws::String & GetActionId() const
AWS_FIS_API ExperimentAction()=default
const ExperimentActionState & GetState() const
ExperimentAction & WithTargets(TargetsT &&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