AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateExperimentTemplateActionInput.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
33 public:
34 AWS_FIS_API CreateExperimentTemplateActionInput() = default;
38
40
44 inline const Aws::String& GetActionId() const { return m_actionId; }
45 inline bool ActionIdHasBeenSet() const { return m_actionIdHasBeenSet; }
46 template <typename ActionIdT = Aws::String>
47 void SetActionId(ActionIdT&& value) {
48 m_actionIdHasBeenSet = true;
49 m_actionId = std::forward<ActionIdT>(value);
50 }
51 template <typename ActionIdT = Aws::String>
53 SetActionId(std::forward<ActionIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetDescription() const { return m_description; }
63 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
64 template <typename DescriptionT = Aws::String>
65 void SetDescription(DescriptionT&& value) {
66 m_descriptionHasBeenSet = true;
67 m_description = std::forward<DescriptionT>(value);
68 }
69 template <typename DescriptionT = Aws::String>
71 SetDescription(std::forward<DescriptionT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const { return m_parameters; }
81 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
82 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
83 void SetParameters(ParametersT&& value) {
84 m_parametersHasBeenSet = true;
85 m_parameters = std::forward<ParametersT>(value);
86 }
87 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
89 SetParameters(std::forward<ParametersT>(value));
90 return *this;
91 }
92 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::String>
93 CreateExperimentTemplateActionInput& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
94 m_parametersHasBeenSet = true;
95 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::Map<Aws::String, Aws::String>& GetTargets() const { return m_targets; }
105 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
106 template <typename TargetsT = Aws::Map<Aws::String, Aws::String>>
107 void SetTargets(TargetsT&& value) {
108 m_targetsHasBeenSet = true;
109 m_targets = std::forward<TargetsT>(value);
110 }
111 template <typename TargetsT = Aws::Map<Aws::String, Aws::String>>
113 SetTargets(std::forward<TargetsT>(value));
114 return *this;
115 }
116 template <typename TargetsKeyT = Aws::String, typename TargetsValueT = Aws::String>
117 CreateExperimentTemplateActionInput& AddTargets(TargetsKeyT&& key, TargetsValueT&& value) {
118 m_targetsHasBeenSet = true;
119 m_targets.emplace(std::forward<TargetsKeyT>(key), std::forward<TargetsValueT>(value));
120 return *this;
121 }
123
125
130 inline const Aws::Vector<Aws::String>& GetStartAfter() const { return m_startAfter; }
131 inline bool StartAfterHasBeenSet() const { return m_startAfterHasBeenSet; }
132 template <typename StartAfterT = Aws::Vector<Aws::String>>
133 void SetStartAfter(StartAfterT&& value) {
134 m_startAfterHasBeenSet = true;
135 m_startAfter = std::forward<StartAfterT>(value);
136 }
137 template <typename StartAfterT = Aws::Vector<Aws::String>>
139 SetStartAfter(std::forward<StartAfterT>(value));
140 return *this;
141 }
142 template <typename StartAfterT = Aws::String>
144 m_startAfterHasBeenSet = true;
145 m_startAfter.emplace_back(std::forward<StartAfterT>(value));
146 return *this;
147 }
149 private:
150 Aws::String m_actionId;
151
152 Aws::String m_description;
153
155
157
158 Aws::Vector<Aws::String> m_startAfter;
159 bool m_actionIdHasBeenSet = false;
160 bool m_descriptionHasBeenSet = false;
161 bool m_parametersHasBeenSet = false;
162 bool m_targetsHasBeenSet = false;
163 bool m_startAfterHasBeenSet = false;
164};
165
166} // namespace Model
167} // namespace FIS
168} // namespace Aws
CreateExperimentTemplateActionInput & WithParameters(ParametersT &&value)
AWS_FIS_API Aws::Utils::Json::JsonValue Jsonize() const
CreateExperimentTemplateActionInput & WithStartAfter(StartAfterT &&value)
AWS_FIS_API CreateExperimentTemplateActionInput & operator=(Aws::Utils::Json::JsonView jsonValue)
CreateExperimentTemplateActionInput & WithDescription(DescriptionT &&value)
CreateExperimentTemplateActionInput & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
CreateExperimentTemplateActionInput & WithTargets(TargetsT &&value)
AWS_FIS_API CreateExperimentTemplateActionInput(Aws::Utils::Json::JsonView jsonValue)
CreateExperimentTemplateActionInput & AddStartAfter(StartAfterT &&value)
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
const Aws::Map< Aws::String, Aws::String > & GetTargets() const
CreateExperimentTemplateActionInput & AddTargets(TargetsKeyT &&key, TargetsValueT &&value)
CreateExperimentTemplateActionInput & WithActionId(ActionIdT &&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