AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CommandInvocation.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ssm/SSM_EXPORTS.h>
11#include <aws/ssm/model/CloudWatchOutputConfig.h>
12#include <aws/ssm/model/CommandInvocationStatus.h>
13#include <aws/ssm/model/CommandPlugin.h>
14#include <aws/ssm/model/NotificationConfig.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace SSM {
26namespace Model {
27
39 public:
40 AWS_SSM_API CommandInvocation() = default;
44
46
49 inline const Aws::String& GetCommandId() const { return m_commandId; }
50 inline bool CommandIdHasBeenSet() const { return m_commandIdHasBeenSet; }
51 template <typename CommandIdT = Aws::String>
52 void SetCommandId(CommandIdT&& value) {
53 m_commandIdHasBeenSet = true;
54 m_commandId = std::forward<CommandIdT>(value);
55 }
56 template <typename CommandIdT = Aws::String>
57 CommandInvocation& WithCommandId(CommandIdT&& value) {
58 SetCommandId(std::forward<CommandIdT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
68 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
69 template <typename InstanceIdT = Aws::String>
70 void SetInstanceId(InstanceIdT&& value) {
71 m_instanceIdHasBeenSet = true;
72 m_instanceId = std::forward<InstanceIdT>(value);
73 }
74 template <typename InstanceIdT = Aws::String>
75 CommandInvocation& WithInstanceId(InstanceIdT&& value) {
76 SetInstanceId(std::forward<InstanceIdT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::String& GetInstanceName() const { return m_instanceName; }
86 inline bool InstanceNameHasBeenSet() const { return m_instanceNameHasBeenSet; }
87 template <typename InstanceNameT = Aws::String>
88 void SetInstanceName(InstanceNameT&& value) {
89 m_instanceNameHasBeenSet = true;
90 m_instanceName = std::forward<InstanceNameT>(value);
91 }
92 template <typename InstanceNameT = Aws::String>
93 CommandInvocation& WithInstanceName(InstanceNameT&& value) {
94 SetInstanceName(std::forward<InstanceNameT>(value));
95 return *this;
96 }
98
100
104 inline const Aws::String& GetComment() const { return m_comment; }
105 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
106 template <typename CommentT = Aws::String>
107 void SetComment(CommentT&& value) {
108 m_commentHasBeenSet = true;
109 m_comment = std::forward<CommentT>(value);
110 }
111 template <typename CommentT = Aws::String>
112 CommandInvocation& WithComment(CommentT&& value) {
113 SetComment(std::forward<CommentT>(value));
114 return *this;
115 }
117
119
122 inline const Aws::String& GetDocumentName() const { return m_documentName; }
123 inline bool DocumentNameHasBeenSet() const { return m_documentNameHasBeenSet; }
124 template <typename DocumentNameT = Aws::String>
125 void SetDocumentName(DocumentNameT&& value) {
126 m_documentNameHasBeenSet = true;
127 m_documentName = std::forward<DocumentNameT>(value);
128 }
129 template <typename DocumentNameT = Aws::String>
130 CommandInvocation& WithDocumentName(DocumentNameT&& value) {
131 SetDocumentName(std::forward<DocumentNameT>(value));
132 return *this;
133 }
135
137
140 inline const Aws::String& GetDocumentVersion() const { return m_documentVersion; }
141 inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
142 template <typename DocumentVersionT = Aws::String>
143 void SetDocumentVersion(DocumentVersionT&& value) {
144 m_documentVersionHasBeenSet = true;
145 m_documentVersion = std::forward<DocumentVersionT>(value);
146 }
147 template <typename DocumentVersionT = Aws::String>
148 CommandInvocation& WithDocumentVersion(DocumentVersionT&& value) {
149 SetDocumentVersion(std::forward<DocumentVersionT>(value));
150 return *this;
151 }
153
155
158 inline const Aws::Utils::DateTime& GetRequestedDateTime() const { return m_requestedDateTime; }
159 inline bool RequestedDateTimeHasBeenSet() const { return m_requestedDateTimeHasBeenSet; }
160 template <typename RequestedDateTimeT = Aws::Utils::DateTime>
161 void SetRequestedDateTime(RequestedDateTimeT&& value) {
162 m_requestedDateTimeHasBeenSet = true;
163 m_requestedDateTime = std::forward<RequestedDateTimeT>(value);
164 }
165 template <typename RequestedDateTimeT = Aws::Utils::DateTime>
166 CommandInvocation& WithRequestedDateTime(RequestedDateTimeT&& value) {
167 SetRequestedDateTime(std::forward<RequestedDateTimeT>(value));
168 return *this;
169 }
171
173
176 inline CommandInvocationStatus GetStatus() const { return m_status; }
177 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
179 m_statusHasBeenSet = true;
180 m_status = value;
181 }
183 SetStatus(value);
184 return *this;
185 }
187
189
226 inline const Aws::String& GetStatusDetails() const { return m_statusDetails; }
227 inline bool StatusDetailsHasBeenSet() const { return m_statusDetailsHasBeenSet; }
228 template <typename StatusDetailsT = Aws::String>
229 void SetStatusDetails(StatusDetailsT&& value) {
230 m_statusDetailsHasBeenSet = true;
231 m_statusDetails = std::forward<StatusDetailsT>(value);
232 }
233 template <typename StatusDetailsT = Aws::String>
234 CommandInvocation& WithStatusDetails(StatusDetailsT&& value) {
235 SetStatusDetails(std::forward<StatusDetailsT>(value));
236 return *this;
237 }
239
241
244 inline const Aws::String& GetTraceOutput() const { return m_traceOutput; }
245 inline bool TraceOutputHasBeenSet() const { return m_traceOutputHasBeenSet; }
246 template <typename TraceOutputT = Aws::String>
247 void SetTraceOutput(TraceOutputT&& value) {
248 m_traceOutputHasBeenSet = true;
249 m_traceOutput = std::forward<TraceOutputT>(value);
250 }
251 template <typename TraceOutputT = Aws::String>
252 CommandInvocation& WithTraceOutput(TraceOutputT&& value) {
253 SetTraceOutput(std::forward<TraceOutputT>(value));
254 return *this;
255 }
257
259
265 inline const Aws::String& GetStandardOutputUrl() const { return m_standardOutputUrl; }
266 inline bool StandardOutputUrlHasBeenSet() const { return m_standardOutputUrlHasBeenSet; }
267 template <typename StandardOutputUrlT = Aws::String>
268 void SetStandardOutputUrl(StandardOutputUrlT&& value) {
269 m_standardOutputUrlHasBeenSet = true;
270 m_standardOutputUrl = std::forward<StandardOutputUrlT>(value);
271 }
272 template <typename StandardOutputUrlT = Aws::String>
273 CommandInvocation& WithStandardOutputUrl(StandardOutputUrlT&& value) {
274 SetStandardOutputUrl(std::forward<StandardOutputUrlT>(value));
275 return *this;
276 }
278
280
286 inline const Aws::String& GetStandardErrorUrl() const { return m_standardErrorUrl; }
287 inline bool StandardErrorUrlHasBeenSet() const { return m_standardErrorUrlHasBeenSet; }
288 template <typename StandardErrorUrlT = Aws::String>
289 void SetStandardErrorUrl(StandardErrorUrlT&& value) {
290 m_standardErrorUrlHasBeenSet = true;
291 m_standardErrorUrl = std::forward<StandardErrorUrlT>(value);
292 }
293 template <typename StandardErrorUrlT = Aws::String>
294 CommandInvocation& WithStandardErrorUrl(StandardErrorUrlT&& value) {
295 SetStandardErrorUrl(std::forward<StandardErrorUrlT>(value));
296 return *this;
297 }
299
301
304 inline const Aws::Vector<CommandPlugin>& GetCommandPlugins() const { return m_commandPlugins; }
305 inline bool CommandPluginsHasBeenSet() const { return m_commandPluginsHasBeenSet; }
306 template <typename CommandPluginsT = Aws::Vector<CommandPlugin>>
307 void SetCommandPlugins(CommandPluginsT&& value) {
308 m_commandPluginsHasBeenSet = true;
309 m_commandPlugins = std::forward<CommandPluginsT>(value);
310 }
311 template <typename CommandPluginsT = Aws::Vector<CommandPlugin>>
312 CommandInvocation& WithCommandPlugins(CommandPluginsT&& value) {
313 SetCommandPlugins(std::forward<CommandPluginsT>(value));
314 return *this;
315 }
316 template <typename CommandPluginsT = CommandPlugin>
317 CommandInvocation& AddCommandPlugins(CommandPluginsT&& value) {
318 m_commandPluginsHasBeenSet = true;
319 m_commandPlugins.emplace_back(std::forward<CommandPluginsT>(value));
320 return *this;
321 }
323
325
331 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
332 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
333 template <typename ServiceRoleT = Aws::String>
334 void SetServiceRole(ServiceRoleT&& value) {
335 m_serviceRoleHasBeenSet = true;
336 m_serviceRole = std::forward<ServiceRoleT>(value);
337 }
338 template <typename ServiceRoleT = Aws::String>
339 CommandInvocation& WithServiceRole(ServiceRoleT&& value) {
340 SetServiceRole(std::forward<ServiceRoleT>(value));
341 return *this;
342 }
344
346
350 inline const NotificationConfig& GetNotificationConfig() const { return m_notificationConfig; }
351 inline bool NotificationConfigHasBeenSet() const { return m_notificationConfigHasBeenSet; }
352 template <typename NotificationConfigT = NotificationConfig>
353 void SetNotificationConfig(NotificationConfigT&& value) {
354 m_notificationConfigHasBeenSet = true;
355 m_notificationConfig = std::forward<NotificationConfigT>(value);
356 }
357 template <typename NotificationConfigT = NotificationConfig>
358 CommandInvocation& WithNotificationConfig(NotificationConfigT&& value) {
359 SetNotificationConfig(std::forward<NotificationConfigT>(value));
360 return *this;
361 }
363
365
369 inline const CloudWatchOutputConfig& GetCloudWatchOutputConfig() const { return m_cloudWatchOutputConfig; }
370 inline bool CloudWatchOutputConfigHasBeenSet() const { return m_cloudWatchOutputConfigHasBeenSet; }
371 template <typename CloudWatchOutputConfigT = CloudWatchOutputConfig>
372 void SetCloudWatchOutputConfig(CloudWatchOutputConfigT&& value) {
373 m_cloudWatchOutputConfigHasBeenSet = true;
374 m_cloudWatchOutputConfig = std::forward<CloudWatchOutputConfigT>(value);
375 }
376 template <typename CloudWatchOutputConfigT = CloudWatchOutputConfig>
377 CommandInvocation& WithCloudWatchOutputConfig(CloudWatchOutputConfigT&& value) {
378 SetCloudWatchOutputConfig(std::forward<CloudWatchOutputConfigT>(value));
379 return *this;
380 }
382 private:
383 Aws::String m_commandId;
384
385 Aws::String m_instanceId;
386
387 Aws::String m_instanceName;
388
389 Aws::String m_comment;
390
391 Aws::String m_documentName;
392
393 Aws::String m_documentVersion;
394
395 Aws::Utils::DateTime m_requestedDateTime{};
396
398
399 Aws::String m_statusDetails;
400
401 Aws::String m_traceOutput;
402
403 Aws::String m_standardOutputUrl;
404
405 Aws::String m_standardErrorUrl;
406
407 Aws::Vector<CommandPlugin> m_commandPlugins;
408
409 Aws::String m_serviceRole;
410
411 NotificationConfig m_notificationConfig;
412
413 CloudWatchOutputConfig m_cloudWatchOutputConfig;
414 bool m_commandIdHasBeenSet = false;
415 bool m_instanceIdHasBeenSet = false;
416 bool m_instanceNameHasBeenSet = false;
417 bool m_commentHasBeenSet = false;
418 bool m_documentNameHasBeenSet = false;
419 bool m_documentVersionHasBeenSet = false;
420 bool m_requestedDateTimeHasBeenSet = false;
421 bool m_statusHasBeenSet = false;
422 bool m_statusDetailsHasBeenSet = false;
423 bool m_traceOutputHasBeenSet = false;
424 bool m_standardOutputUrlHasBeenSet = false;
425 bool m_standardErrorUrlHasBeenSet = false;
426 bool m_commandPluginsHasBeenSet = false;
427 bool m_serviceRoleHasBeenSet = false;
428 bool m_notificationConfigHasBeenSet = false;
429 bool m_cloudWatchOutputConfigHasBeenSet = false;
430};
431
432} // namespace Model
433} // namespace SSM
434} // namespace Aws
CommandInvocation & WithRequestedDateTime(RequestedDateTimeT &&value)
const Aws::String & GetDocumentVersion() const
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
CommandInvocation & WithCommandId(CommandIdT &&value)
void SetRequestedDateTime(RequestedDateTimeT &&value)
const Aws::String & GetInstanceId() const
void SetServiceRole(ServiceRoleT &&value)
CommandInvocation & WithStandardOutputUrl(StandardOutputUrlT &&value)
AWS_SSM_API CommandInvocation & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCommandId() const
CommandInvocation & AddCommandPlugins(CommandPluginsT &&value)
CommandInvocation & WithDocumentVersion(DocumentVersionT &&value)
AWS_SSM_API CommandInvocation()=default
const Aws::Utils::DateTime & GetRequestedDateTime() const
const Aws::String & GetTraceOutput() const
CommandInvocation & WithStandardErrorUrl(StandardErrorUrlT &&value)
const NotificationConfig & GetNotificationConfig() const
const CloudWatchOutputConfig & GetCloudWatchOutputConfig() const
CommandInvocationStatus GetStatus() const
AWS_SSM_API CommandInvocation(Aws::Utils::Json::JsonView jsonValue)
void SetTraceOutput(TraceOutputT &&value)
const Aws::Vector< CommandPlugin > & GetCommandPlugins() const
void SetCloudWatchOutputConfig(CloudWatchOutputConfigT &&value)
CommandInvocation & WithTraceOutput(TraceOutputT &&value)
const Aws::String & GetInstanceName() const
const Aws::String & GetServiceRole() const
void SetDocumentName(DocumentNameT &&value)
CommandInvocation & WithCommandPlugins(CommandPluginsT &&value)
void SetStandardErrorUrl(StandardErrorUrlT &&value)
const Aws::String & GetComment() const
CommandInvocation & WithStatus(CommandInvocationStatus value)
void SetStandardOutputUrl(StandardOutputUrlT &&value)
void SetNotificationConfig(NotificationConfigT &&value)
void SetCommandPlugins(CommandPluginsT &&value)
const Aws::String & GetStandardOutputUrl() const
CommandInvocation & WithDocumentName(DocumentNameT &&value)
CommandInvocation & WithComment(CommentT &&value)
CommandInvocation & WithCloudWatchOutputConfig(CloudWatchOutputConfigT &&value)
CommandInvocation & WithInstanceId(InstanceIdT &&value)
void SetStatus(CommandInvocationStatus value)
const Aws::String & GetStandardErrorUrl() const
CommandInvocation & WithNotificationConfig(NotificationConfigT &&value)
void SetInstanceId(InstanceIdT &&value)
void SetStatusDetails(StatusDetailsT &&value)
void SetInstanceName(InstanceNameT &&value)
void SetDocumentVersion(DocumentVersionT &&value)
CommandInvocation & WithServiceRole(ServiceRoleT &&value)
void SetCommandId(CommandIdT &&value)
CommandInvocation & WithStatusDetails(StatusDetailsT &&value)
CommandInvocation & WithInstanceName(InstanceNameT &&value)
const Aws::String & GetDocumentName() const
const Aws::String & GetStatusDetails() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue