AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AutomationExecutionInputs.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.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/ssm/model/Target.h>
12#include <aws/ssm/model/TargetLocation.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 SSM
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_SSM_API AutomationExecutionInputs() = default;
43
44
46
50 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetParameters() const { return m_parameters; }
51 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
52 template<typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
53 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
54 template<typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
55 AutomationExecutionInputs& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
56 template<typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::Vector<Aws::String>>
57 AutomationExecutionInputs& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
58 m_parametersHasBeenSet = true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value)); return *this;
59 }
61
63
67 inline const Aws::String& GetTargetParameterName() const { return m_targetParameterName; }
68 inline bool TargetParameterNameHasBeenSet() const { return m_targetParameterNameHasBeenSet; }
69 template<typename TargetParameterNameT = Aws::String>
70 void SetTargetParameterName(TargetParameterNameT&& value) { m_targetParameterNameHasBeenSet = true; m_targetParameterName = std::forward<TargetParameterNameT>(value); }
71 template<typename TargetParameterNameT = Aws::String>
72 AutomationExecutionInputs& WithTargetParameterName(TargetParameterNameT&& value) { SetTargetParameterName(std::forward<TargetParameterNameT>(value)); return *this;}
74
76
81 inline const Aws::Vector<Target>& GetTargets() const { return m_targets; }
82 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
83 template<typename TargetsT = Aws::Vector<Target>>
84 void SetTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets = std::forward<TargetsT>(value); }
85 template<typename TargetsT = Aws::Vector<Target>>
86 AutomationExecutionInputs& WithTargets(TargetsT&& value) { SetTargets(std::forward<TargetsT>(value)); return *this;}
87 template<typename TargetsT = Target>
88 AutomationExecutionInputs& AddTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets.emplace_back(std::forward<TargetsT>(value)); return *this; }
90
92
96 inline const Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>& GetTargetMaps() const { return m_targetMaps; }
97 inline bool TargetMapsHasBeenSet() const { return m_targetMapsHasBeenSet; }
98 template<typename TargetMapsT = Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>>
99 void SetTargetMaps(TargetMapsT&& value) { m_targetMapsHasBeenSet = true; m_targetMaps = std::forward<TargetMapsT>(value); }
100 template<typename TargetMapsT = Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>>
101 AutomationExecutionInputs& WithTargetMaps(TargetMapsT&& value) { SetTargetMaps(std::forward<TargetMapsT>(value)); return *this;}
102 template<typename TargetMapsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
103 AutomationExecutionInputs& AddTargetMaps(TargetMapsT&& value) { m_targetMapsHasBeenSet = true; m_targetMaps.emplace_back(std::forward<TargetMapsT>(value)); return *this; }
105
107
111 inline const Aws::Vector<TargetLocation>& GetTargetLocations() const { return m_targetLocations; }
112 inline bool TargetLocationsHasBeenSet() const { return m_targetLocationsHasBeenSet; }
113 template<typename TargetLocationsT = Aws::Vector<TargetLocation>>
114 void SetTargetLocations(TargetLocationsT&& value) { m_targetLocationsHasBeenSet = true; m_targetLocations = std::forward<TargetLocationsT>(value); }
115 template<typename TargetLocationsT = Aws::Vector<TargetLocation>>
116 AutomationExecutionInputs& WithTargetLocations(TargetLocationsT&& value) { SetTargetLocations(std::forward<TargetLocationsT>(value)); return *this;}
117 template<typename TargetLocationsT = TargetLocation>
118 AutomationExecutionInputs& AddTargetLocations(TargetLocationsT&& value) { m_targetLocationsHasBeenSet = true; m_targetLocations.emplace_back(std::forward<TargetLocationsT>(value)); return *this; }
120
122
127 inline const Aws::String& GetTargetLocationsURL() const { return m_targetLocationsURL; }
128 inline bool TargetLocationsURLHasBeenSet() const { return m_targetLocationsURLHasBeenSet; }
129 template<typename TargetLocationsURLT = Aws::String>
130 void SetTargetLocationsURL(TargetLocationsURLT&& value) { m_targetLocationsURLHasBeenSet = true; m_targetLocationsURL = std::forward<TargetLocationsURLT>(value); }
131 template<typename TargetLocationsURLT = Aws::String>
132 AutomationExecutionInputs& WithTargetLocationsURL(TargetLocationsURLT&& value) { SetTargetLocationsURL(std::forward<TargetLocationsURLT>(value)); return *this;}
134 private:
135
137 bool m_parametersHasBeenSet = false;
138
139 Aws::String m_targetParameterName;
140 bool m_targetParameterNameHasBeenSet = false;
141
142 Aws::Vector<Target> m_targets;
143 bool m_targetsHasBeenSet = false;
144
146 bool m_targetMapsHasBeenSet = false;
147
148 Aws::Vector<TargetLocation> m_targetLocations;
149 bool m_targetLocationsHasBeenSet = false;
150
151 Aws::String m_targetLocationsURL;
152 bool m_targetLocationsURLHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace SSM
157} // 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