AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetScheduledTime(const Aws::Utils::DateTime& value) { m_scheduledTimeHasBeenSet = true; m_scheduledTime = value; }
52 inline void SetScheduledTime(Aws::Utils::DateTime&& value) { m_scheduledTimeHasBeenSet = true; m_scheduledTime = std::move(value); }
56
58
62 inline const Aws::String& GetDocumentName() const{ return m_documentName; }
63 inline bool DocumentNameHasBeenSet() const { return m_documentNameHasBeenSet; }
64 inline void SetDocumentName(const Aws::String& value) { m_documentNameHasBeenSet = true; m_documentName = value; }
65 inline void SetDocumentName(Aws::String&& value) { m_documentNameHasBeenSet = true; m_documentName = std::move(value); }
66 inline void SetDocumentName(const char* value) { m_documentNameHasBeenSet = true; m_documentName.assign(value); }
68 inline StartChangeRequestExecutionRequest& WithDocumentName(Aws::String&& value) { SetDocumentName(std::move(value)); return *this;}
69 inline StartChangeRequestExecutionRequest& WithDocumentName(const char* value) { SetDocumentName(value); return *this;}
71
73
77 inline const Aws::String& GetDocumentVersion() const{ return m_documentVersion; }
78 inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
79 inline void SetDocumentVersion(const Aws::String& value) { m_documentVersionHasBeenSet = true; m_documentVersion = value; }
80 inline void SetDocumentVersion(Aws::String&& value) { m_documentVersionHasBeenSet = true; m_documentVersion = std::move(value); }
81 inline void SetDocumentVersion(const char* value) { m_documentVersionHasBeenSet = true; m_documentVersion.assign(value); }
83 inline StartChangeRequestExecutionRequest& WithDocumentVersion(Aws::String&& value) { SetDocumentVersion(std::move(value)); return *this;}
84 inline StartChangeRequestExecutionRequest& WithDocumentVersion(const char* value) { SetDocumentVersion(value); return *this;}
86
88
92 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetParameters() const{ return m_parameters; }
93 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
94 inline void SetParameters(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
95 inline void SetParameters(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
98 inline StartChangeRequestExecutionRequest& AddParameters(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
99 inline StartChangeRequestExecutionRequest& AddParameters(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
100 inline StartChangeRequestExecutionRequest& AddParameters(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
101 inline StartChangeRequestExecutionRequest& AddParameters(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
102 inline StartChangeRequestExecutionRequest& AddParameters(const char* key, Aws::Vector<Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
103 inline StartChangeRequestExecutionRequest& AddParameters(const char* key, const Aws::Vector<Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
105
107
111 inline const Aws::String& GetChangeRequestName() const{ return m_changeRequestName; }
112 inline bool ChangeRequestNameHasBeenSet() const { return m_changeRequestNameHasBeenSet; }
113 inline void SetChangeRequestName(const Aws::String& value) { m_changeRequestNameHasBeenSet = true; m_changeRequestName = value; }
114 inline void SetChangeRequestName(Aws::String&& value) { m_changeRequestNameHasBeenSet = true; m_changeRequestName = std::move(value); }
115 inline void SetChangeRequestName(const char* value) { m_changeRequestNameHasBeenSet = true; m_changeRequestName.assign(value); }
118 inline StartChangeRequestExecutionRequest& WithChangeRequestName(const char* value) { SetChangeRequestName(value); return *this;}
120
122
126 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
127 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
128 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
129 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
130 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
132 inline StartChangeRequestExecutionRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
133 inline StartChangeRequestExecutionRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
135
137
148 inline bool GetAutoApprove() const{ return m_autoApprove; }
149 inline bool AutoApproveHasBeenSet() const { return m_autoApproveHasBeenSet; }
150 inline void SetAutoApprove(bool value) { m_autoApproveHasBeenSet = true; m_autoApprove = value; }
151 inline StartChangeRequestExecutionRequest& WithAutoApprove(bool value) { SetAutoApprove(value); return *this;}
153
155
161 inline const Aws::Vector<Runbook>& GetRunbooks() const{ return m_runbooks; }
162 inline bool RunbooksHasBeenSet() const { return m_runbooksHasBeenSet; }
163 inline void SetRunbooks(const Aws::Vector<Runbook>& value) { m_runbooksHasBeenSet = true; m_runbooks = value; }
164 inline void SetRunbooks(Aws::Vector<Runbook>&& value) { m_runbooksHasBeenSet = true; m_runbooks = std::move(value); }
166 inline StartChangeRequestExecutionRequest& WithRunbooks(Aws::Vector<Runbook>&& value) { SetRunbooks(std::move(value)); return *this;}
167 inline StartChangeRequestExecutionRequest& AddRunbooks(const Runbook& value) { m_runbooksHasBeenSet = true; m_runbooks.push_back(value); return *this; }
168 inline StartChangeRequestExecutionRequest& AddRunbooks(Runbook&& value) { m_runbooksHasBeenSet = true; m_runbooks.push_back(std::move(value)); return *this; }
170
172
181 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
182 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
183 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
184 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
185 inline StartChangeRequestExecutionRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
186 inline StartChangeRequestExecutionRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
187 inline StartChangeRequestExecutionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
188 inline StartChangeRequestExecutionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
190
192
197 inline const Aws::Utils::DateTime& GetScheduledEndTime() const{ return m_scheduledEndTime; }
198 inline bool ScheduledEndTimeHasBeenSet() const { return m_scheduledEndTimeHasBeenSet; }
199 inline void SetScheduledEndTime(const Aws::Utils::DateTime& value) { m_scheduledEndTimeHasBeenSet = true; m_scheduledEndTime = value; }
200 inline void SetScheduledEndTime(Aws::Utils::DateTime&& value) { m_scheduledEndTimeHasBeenSet = true; m_scheduledEndTime = std::move(value); }
204
206
211 inline const Aws::String& GetChangeDetails() const{ return m_changeDetails; }
212 inline bool ChangeDetailsHasBeenSet() const { return m_changeDetailsHasBeenSet; }
213 inline void SetChangeDetails(const Aws::String& value) { m_changeDetailsHasBeenSet = true; m_changeDetails = value; }
214 inline void SetChangeDetails(Aws::String&& value) { m_changeDetailsHasBeenSet = true; m_changeDetails = std::move(value); }
215 inline void SetChangeDetails(const char* value) { m_changeDetailsHasBeenSet = true; m_changeDetails.assign(value); }
217 inline StartChangeRequestExecutionRequest& WithChangeDetails(Aws::String&& value) { SetChangeDetails(std::move(value)); return *this;}
218 inline StartChangeRequestExecutionRequest& WithChangeDetails(const char* value) { SetChangeDetails(value); return *this;}
220 private:
221
222 Aws::Utils::DateTime m_scheduledTime;
223 bool m_scheduledTimeHasBeenSet = false;
224
225 Aws::String m_documentName;
226 bool m_documentNameHasBeenSet = false;
227
228 Aws::String m_documentVersion;
229 bool m_documentVersionHasBeenSet = false;
230
232 bool m_parametersHasBeenSet = false;
233
234 Aws::String m_changeRequestName;
235 bool m_changeRequestNameHasBeenSet = false;
236
237 Aws::String m_clientToken;
238 bool m_clientTokenHasBeenSet = false;
239
240 bool m_autoApprove;
241 bool m_autoApproveHasBeenSet = false;
242
243 Aws::Vector<Runbook> m_runbooks;
244 bool m_runbooksHasBeenSet = false;
245
246 Aws::Vector<Tag> m_tags;
247 bool m_tagsHasBeenSet = false;
248
249 Aws::Utils::DateTime m_scheduledEndTime;
250 bool m_scheduledEndTimeHasBeenSet = false;
251
252 Aws::String m_changeDetails;
253 bool m_changeDetailsHasBeenSet = false;
254 };
255
256} // namespace Model
257} // namespace SSM
258} // namespace Aws
StartChangeRequestExecutionRequest & WithScheduledEndTime(const Aws::Utils::DateTime &value)
StartChangeRequestExecutionRequest & WithChangeDetails(const Aws::String &value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartChangeRequestExecutionRequest & WithRunbooks(Aws::Vector< Runbook > &&value)
StartChangeRequestExecutionRequest & WithChangeRequestName(const Aws::String &value)
StartChangeRequestExecutionRequest & WithDocumentName(const Aws::String &value)
StartChangeRequestExecutionRequest & WithDocumentVersion(const Aws::String &value)
StartChangeRequestExecutionRequest & WithScheduledEndTime(Aws::Utils::DateTime &&value)
StartChangeRequestExecutionRequest & WithDocumentVersion(const char *value)
StartChangeRequestExecutionRequest & AddRunbooks(Runbook &&value)
StartChangeRequestExecutionRequest & WithChangeRequestName(Aws::String &&value)
StartChangeRequestExecutionRequest & AddParameters(const char *key, Aws::Vector< Aws::String > &&value)
StartChangeRequestExecutionRequest & AddParameters(Aws::String &&key, Aws::Vector< Aws::String > &&value)
AWS_SSM_API Aws::String SerializePayload() const override
StartChangeRequestExecutionRequest & AddRunbooks(const Runbook &value)
StartChangeRequestExecutionRequest & WithDocumentVersion(Aws::String &&value)
StartChangeRequestExecutionRequest & WithChangeDetails(const char *value)
StartChangeRequestExecutionRequest & AddTags(Tag &&value)
StartChangeRequestExecutionRequest & WithDocumentName(const char *value)
StartChangeRequestExecutionRequest & AddTags(const Tag &value)
StartChangeRequestExecutionRequest & WithChangeRequestName(const char *value)
StartChangeRequestExecutionRequest & WithTags(const Aws::Vector< Tag > &value)
StartChangeRequestExecutionRequest & WithParameters(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
StartChangeRequestExecutionRequest & WithParameters(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
void SetParameters(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
StartChangeRequestExecutionRequest & AddParameters(const Aws::String &key, Aws::Vector< Aws::String > &&value)
StartChangeRequestExecutionRequest & AddParameters(const char *key, const Aws::Vector< Aws::String > &value)
StartChangeRequestExecutionRequest & WithChangeDetails(Aws::String &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetParameters() const
StartChangeRequestExecutionRequest & WithScheduledTime(Aws::Utils::DateTime &&value)
StartChangeRequestExecutionRequest & WithTags(Aws::Vector< Tag > &&value)
StartChangeRequestExecutionRequest & WithClientToken(const char *value)
StartChangeRequestExecutionRequest & WithClientToken(const Aws::String &value)
StartChangeRequestExecutionRequest & AddParameters(const Aws::String &key, const Aws::Vector< Aws::String > &value)
StartChangeRequestExecutionRequest & WithClientToken(Aws::String &&value)
StartChangeRequestExecutionRequest & WithDocumentName(Aws::String &&value)
StartChangeRequestExecutionRequest & WithAutoApprove(bool value)
StartChangeRequestExecutionRequest & WithScheduledTime(const Aws::Utils::DateTime &value)
StartChangeRequestExecutionRequest & AddParameters(Aws::String &&key, const Aws::Vector< Aws::String > &value)
StartChangeRequestExecutionRequest & WithRunbooks(const Aws::Vector< Runbook > &value)
void SetParameters(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&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