AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Runbook.h
1
6#pragma once
7#include <aws/ssm/SSM_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/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
38 class Runbook
39 {
40 public:
41 AWS_SSM_API Runbook() = default;
42 AWS_SSM_API Runbook(Aws::Utils::Json::JsonView jsonValue);
45
46
48
51 inline const Aws::String& GetDocumentName() const { return m_documentName; }
52 inline bool DocumentNameHasBeenSet() const { return m_documentNameHasBeenSet; }
53 template<typename DocumentNameT = Aws::String>
54 void SetDocumentName(DocumentNameT&& value) { m_documentNameHasBeenSet = true; m_documentName = std::forward<DocumentNameT>(value); }
55 template<typename DocumentNameT = Aws::String>
56 Runbook& WithDocumentName(DocumentNameT&& value) { SetDocumentName(std::forward<DocumentNameT>(value)); return *this;}
58
60
63 inline const Aws::String& GetDocumentVersion() const { return m_documentVersion; }
64 inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
65 template<typename DocumentVersionT = Aws::String>
66 void SetDocumentVersion(DocumentVersionT&& value) { m_documentVersionHasBeenSet = true; m_documentVersion = std::forward<DocumentVersionT>(value); }
67 template<typename DocumentVersionT = Aws::String>
68 Runbook& WithDocumentVersion(DocumentVersionT&& value) { SetDocumentVersion(std::forward<DocumentVersionT>(value)); return *this;}
70
72
76 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetParameters() const { return m_parameters; }
77 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
78 template<typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
79 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
80 template<typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
81 Runbook& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
82 template<typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::Vector<Aws::String>>
83 Runbook& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
84 m_parametersHasBeenSet = true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value)); return *this;
85 }
87
89
93 inline const Aws::String& GetTargetParameterName() const { return m_targetParameterName; }
94 inline bool TargetParameterNameHasBeenSet() const { return m_targetParameterNameHasBeenSet; }
95 template<typename TargetParameterNameT = Aws::String>
96 void SetTargetParameterName(TargetParameterNameT&& value) { m_targetParameterNameHasBeenSet = true; m_targetParameterName = std::forward<TargetParameterNameT>(value); }
97 template<typename TargetParameterNameT = Aws::String>
98 Runbook& WithTargetParameterName(TargetParameterNameT&& value) { SetTargetParameterName(std::forward<TargetParameterNameT>(value)); return *this;}
100
102
106 inline const Aws::Vector<Target>& GetTargets() const { return m_targets; }
107 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
108 template<typename TargetsT = Aws::Vector<Target>>
109 void SetTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets = std::forward<TargetsT>(value); }
110 template<typename TargetsT = Aws::Vector<Target>>
111 Runbook& WithTargets(TargetsT&& value) { SetTargets(std::forward<TargetsT>(value)); return *this;}
112 template<typename TargetsT = Target>
113 Runbook& AddTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets.emplace_back(std::forward<TargetsT>(value)); return *this; }
115
117
121 inline const Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>& GetTargetMaps() const { return m_targetMaps; }
122 inline bool TargetMapsHasBeenSet() const { return m_targetMapsHasBeenSet; }
123 template<typename TargetMapsT = Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>>
124 void SetTargetMaps(TargetMapsT&& value) { m_targetMapsHasBeenSet = true; m_targetMaps = std::forward<TargetMapsT>(value); }
125 template<typename TargetMapsT = Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>>
126 Runbook& WithTargetMaps(TargetMapsT&& value) { SetTargetMaps(std::forward<TargetMapsT>(value)); return *this;}
127 template<typename TargetMapsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
128 Runbook& AddTargetMaps(TargetMapsT&& value) { m_targetMapsHasBeenSet = true; m_targetMaps.emplace_back(std::forward<TargetMapsT>(value)); return *this; }
130
132
137 inline const Aws::String& GetMaxConcurrency() const { return m_maxConcurrency; }
138 inline bool MaxConcurrencyHasBeenSet() const { return m_maxConcurrencyHasBeenSet; }
139 template<typename MaxConcurrencyT = Aws::String>
140 void SetMaxConcurrency(MaxConcurrencyT&& value) { m_maxConcurrencyHasBeenSet = true; m_maxConcurrency = std::forward<MaxConcurrencyT>(value); }
141 template<typename MaxConcurrencyT = Aws::String>
142 Runbook& WithMaxConcurrency(MaxConcurrencyT&& value) { SetMaxConcurrency(std::forward<MaxConcurrencyT>(value)); return *this;}
144
146
151 inline const Aws::String& GetMaxErrors() const { return m_maxErrors; }
152 inline bool MaxErrorsHasBeenSet() const { return m_maxErrorsHasBeenSet; }
153 template<typename MaxErrorsT = Aws::String>
154 void SetMaxErrors(MaxErrorsT&& value) { m_maxErrorsHasBeenSet = true; m_maxErrors = std::forward<MaxErrorsT>(value); }
155 template<typename MaxErrorsT = Aws::String>
156 Runbook& WithMaxErrors(MaxErrorsT&& value) { SetMaxErrors(std::forward<MaxErrorsT>(value)); return *this;}
158
160
164 inline const Aws::Vector<TargetLocation>& GetTargetLocations() const { return m_targetLocations; }
165 inline bool TargetLocationsHasBeenSet() const { return m_targetLocationsHasBeenSet; }
166 template<typename TargetLocationsT = Aws::Vector<TargetLocation>>
167 void SetTargetLocations(TargetLocationsT&& value) { m_targetLocationsHasBeenSet = true; m_targetLocations = std::forward<TargetLocationsT>(value); }
168 template<typename TargetLocationsT = Aws::Vector<TargetLocation>>
169 Runbook& WithTargetLocations(TargetLocationsT&& value) { SetTargetLocations(std::forward<TargetLocationsT>(value)); return *this;}
170 template<typename TargetLocationsT = TargetLocation>
171 Runbook& AddTargetLocations(TargetLocationsT&& value) { m_targetLocationsHasBeenSet = true; m_targetLocations.emplace_back(std::forward<TargetLocationsT>(value)); return *this; }
173 private:
174
175 Aws::String m_documentName;
176 bool m_documentNameHasBeenSet = false;
177
178 Aws::String m_documentVersion;
179 bool m_documentVersionHasBeenSet = false;
180
182 bool m_parametersHasBeenSet = false;
183
184 Aws::String m_targetParameterName;
185 bool m_targetParameterNameHasBeenSet = false;
186
187 Aws::Vector<Target> m_targets;
188 bool m_targetsHasBeenSet = false;
189
191 bool m_targetMapsHasBeenSet = false;
192
193 Aws::String m_maxConcurrency;
194 bool m_maxConcurrencyHasBeenSet = false;
195
196 Aws::String m_maxErrors;
197 bool m_maxErrorsHasBeenSet = false;
198
199 Aws::Vector<TargetLocation> m_targetLocations;
200 bool m_targetLocationsHasBeenSet = false;
201 };
202
203} // namespace Model
204} // namespace SSM
205} // namespace Aws
Runbook & WithParameters(ParametersT &&value)
Definition Runbook.h:81
Runbook & AddTargets(TargetsT &&value)
Definition Runbook.h:113
void SetTargetLocations(TargetLocationsT &&value)
Definition Runbook.h:167
bool ParametersHasBeenSet() const
Definition Runbook.h:77
void SetTargets(TargetsT &&value)
Definition Runbook.h:109
bool TargetMapsHasBeenSet() const
Definition Runbook.h:122
bool MaxConcurrencyHasBeenSet() const
Definition Runbook.h:138
Runbook & WithMaxErrors(MaxErrorsT &&value)
Definition Runbook.h:156
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetParameters() const
Definition Runbook.h:76
Runbook & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
Definition Runbook.h:83
bool MaxErrorsHasBeenSet() const
Definition Runbook.h:152
const Aws::String & GetDocumentVersion() const
Definition Runbook.h:63
const Aws::Vector< Target > & GetTargets() const
Definition Runbook.h:106
Runbook & WithMaxConcurrency(MaxConcurrencyT &&value)
Definition Runbook.h:142
void SetDocumentVersion(DocumentVersionT &&value)
Definition Runbook.h:66
void SetMaxConcurrency(MaxConcurrencyT &&value)
Definition Runbook.h:140
Runbook & WithTargetLocations(TargetLocationsT &&value)
Definition Runbook.h:169
const Aws::Vector< TargetLocation > & GetTargetLocations() const
Definition Runbook.h:164
void SetMaxErrors(MaxErrorsT &&value)
Definition Runbook.h:154
Runbook & WithTargets(TargetsT &&value)
Definition Runbook.h:111
void SetDocumentName(DocumentNameT &&value)
Definition Runbook.h:54
void SetTargetMaps(TargetMapsT &&value)
Definition Runbook.h:124
AWS_SSM_API Runbook & operator=(Aws::Utils::Json::JsonView jsonValue)
bool DocumentNameHasBeenSet() const
Definition Runbook.h:52
const Aws::String & GetDocumentName() const
Definition Runbook.h:51
const Aws::String & GetMaxConcurrency() const
Definition Runbook.h:137
Runbook & WithTargetMaps(TargetMapsT &&value)
Definition Runbook.h:126
bool TargetParameterNameHasBeenSet() const
Definition Runbook.h:94
const Aws::String & GetMaxErrors() const
Definition Runbook.h:151
const Aws::Vector< Aws::Map< Aws::String, Aws::Vector< Aws::String > > > & GetTargetMaps() const
Definition Runbook.h:121
AWS_SSM_API Runbook(Aws::Utils::Json::JsonView jsonValue)
void SetTargetParameterName(TargetParameterNameT &&value)
Definition Runbook.h:96
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SSM_API Runbook()=default
Runbook & AddTargetMaps(TargetMapsT &&value)
Definition Runbook.h:128
Runbook & WithTargetParameterName(TargetParameterNameT &&value)
Definition Runbook.h:98
Runbook & AddTargetLocations(TargetLocationsT &&value)
Definition Runbook.h:171
bool TargetsHasBeenSet() const
Definition Runbook.h:107
void SetParameters(ParametersT &&value)
Definition Runbook.h:79
Runbook & WithDocumentName(DocumentNameT &&value)
Definition Runbook.h:56
const Aws::String & GetTargetParameterName() const
Definition Runbook.h:93
bool TargetLocationsHasBeenSet() const
Definition Runbook.h:165
bool DocumentVersionHasBeenSet() const
Definition Runbook.h:64
Runbook & WithDocumentVersion(DocumentVersionT &&value)
Definition Runbook.h:68
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