AWS SDK for C++

AWS SDK for C++ Version 1.11.555

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Loading...
Searching...
No Matches
StartChangeRequestExecutionRequest.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/ssm/SSMRequest.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/ssm/model/Runbook.h>
14#include <aws/ssm/model/Tag.h>
15#include <utility>
16
17namespace Aws
18{
19namespace SSM
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_SSM_API StartChangeRequestExecutionRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "StartChangeRequestExecution"; }
36
37 AWS_SSM_API Aws::String SerializePayload() const override;
38
40
41
43
49 inline const Aws::Utils::DateTime& GetScheduledTime() const { return m_scheduledTime; }
50 inline bool ScheduledTimeHasBeenSet() const { return m_scheduledTimeHasBeenSet; }
51 template<typename ScheduledTimeT = Aws::Utils::DateTime>
52 void SetScheduledTime(ScheduledTimeT&& value) { m_scheduledTimeHasBeenSet = true; m_scheduledTime = std::forward<ScheduledTimeT>(value); }
53 template<typename ScheduledTimeT = Aws::Utils::DateTime>
54 StartChangeRequestExecutionRequest& WithScheduledTime(ScheduledTimeT&& value) { SetScheduledTime(std::forward<ScheduledTimeT>(value)); return *this;}
56
58
62 inline const Aws::String& GetDocumentName() const { return m_documentName; }
63 inline bool DocumentNameHasBeenSet() const { return m_documentNameHasBeenSet; }
64 template<typename DocumentNameT = Aws::String>
65 void SetDocumentName(DocumentNameT&& value) { m_documentNameHasBeenSet = true; m_documentName = std::forward<DocumentNameT>(value); }
66 template<typename DocumentNameT = Aws::String>
67 StartChangeRequestExecutionRequest& WithDocumentName(DocumentNameT&& value) { SetDocumentName(std::forward<DocumentNameT>(value)); return *this;}
69
71
75 inline const Aws::String& GetDocumentVersion() const { return m_documentVersion; }
76 inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
77 template<typename DocumentVersionT = Aws::String>
78 void SetDocumentVersion(DocumentVersionT&& value) { m_documentVersionHasBeenSet = true; m_documentVersion = std::forward<DocumentVersionT>(value); }
79 template<typename DocumentVersionT = Aws::String>
80 StartChangeRequestExecutionRequest& WithDocumentVersion(DocumentVersionT&& value) { SetDocumentVersion(std::forward<DocumentVersionT>(value)); return *this;}
82
84
88 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetParameters() const { return m_parameters; }
89 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
90 template<typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
91 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
92 template<typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
93 StartChangeRequestExecutionRequest& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
94 template<typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::Vector<Aws::String>>
95 StartChangeRequestExecutionRequest& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
96 m_parametersHasBeenSet = true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value)); return *this;
97 }
99
101
105 inline const Aws::String& GetChangeRequestName() const { return m_changeRequestName; }
106 inline bool ChangeRequestNameHasBeenSet() const { return m_changeRequestNameHasBeenSet; }
107 template<typename ChangeRequestNameT = Aws::String>
108 void SetChangeRequestName(ChangeRequestNameT&& value) { m_changeRequestNameHasBeenSet = true; m_changeRequestName = std::forward<ChangeRequestNameT>(value); }
109 template<typename ChangeRequestNameT = Aws::String>
110 StartChangeRequestExecutionRequest& WithChangeRequestName(ChangeRequestNameT&& value) { SetChangeRequestName(std::forward<ChangeRequestNameT>(value)); return *this;}
112
114
118 inline const Aws::String& GetClientToken() const { return m_clientToken; }
119 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
120 template<typename ClientTokenT = Aws::String>
121 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
122 template<typename ClientTokenT = Aws::String>
123 StartChangeRequestExecutionRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
125
127
138 inline bool GetAutoApprove() const { return m_autoApprove; }
139 inline bool AutoApproveHasBeenSet() const { return m_autoApproveHasBeenSet; }
140 inline void SetAutoApprove(bool value) { m_autoApproveHasBeenSet = true; m_autoApprove = value; }
141 inline StartChangeRequestExecutionRequest& WithAutoApprove(bool value) { SetAutoApprove(value); return *this;}
143
145
151 inline const Aws::Vector<Runbook>& GetRunbooks() const { return m_runbooks; }
152 inline bool RunbooksHasBeenSet() const { return m_runbooksHasBeenSet; }
153 template<typename RunbooksT = Aws::Vector<Runbook>>
154 void SetRunbooks(RunbooksT&& value) { m_runbooksHasBeenSet = true; m_runbooks = std::forward<RunbooksT>(value); }
155 template<typename RunbooksT = Aws::Vector<Runbook>>
156 StartChangeRequestExecutionRequest& WithRunbooks(RunbooksT&& value) { SetRunbooks(std::forward<RunbooksT>(value)); return *this;}
157 template<typename RunbooksT = Runbook>
158 StartChangeRequestExecutionRequest& AddRunbooks(RunbooksT&& value) { m_runbooksHasBeenSet = true; m_runbooks.emplace_back(std::forward<RunbooksT>(value)); return *this; }
160
162
176 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
177 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
178 template<typename TagsT = Aws::Vector<Tag>>
179 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
180 template<typename TagsT = Aws::Vector<Tag>>
181 StartChangeRequestExecutionRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
182 template<typename TagsT = Tag>
183 StartChangeRequestExecutionRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
185
187
192 inline const Aws::Utils::DateTime& GetScheduledEndTime() const { return m_scheduledEndTime; }
193 inline bool ScheduledEndTimeHasBeenSet() const { return m_scheduledEndTimeHasBeenSet; }
194 template<typename ScheduledEndTimeT = Aws::Utils::DateTime>
195 void SetScheduledEndTime(ScheduledEndTimeT&& value) { m_scheduledEndTimeHasBeenSet = true; m_scheduledEndTime = std::forward<ScheduledEndTimeT>(value); }
196 template<typename ScheduledEndTimeT = Aws::Utils::DateTime>
197 StartChangeRequestExecutionRequest& WithScheduledEndTime(ScheduledEndTimeT&& value) { SetScheduledEndTime(std::forward<ScheduledEndTimeT>(value)); return *this;}
199
201
206 inline const Aws::String& GetChangeDetails() const { return m_changeDetails; }
207 inline bool ChangeDetailsHasBeenSet() const { return m_changeDetailsHasBeenSet; }
208 template<typename ChangeDetailsT = Aws::String>
209 void SetChangeDetails(ChangeDetailsT&& value) { m_changeDetailsHasBeenSet = true; m_changeDetails = std::forward<ChangeDetailsT>(value); }
210 template<typename ChangeDetailsT = Aws::String>
211 StartChangeRequestExecutionRequest& WithChangeDetails(ChangeDetailsT&& value) { SetChangeDetails(std::forward<ChangeDetailsT>(value)); return *this;}
213 private:
214
215 Aws::Utils::DateTime m_scheduledTime{};
216 bool m_scheduledTimeHasBeenSet = false;
217
218 Aws::String m_documentName;
219 bool m_documentNameHasBeenSet = false;
220
221 Aws::String m_documentVersion;
222 bool m_documentVersionHasBeenSet = false;
223
225 bool m_parametersHasBeenSet = false;
226
227 Aws::String m_changeRequestName;
228 bool m_changeRequestNameHasBeenSet = false;
229
230 Aws::String m_clientToken;
231 bool m_clientTokenHasBeenSet = false;
232
233 bool m_autoApprove{false};
234 bool m_autoApproveHasBeenSet = false;
235
236 Aws::Vector<Runbook> m_runbooks;
237 bool m_runbooksHasBeenSet = false;
238
239 Aws::Vector<Tag> m_tags;
240 bool m_tagsHasBeenSet = false;
241
242 Aws::Utils::DateTime m_scheduledEndTime{};
243 bool m_scheduledEndTimeHasBeenSet = false;
244
245 Aws::String m_changeDetails;
246 bool m_changeDetailsHasBeenSet = false;
247 };
248
249} // namespace Model
250} // namespace SSM
251} // 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