AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ExperimentTemplateAction.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/fis/FIS_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace FIS {
22namespace Model {
23
30 public:
31 AWS_FIS_API ExperimentTemplateAction() = default;
35
37
40 inline const Aws::String& GetActionId() const { return m_actionId; }
41 inline bool ActionIdHasBeenSet() const { return m_actionIdHasBeenSet; }
42 template <typename ActionIdT = Aws::String>
43 void SetActionId(ActionIdT&& value) {
44 m_actionIdHasBeenSet = true;
45 m_actionId = std::forward<ActionIdT>(value);
46 }
47 template <typename ActionIdT = Aws::String>
49 SetActionId(std::forward<ActionIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDescription() const { return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 template <typename DescriptionT = Aws::String>
61 void SetDescription(DescriptionT&& value) {
62 m_descriptionHasBeenSet = true;
63 m_description = std::forward<DescriptionT>(value);
64 }
65 template <typename DescriptionT = Aws::String>
67 SetDescription(std::forward<DescriptionT>(value));
68 return *this;
69 }
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 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
79 void SetParameters(ParametersT&& value) {
80 m_parametersHasBeenSet = true;
81 m_parameters = std::forward<ParametersT>(value);
82 }
83 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
85 SetParameters(std::forward<ParametersT>(value));
86 return *this;
87 }
88 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::String>
89 ExperimentTemplateAction& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
90 m_parametersHasBeenSet = true;
91 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::Map<Aws::String, Aws::String>& GetTargets() const { return m_targets; }
101 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
102 template <typename TargetsT = Aws::Map<Aws::String, Aws::String>>
103 void SetTargets(TargetsT&& value) {
104 m_targetsHasBeenSet = true;
105 m_targets = std::forward<TargetsT>(value);
106 }
107 template <typename TargetsT = Aws::Map<Aws::String, Aws::String>>
109 SetTargets(std::forward<TargetsT>(value));
110 return *this;
111 }
112 template <typename TargetsKeyT = Aws::String, typename TargetsValueT = Aws::String>
113 ExperimentTemplateAction& AddTargets(TargetsKeyT&& key, TargetsValueT&& value) {
114 m_targetsHasBeenSet = true;
115 m_targets.emplace(std::forward<TargetsKeyT>(key), std::forward<TargetsValueT>(value));
116 return *this;
117 }
119
121
125 inline const Aws::Vector<Aws::String>& GetStartAfter() const { return m_startAfter; }
126 inline bool StartAfterHasBeenSet() const { return m_startAfterHasBeenSet; }
127 template <typename StartAfterT = Aws::Vector<Aws::String>>
128 void SetStartAfter(StartAfterT&& value) {
129 m_startAfterHasBeenSet = true;
130 m_startAfter = std::forward<StartAfterT>(value);
131 }
132 template <typename StartAfterT = Aws::Vector<Aws::String>>
134 SetStartAfter(std::forward<StartAfterT>(value));
135 return *this;
136 }
137 template <typename StartAfterT = Aws::String>
139 m_startAfterHasBeenSet = true;
140 m_startAfter.emplace_back(std::forward<StartAfterT>(value));
141 return *this;
142 }
144 private:
145 Aws::String m_actionId;
146
147 Aws::String m_description;
148
150
152
153 Aws::Vector<Aws::String> m_startAfter;
154 bool m_actionIdHasBeenSet = false;
155 bool m_descriptionHasBeenSet = false;
156 bool m_parametersHasBeenSet = false;
157 bool m_targetsHasBeenSet = false;
158 bool m_startAfterHasBeenSet = false;
159};
160
161} // namespace Model
162} // namespace FIS
163} // namespace Aws
ExperimentTemplateAction & WithActionId(ActionIdT &&value)
ExperimentTemplateAction & AddStartAfter(StartAfterT &&value)
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
AWS_FIS_API ExperimentTemplateAction & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetStartAfter() const
ExperimentTemplateAction & WithDescription(DescriptionT &&value)
ExperimentTemplateAction & AddTargets(TargetsKeyT &&key, TargetsValueT &&value)
ExperimentTemplateAction & WithTargets(TargetsT &&value)
ExperimentTemplateAction & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
AWS_FIS_API ExperimentTemplateAction()=default
const Aws::Map< Aws::String, Aws::String > & GetTargets() const
ExperimentTemplateAction & WithStartAfter(StartAfterT &&value)
AWS_FIS_API ExperimentTemplateAction(Aws::Utils::Json::JsonView jsonValue)
ExperimentTemplateAction & WithParameters(ParametersT &&value)
AWS_FIS_API Aws::Utils::Json::JsonValue Jsonize() const
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