AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
StartChangeRequestExecutionRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.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/SSMRequest.h>
12#include <aws/ssm/SSM_EXPORTS.h>
13#include <aws/ssm/model/Runbook.h>
14#include <aws/ssm/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19namespace SSM {
20namespace Model {
21
25 public:
26 AWS_SSM_API StartChangeRequestExecutionRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "StartChangeRequestExecution"; }
33
34 AWS_SSM_API Aws::String SerializePayload() const override;
35
37
39
45 inline const Aws::Utils::DateTime& GetScheduledTime() const { return m_scheduledTime; }
46 inline bool ScheduledTimeHasBeenSet() const { return m_scheduledTimeHasBeenSet; }
47 template <typename ScheduledTimeT = Aws::Utils::DateTime>
48 void SetScheduledTime(ScheduledTimeT&& value) {
49 m_scheduledTimeHasBeenSet = true;
50 m_scheduledTime = std::forward<ScheduledTimeT>(value);
51 }
52 template <typename ScheduledTimeT = Aws::Utils::DateTime>
54 SetScheduledTime(std::forward<ScheduledTimeT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::String& GetDocumentName() const { return m_documentName; }
65 inline bool DocumentNameHasBeenSet() const { return m_documentNameHasBeenSet; }
66 template <typename DocumentNameT = Aws::String>
67 void SetDocumentName(DocumentNameT&& value) {
68 m_documentNameHasBeenSet = true;
69 m_documentName = std::forward<DocumentNameT>(value);
70 }
71 template <typename DocumentNameT = Aws::String>
73 SetDocumentName(std::forward<DocumentNameT>(value));
74 return *this;
75 }
77
79
83 inline const Aws::String& GetDocumentVersion() const { return m_documentVersion; }
84 inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
85 template <typename DocumentVersionT = Aws::String>
86 void SetDocumentVersion(DocumentVersionT&& value) {
87 m_documentVersionHasBeenSet = true;
88 m_documentVersion = std::forward<DocumentVersionT>(value);
89 }
90 template <typename DocumentVersionT = Aws::String>
92 SetDocumentVersion(std::forward<DocumentVersionT>(value));
93 return *this;
94 }
96
98
102 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetParameters() const { return m_parameters; }
103 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
104 template <typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
105 void SetParameters(ParametersT&& value) {
106 m_parametersHasBeenSet = true;
107 m_parameters = std::forward<ParametersT>(value);
108 }
109 template <typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
111 SetParameters(std::forward<ParametersT>(value));
112 return *this;
113 }
114 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::Vector<Aws::String>>
115 StartChangeRequestExecutionRequest& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
116 m_parametersHasBeenSet = true;
117 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
118 return *this;
119 }
121
123
127 inline const Aws::String& GetChangeRequestName() const { return m_changeRequestName; }
128 inline bool ChangeRequestNameHasBeenSet() const { return m_changeRequestNameHasBeenSet; }
129 template <typename ChangeRequestNameT = Aws::String>
130 void SetChangeRequestName(ChangeRequestNameT&& value) {
131 m_changeRequestNameHasBeenSet = true;
132 m_changeRequestName = std::forward<ChangeRequestNameT>(value);
133 }
134 template <typename ChangeRequestNameT = Aws::String>
136 SetChangeRequestName(std::forward<ChangeRequestNameT>(value));
137 return *this;
138 }
140
142
146 inline const Aws::String& GetClientToken() const { return m_clientToken; }
147 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
148 template <typename ClientTokenT = Aws::String>
149 void SetClientToken(ClientTokenT&& value) {
150 m_clientTokenHasBeenSet = true;
151 m_clientToken = std::forward<ClientTokenT>(value);
152 }
153 template <typename ClientTokenT = Aws::String>
155 SetClientToken(std::forward<ClientTokenT>(value));
156 return *this;
157 }
159
161
172 inline bool GetAutoApprove() const { return m_autoApprove; }
173 inline bool AutoApproveHasBeenSet() const { return m_autoApproveHasBeenSet; }
174 inline void SetAutoApprove(bool value) {
175 m_autoApproveHasBeenSet = true;
176 m_autoApprove = value;
177 }
179 SetAutoApprove(value);
180 return *this;
181 }
183
185
191 inline const Aws::Vector<Runbook>& GetRunbooks() const { return m_runbooks; }
192 inline bool RunbooksHasBeenSet() const { return m_runbooksHasBeenSet; }
193 template <typename RunbooksT = Aws::Vector<Runbook>>
194 void SetRunbooks(RunbooksT&& value) {
195 m_runbooksHasBeenSet = true;
196 m_runbooks = std::forward<RunbooksT>(value);
197 }
198 template <typename RunbooksT = Aws::Vector<Runbook>>
200 SetRunbooks(std::forward<RunbooksT>(value));
201 return *this;
202 }
203 template <typename RunbooksT = Runbook>
205 m_runbooksHasBeenSet = true;
206 m_runbooks.emplace_back(std::forward<RunbooksT>(value));
207 return *this;
208 }
210
212
226 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
227 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
228 template <typename TagsT = Aws::Vector<Tag>>
229 void SetTags(TagsT&& value) {
230 m_tagsHasBeenSet = true;
231 m_tags = std::forward<TagsT>(value);
232 }
233 template <typename TagsT = Aws::Vector<Tag>>
235 SetTags(std::forward<TagsT>(value));
236 return *this;
237 }
238 template <typename TagsT = Tag>
240 m_tagsHasBeenSet = true;
241 m_tags.emplace_back(std::forward<TagsT>(value));
242 return *this;
243 }
245
247
252 inline const Aws::Utils::DateTime& GetScheduledEndTime() const { return m_scheduledEndTime; }
253 inline bool ScheduledEndTimeHasBeenSet() const { return m_scheduledEndTimeHasBeenSet; }
254 template <typename ScheduledEndTimeT = Aws::Utils::DateTime>
255 void SetScheduledEndTime(ScheduledEndTimeT&& value) {
256 m_scheduledEndTimeHasBeenSet = true;
257 m_scheduledEndTime = std::forward<ScheduledEndTimeT>(value);
258 }
259 template <typename ScheduledEndTimeT = Aws::Utils::DateTime>
261 SetScheduledEndTime(std::forward<ScheduledEndTimeT>(value));
262 return *this;
263 }
265
267
272 inline const Aws::String& GetChangeDetails() const { return m_changeDetails; }
273 inline bool ChangeDetailsHasBeenSet() const { return m_changeDetailsHasBeenSet; }
274 template <typename ChangeDetailsT = Aws::String>
275 void SetChangeDetails(ChangeDetailsT&& value) {
276 m_changeDetailsHasBeenSet = true;
277 m_changeDetails = std::forward<ChangeDetailsT>(value);
278 }
279 template <typename ChangeDetailsT = Aws::String>
281 SetChangeDetails(std::forward<ChangeDetailsT>(value));
282 return *this;
283 }
285 private:
286 Aws::Utils::DateTime m_scheduledTime{};
287
288 Aws::String m_documentName;
289
290 Aws::String m_documentVersion;
291
293
294 Aws::String m_changeRequestName;
295
296 Aws::String m_clientToken;
297
298 bool m_autoApprove{false};
299
300 Aws::Vector<Runbook> m_runbooks;
301
302 Aws::Vector<Tag> m_tags;
303
304 Aws::Utils::DateTime m_scheduledEndTime{};
305
306 Aws::String m_changeDetails;
307 bool m_scheduledTimeHasBeenSet = false;
308 bool m_documentNameHasBeenSet = false;
309 bool m_documentVersionHasBeenSet = false;
310 bool m_parametersHasBeenSet = false;
311 bool m_changeRequestNameHasBeenSet = false;
312 bool m_clientTokenHasBeenSet = false;
313 bool m_autoApproveHasBeenSet = false;
314 bool m_runbooksHasBeenSet = false;
315 bool m_tagsHasBeenSet = false;
316 bool m_scheduledEndTimeHasBeenSet = false;
317 bool m_changeDetailsHasBeenSet = false;
318};
319
320} // namespace Model
321} // namespace SSM
322} // namespace Aws
StartChangeRequestExecutionRequest & WithRunbooks(RunbooksT &&value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartChangeRequestExecutionRequest & AddRunbooks(RunbooksT &&value)
StartChangeRequestExecutionRequest & WithChangeRequestName(ChangeRequestNameT &&value)
AWS_SSM_API Aws::String SerializePayload() const override
StartChangeRequestExecutionRequest & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
StartChangeRequestExecutionRequest & WithParameters(ParametersT &&value)
StartChangeRequestExecutionRequest & WithChangeDetails(ChangeDetailsT &&value)
StartChangeRequestExecutionRequest & WithDocumentVersion(DocumentVersionT &&value)
StartChangeRequestExecutionRequest & WithScheduledEndTime(ScheduledEndTimeT &&value)
StartChangeRequestExecutionRequest & AddTags(TagsT &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetParameters() const
StartChangeRequestExecutionRequest & WithClientToken(ClientTokenT &&value)
StartChangeRequestExecutionRequest & WithAutoApprove(bool value)
StartChangeRequestExecutionRequest & WithTags(TagsT &&value)
StartChangeRequestExecutionRequest & WithDocumentName(DocumentNameT &&value)
StartChangeRequestExecutionRequest & WithScheduledTime(ScheduledTimeT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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