AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AutomationExecutionInputs.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/ssm/SSM_EXPORTS.h>
11#include <aws/ssm/model/Target.h>
12#include <aws/ssm/model/TargetLocation.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SSM {
24namespace Model {
25
33 public:
34 AWS_SSM_API AutomationExecutionInputs() = default;
38
40
44 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetParameters() const { return m_parameters; }
45 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
46 template <typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
47 void SetParameters(ParametersT&& value) {
48 m_parametersHasBeenSet = true;
49 m_parameters = std::forward<ParametersT>(value);
50 }
51 template <typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
53 SetParameters(std::forward<ParametersT>(value));
54 return *this;
55 }
56 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::Vector<Aws::String>>
57 AutomationExecutionInputs& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
58 m_parametersHasBeenSet = true;
59 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
60 return *this;
61 }
63
65
69 inline const Aws::String& GetTargetParameterName() const { return m_targetParameterName; }
70 inline bool TargetParameterNameHasBeenSet() const { return m_targetParameterNameHasBeenSet; }
71 template <typename TargetParameterNameT = Aws::String>
72 void SetTargetParameterName(TargetParameterNameT&& value) {
73 m_targetParameterNameHasBeenSet = true;
74 m_targetParameterName = std::forward<TargetParameterNameT>(value);
75 }
76 template <typename TargetParameterNameT = Aws::String>
77 AutomationExecutionInputs& WithTargetParameterName(TargetParameterNameT&& value) {
78 SetTargetParameterName(std::forward<TargetParameterNameT>(value));
79 return *this;
80 }
82
84
89 inline const Aws::Vector<Target>& GetTargets() const { return m_targets; }
90 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
91 template <typename TargetsT = Aws::Vector<Target>>
92 void SetTargets(TargetsT&& value) {
93 m_targetsHasBeenSet = true;
94 m_targets = std::forward<TargetsT>(value);
95 }
96 template <typename TargetsT = Aws::Vector<Target>>
98 SetTargets(std::forward<TargetsT>(value));
99 return *this;
100 }
101 template <typename TargetsT = Target>
103 m_targetsHasBeenSet = true;
104 m_targets.emplace_back(std::forward<TargetsT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>& GetTargetMaps() const { return m_targetMaps; }
115 inline bool TargetMapsHasBeenSet() const { return m_targetMapsHasBeenSet; }
116 template <typename TargetMapsT = Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>>
117 void SetTargetMaps(TargetMapsT&& value) {
118 m_targetMapsHasBeenSet = true;
119 m_targetMaps = std::forward<TargetMapsT>(value);
120 }
121 template <typename TargetMapsT = Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>>
123 SetTargetMaps(std::forward<TargetMapsT>(value));
124 return *this;
125 }
126 template <typename TargetMapsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
128 m_targetMapsHasBeenSet = true;
129 m_targetMaps.emplace_back(std::forward<TargetMapsT>(value));
130 return *this;
131 }
133
135
139 inline const Aws::Vector<TargetLocation>& GetTargetLocations() const { return m_targetLocations; }
140 inline bool TargetLocationsHasBeenSet() const { return m_targetLocationsHasBeenSet; }
141 template <typename TargetLocationsT = Aws::Vector<TargetLocation>>
142 void SetTargetLocations(TargetLocationsT&& value) {
143 m_targetLocationsHasBeenSet = true;
144 m_targetLocations = std::forward<TargetLocationsT>(value);
145 }
146 template <typename TargetLocationsT = Aws::Vector<TargetLocation>>
148 SetTargetLocations(std::forward<TargetLocationsT>(value));
149 return *this;
150 }
151 template <typename TargetLocationsT = TargetLocation>
153 m_targetLocationsHasBeenSet = true;
154 m_targetLocations.emplace_back(std::forward<TargetLocationsT>(value));
155 return *this;
156 }
158
160
165 inline const Aws::String& GetTargetLocationsURL() const { return m_targetLocationsURL; }
166 inline bool TargetLocationsURLHasBeenSet() const { return m_targetLocationsURLHasBeenSet; }
167 template <typename TargetLocationsURLT = Aws::String>
168 void SetTargetLocationsURL(TargetLocationsURLT&& value) {
169 m_targetLocationsURLHasBeenSet = true;
170 m_targetLocationsURL = std::forward<TargetLocationsURLT>(value);
171 }
172 template <typename TargetLocationsURLT = Aws::String>
173 AutomationExecutionInputs& WithTargetLocationsURL(TargetLocationsURLT&& value) {
174 SetTargetLocationsURL(std::forward<TargetLocationsURLT>(value));
175 return *this;
176 }
178 private:
180
181 Aws::String m_targetParameterName;
182
183 Aws::Vector<Target> m_targets;
184
186
187 Aws::Vector<TargetLocation> m_targetLocations;
188
189 Aws::String m_targetLocationsURL;
190 bool m_parametersHasBeenSet = false;
191 bool m_targetParameterNameHasBeenSet = false;
192 bool m_targetsHasBeenSet = false;
193 bool m_targetMapsHasBeenSet = false;
194 bool m_targetLocationsHasBeenSet = false;
195 bool m_targetLocationsURLHasBeenSet = false;
196};
197
198} // namespace Model
199} // namespace SSM
200} // namespace Aws
AutomationExecutionInputs & WithParameters(ParametersT &&value)
void SetTargetParameterName(TargetParameterNameT &&value)
const Aws::Vector< TargetLocation > & GetTargetLocations() const
AutomationExecutionInputs & WithTargets(TargetsT &&value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SSM_API AutomationExecutionInputs(Aws::Utils::Json::JsonView jsonValue)
AWS_SSM_API AutomationExecutionInputs()=default
AutomationExecutionInputs & WithTargetLocations(TargetLocationsT &&value)
AutomationExecutionInputs & AddTargetLocations(TargetLocationsT &&value)
void SetTargetLocationsURL(TargetLocationsURLT &&value)
AutomationExecutionInputs & WithTargetMaps(TargetMapsT &&value)
AutomationExecutionInputs & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
AWS_SSM_API AutomationExecutionInputs & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetParameters() const
AutomationExecutionInputs & AddTargetMaps(TargetMapsT &&value)
AutomationExecutionInputs & WithTargetParameterName(TargetParameterNameT &&value)
AutomationExecutionInputs & AddTargets(TargetsT &&value)
const Aws::Vector< Aws::Map< Aws::String, Aws::Vector< Aws::String > > > & GetTargetMaps() const
const Aws::Vector< Target > & GetTargets() const
AutomationExecutionInputs & WithTargetLocationsURL(TargetLocationsURLT &&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