AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
42
43
45
48 inline const Aws::String& GetActionId() const { return m_actionId; }
49 inline bool ActionIdHasBeenSet() const { return m_actionIdHasBeenSet; }
50 template<typename ActionIdT = Aws::String>
51 void SetActionId(ActionIdT&& value) { m_actionIdHasBeenSet = true; m_actionId = std::forward<ActionIdT>(value); }
52 template<typename ActionIdT = Aws::String>
53 ExperimentAction& WithActionId(ActionIdT&& value) { SetActionId(std::forward<ActionIdT>(value)); return *this;}
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) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
64 template<typename DescriptionT = Aws::String>
65 ExperimentAction& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
67
69
72 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const { return m_parameters; }
73 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
74 template<typename ParametersT = Aws::Map<Aws::String, Aws::String>>
75 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
76 template<typename ParametersT = Aws::Map<Aws::String, Aws::String>>
77 ExperimentAction& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
78 template<typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::String>
79 ExperimentAction& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
80 m_parametersHasBeenSet = true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value)); return *this;
81 }
83
85
88 inline const Aws::Map<Aws::String, Aws::String>& GetTargets() const { return m_targets; }
89 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
90 template<typename TargetsT = Aws::Map<Aws::String, Aws::String>>
91 void SetTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets = std::forward<TargetsT>(value); }
92 template<typename TargetsT = Aws::Map<Aws::String, Aws::String>>
93 ExperimentAction& WithTargets(TargetsT&& value) { SetTargets(std::forward<TargetsT>(value)); return *this;}
94 template<typename TargetsKeyT = Aws::String, typename TargetsValueT = Aws::String>
95 ExperimentAction& AddTargets(TargetsKeyT&& key, TargetsValueT&& value) {
96 m_targetsHasBeenSet = true; m_targets.emplace(std::forward<TargetsKeyT>(key), std::forward<TargetsValueT>(value)); return *this;
97 }
99
101
104 inline const Aws::Vector<Aws::String>& GetStartAfter() const { return m_startAfter; }
105 inline bool StartAfterHasBeenSet() const { return m_startAfterHasBeenSet; }
106 template<typename StartAfterT = Aws::Vector<Aws::String>>
107 void SetStartAfter(StartAfterT&& value) { m_startAfterHasBeenSet = true; m_startAfter = std::forward<StartAfterT>(value); }
108 template<typename StartAfterT = Aws::Vector<Aws::String>>
109 ExperimentAction& WithStartAfter(StartAfterT&& value) { SetStartAfter(std::forward<StartAfterT>(value)); return *this;}
110 template<typename StartAfterT = Aws::String>
111 ExperimentAction& AddStartAfter(StartAfterT&& value) { m_startAfterHasBeenSet = true; m_startAfter.emplace_back(std::forward<StartAfterT>(value)); return *this; }
113
115
118 inline const ExperimentActionState& GetState() const { return m_state; }
119 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
120 template<typename StateT = ExperimentActionState>
121 void SetState(StateT&& value) { m_stateHasBeenSet = true; m_state = std::forward<StateT>(value); }
122 template<typename StateT = ExperimentActionState>
123 ExperimentAction& WithState(StateT&& value) { SetState(std::forward<StateT>(value)); return *this;}
125
127
130 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
131 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
132 template<typename StartTimeT = Aws::Utils::DateTime>
133 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
134 template<typename StartTimeT = Aws::Utils::DateTime>
135 ExperimentAction& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
137
139
142 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
143 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
144 template<typename EndTimeT = Aws::Utils::DateTime>
145 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
146 template<typename EndTimeT = Aws::Utils::DateTime>
147 ExperimentAction& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
149 private:
150
151 Aws::String m_actionId;
152 bool m_actionIdHasBeenSet = false;
153
154 Aws::String m_description;
155 bool m_descriptionHasBeenSet = false;
156
158 bool m_parametersHasBeenSet = false;
159
161 bool m_targetsHasBeenSet = false;
162
163 Aws::Vector<Aws::String> m_startAfter;
164 bool m_startAfterHasBeenSet = false;
165
166 ExperimentActionState m_state;
167 bool m_stateHasBeenSet = false;
168
169 Aws::Utils::DateTime m_startTime{};
170 bool m_startTimeHasBeenSet = false;
171
172 Aws::Utils::DateTime m_endTime{};
173 bool m_endTimeHasBeenSet = false;
174 };
175
176} // namespace Model
177} // namespace FIS
178} // namespace Aws
AWS_FIS_API ExperimentAction(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
void SetTargets(TargetsT &&value)
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