AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CommandInvocation.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/DateTime.h>
10#include <aws/ssm/model/CommandInvocationStatus.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ssm/model/NotificationConfig.h>
13#include <aws/ssm/model/CloudWatchOutputConfig.h>
14#include <aws/ssm/model/CommandPlugin.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace SSM
28{
29namespace Model
30{
31
43 {
44 public:
45 AWS_SSM_API CommandInvocation();
49
50
52
55 inline const Aws::String& GetCommandId() const{ return m_commandId; }
56 inline bool CommandIdHasBeenSet() const { return m_commandIdHasBeenSet; }
57 inline void SetCommandId(const Aws::String& value) { m_commandIdHasBeenSet = true; m_commandId = value; }
58 inline void SetCommandId(Aws::String&& value) { m_commandIdHasBeenSet = true; m_commandId = std::move(value); }
59 inline void SetCommandId(const char* value) { m_commandIdHasBeenSet = true; m_commandId.assign(value); }
60 inline CommandInvocation& WithCommandId(const Aws::String& value) { SetCommandId(value); return *this;}
61 inline CommandInvocation& WithCommandId(Aws::String&& value) { SetCommandId(std::move(value)); return *this;}
62 inline CommandInvocation& WithCommandId(const char* value) { SetCommandId(value); return *this;}
64
66
69 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
70 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
71 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
72 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
73 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
74 inline CommandInvocation& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
75 inline CommandInvocation& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
76 inline CommandInvocation& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
78
80
83 inline const Aws::String& GetInstanceName() const{ return m_instanceName; }
84 inline bool InstanceNameHasBeenSet() const { return m_instanceNameHasBeenSet; }
85 inline void SetInstanceName(const Aws::String& value) { m_instanceNameHasBeenSet = true; m_instanceName = value; }
86 inline void SetInstanceName(Aws::String&& value) { m_instanceNameHasBeenSet = true; m_instanceName = std::move(value); }
87 inline void SetInstanceName(const char* value) { m_instanceNameHasBeenSet = true; m_instanceName.assign(value); }
88 inline CommandInvocation& WithInstanceName(const Aws::String& value) { SetInstanceName(value); return *this;}
89 inline CommandInvocation& WithInstanceName(Aws::String&& value) { SetInstanceName(std::move(value)); return *this;}
90 inline CommandInvocation& WithInstanceName(const char* value) { SetInstanceName(value); return *this;}
92
94
98 inline const Aws::String& GetComment() const{ return m_comment; }
99 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
100 inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
101 inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); }
102 inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
103 inline CommandInvocation& WithComment(const Aws::String& value) { SetComment(value); return *this;}
104 inline CommandInvocation& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;}
105 inline CommandInvocation& WithComment(const char* value) { SetComment(value); return *this;}
107
109
112 inline const Aws::String& GetDocumentName() const{ return m_documentName; }
113 inline bool DocumentNameHasBeenSet() const { return m_documentNameHasBeenSet; }
114 inline void SetDocumentName(const Aws::String& value) { m_documentNameHasBeenSet = true; m_documentName = value; }
115 inline void SetDocumentName(Aws::String&& value) { m_documentNameHasBeenSet = true; m_documentName = std::move(value); }
116 inline void SetDocumentName(const char* value) { m_documentNameHasBeenSet = true; m_documentName.assign(value); }
117 inline CommandInvocation& WithDocumentName(const Aws::String& value) { SetDocumentName(value); return *this;}
118 inline CommandInvocation& WithDocumentName(Aws::String&& value) { SetDocumentName(std::move(value)); return *this;}
119 inline CommandInvocation& WithDocumentName(const char* value) { SetDocumentName(value); return *this;}
121
123
126 inline const Aws::String& GetDocumentVersion() const{ return m_documentVersion; }
127 inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
128 inline void SetDocumentVersion(const Aws::String& value) { m_documentVersionHasBeenSet = true; m_documentVersion = value; }
129 inline void SetDocumentVersion(Aws::String&& value) { m_documentVersionHasBeenSet = true; m_documentVersion = std::move(value); }
130 inline void SetDocumentVersion(const char* value) { m_documentVersionHasBeenSet = true; m_documentVersion.assign(value); }
131 inline CommandInvocation& WithDocumentVersion(const Aws::String& value) { SetDocumentVersion(value); return *this;}
132 inline CommandInvocation& WithDocumentVersion(Aws::String&& value) { SetDocumentVersion(std::move(value)); return *this;}
133 inline CommandInvocation& WithDocumentVersion(const char* value) { SetDocumentVersion(value); return *this;}
135
137
140 inline const Aws::Utils::DateTime& GetRequestedDateTime() const{ return m_requestedDateTime; }
141 inline bool RequestedDateTimeHasBeenSet() const { return m_requestedDateTimeHasBeenSet; }
142 inline void SetRequestedDateTime(const Aws::Utils::DateTime& value) { m_requestedDateTimeHasBeenSet = true; m_requestedDateTime = value; }
143 inline void SetRequestedDateTime(Aws::Utils::DateTime&& value) { m_requestedDateTimeHasBeenSet = true; m_requestedDateTime = std::move(value); }
145 inline CommandInvocation& WithRequestedDateTime(Aws::Utils::DateTime&& value) { SetRequestedDateTime(std::move(value)); return *this;}
147
149
152 inline const CommandInvocationStatus& GetStatus() const{ return m_status; }
153 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
154 inline void SetStatus(const CommandInvocationStatus& value) { m_statusHasBeenSet = true; m_status = value; }
155 inline void SetStatus(CommandInvocationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
156 inline CommandInvocation& WithStatus(const CommandInvocationStatus& value) { SetStatus(value); return *this;}
157 inline CommandInvocation& WithStatus(CommandInvocationStatus&& value) { SetStatus(std::move(value)); return *this;}
159
161
198 inline const Aws::String& GetStatusDetails() const{ return m_statusDetails; }
199 inline bool StatusDetailsHasBeenSet() const { return m_statusDetailsHasBeenSet; }
200 inline void SetStatusDetails(const Aws::String& value) { m_statusDetailsHasBeenSet = true; m_statusDetails = value; }
201 inline void SetStatusDetails(Aws::String&& value) { m_statusDetailsHasBeenSet = true; m_statusDetails = std::move(value); }
202 inline void SetStatusDetails(const char* value) { m_statusDetailsHasBeenSet = true; m_statusDetails.assign(value); }
203 inline CommandInvocation& WithStatusDetails(const Aws::String& value) { SetStatusDetails(value); return *this;}
204 inline CommandInvocation& WithStatusDetails(Aws::String&& value) { SetStatusDetails(std::move(value)); return *this;}
205 inline CommandInvocation& WithStatusDetails(const char* value) { SetStatusDetails(value); return *this;}
207
209
212 inline const Aws::String& GetTraceOutput() const{ return m_traceOutput; }
213 inline bool TraceOutputHasBeenSet() const { return m_traceOutputHasBeenSet; }
214 inline void SetTraceOutput(const Aws::String& value) { m_traceOutputHasBeenSet = true; m_traceOutput = value; }
215 inline void SetTraceOutput(Aws::String&& value) { m_traceOutputHasBeenSet = true; m_traceOutput = std::move(value); }
216 inline void SetTraceOutput(const char* value) { m_traceOutputHasBeenSet = true; m_traceOutput.assign(value); }
217 inline CommandInvocation& WithTraceOutput(const Aws::String& value) { SetTraceOutput(value); return *this;}
218 inline CommandInvocation& WithTraceOutput(Aws::String&& value) { SetTraceOutput(std::move(value)); return *this;}
219 inline CommandInvocation& WithTraceOutput(const char* value) { SetTraceOutput(value); return *this;}
221
223
229 inline const Aws::String& GetStandardOutputUrl() const{ return m_standardOutputUrl; }
230 inline bool StandardOutputUrlHasBeenSet() const { return m_standardOutputUrlHasBeenSet; }
231 inline void SetStandardOutputUrl(const Aws::String& value) { m_standardOutputUrlHasBeenSet = true; m_standardOutputUrl = value; }
232 inline void SetStandardOutputUrl(Aws::String&& value) { m_standardOutputUrlHasBeenSet = true; m_standardOutputUrl = std::move(value); }
233 inline void SetStandardOutputUrl(const char* value) { m_standardOutputUrlHasBeenSet = true; m_standardOutputUrl.assign(value); }
234 inline CommandInvocation& WithStandardOutputUrl(const Aws::String& value) { SetStandardOutputUrl(value); return *this;}
235 inline CommandInvocation& WithStandardOutputUrl(Aws::String&& value) { SetStandardOutputUrl(std::move(value)); return *this;}
236 inline CommandInvocation& WithStandardOutputUrl(const char* value) { SetStandardOutputUrl(value); return *this;}
238
240
246 inline const Aws::String& GetStandardErrorUrl() const{ return m_standardErrorUrl; }
247 inline bool StandardErrorUrlHasBeenSet() const { return m_standardErrorUrlHasBeenSet; }
248 inline void SetStandardErrorUrl(const Aws::String& value) { m_standardErrorUrlHasBeenSet = true; m_standardErrorUrl = value; }
249 inline void SetStandardErrorUrl(Aws::String&& value) { m_standardErrorUrlHasBeenSet = true; m_standardErrorUrl = std::move(value); }
250 inline void SetStandardErrorUrl(const char* value) { m_standardErrorUrlHasBeenSet = true; m_standardErrorUrl.assign(value); }
251 inline CommandInvocation& WithStandardErrorUrl(const Aws::String& value) { SetStandardErrorUrl(value); return *this;}
252 inline CommandInvocation& WithStandardErrorUrl(Aws::String&& value) { SetStandardErrorUrl(std::move(value)); return *this;}
253 inline CommandInvocation& WithStandardErrorUrl(const char* value) { SetStandardErrorUrl(value); return *this;}
255
257
260 inline const Aws::Vector<CommandPlugin>& GetCommandPlugins() const{ return m_commandPlugins; }
261 inline bool CommandPluginsHasBeenSet() const { return m_commandPluginsHasBeenSet; }
262 inline void SetCommandPlugins(const Aws::Vector<CommandPlugin>& value) { m_commandPluginsHasBeenSet = true; m_commandPlugins = value; }
263 inline void SetCommandPlugins(Aws::Vector<CommandPlugin>&& value) { m_commandPluginsHasBeenSet = true; m_commandPlugins = std::move(value); }
265 inline CommandInvocation& WithCommandPlugins(Aws::Vector<CommandPlugin>&& value) { SetCommandPlugins(std::move(value)); return *this;}
266 inline CommandInvocation& AddCommandPlugins(const CommandPlugin& value) { m_commandPluginsHasBeenSet = true; m_commandPlugins.push_back(value); return *this; }
267 inline CommandInvocation& AddCommandPlugins(CommandPlugin&& value) { m_commandPluginsHasBeenSet = true; m_commandPlugins.push_back(std::move(value)); return *this; }
269
271
277 inline const Aws::String& GetServiceRole() const{ return m_serviceRole; }
278 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
279 inline void SetServiceRole(const Aws::String& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = value; }
280 inline void SetServiceRole(Aws::String&& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = std::move(value); }
281 inline void SetServiceRole(const char* value) { m_serviceRoleHasBeenSet = true; m_serviceRole.assign(value); }
282 inline CommandInvocation& WithServiceRole(const Aws::String& value) { SetServiceRole(value); return *this;}
283 inline CommandInvocation& WithServiceRole(Aws::String&& value) { SetServiceRole(std::move(value)); return *this;}
284 inline CommandInvocation& WithServiceRole(const char* value) { SetServiceRole(value); return *this;}
286
288
292 inline const NotificationConfig& GetNotificationConfig() const{ return m_notificationConfig; }
293 inline bool NotificationConfigHasBeenSet() const { return m_notificationConfigHasBeenSet; }
294 inline void SetNotificationConfig(const NotificationConfig& value) { m_notificationConfigHasBeenSet = true; m_notificationConfig = value; }
295 inline void SetNotificationConfig(NotificationConfig&& value) { m_notificationConfigHasBeenSet = true; m_notificationConfig = std::move(value); }
297 inline CommandInvocation& WithNotificationConfig(NotificationConfig&& value) { SetNotificationConfig(std::move(value)); return *this;}
299
301
305 inline const CloudWatchOutputConfig& GetCloudWatchOutputConfig() const{ return m_cloudWatchOutputConfig; }
306 inline bool CloudWatchOutputConfigHasBeenSet() const { return m_cloudWatchOutputConfigHasBeenSet; }
307 inline void SetCloudWatchOutputConfig(const CloudWatchOutputConfig& value) { m_cloudWatchOutputConfigHasBeenSet = true; m_cloudWatchOutputConfig = value; }
308 inline void SetCloudWatchOutputConfig(CloudWatchOutputConfig&& value) { m_cloudWatchOutputConfigHasBeenSet = true; m_cloudWatchOutputConfig = std::move(value); }
312 private:
313
314 Aws::String m_commandId;
315 bool m_commandIdHasBeenSet = false;
316
317 Aws::String m_instanceId;
318 bool m_instanceIdHasBeenSet = false;
319
320 Aws::String m_instanceName;
321 bool m_instanceNameHasBeenSet = false;
322
323 Aws::String m_comment;
324 bool m_commentHasBeenSet = false;
325
326 Aws::String m_documentName;
327 bool m_documentNameHasBeenSet = false;
328
329 Aws::String m_documentVersion;
330 bool m_documentVersionHasBeenSet = false;
331
332 Aws::Utils::DateTime m_requestedDateTime;
333 bool m_requestedDateTimeHasBeenSet = false;
334
336 bool m_statusHasBeenSet = false;
337
338 Aws::String m_statusDetails;
339 bool m_statusDetailsHasBeenSet = false;
340
341 Aws::String m_traceOutput;
342 bool m_traceOutputHasBeenSet = false;
343
344 Aws::String m_standardOutputUrl;
345 bool m_standardOutputUrlHasBeenSet = false;
346
347 Aws::String m_standardErrorUrl;
348 bool m_standardErrorUrlHasBeenSet = false;
349
350 Aws::Vector<CommandPlugin> m_commandPlugins;
351 bool m_commandPluginsHasBeenSet = false;
352
353 Aws::String m_serviceRole;
354 bool m_serviceRoleHasBeenSet = false;
355
356 NotificationConfig m_notificationConfig;
357 bool m_notificationConfigHasBeenSet = false;
358
359 CloudWatchOutputConfig m_cloudWatchOutputConfig;
360 bool m_cloudWatchOutputConfigHasBeenSet = false;
361 };
362
363} // namespace Model
364} // namespace SSM
365} // namespace Aws
CommandInvocation & WithInstanceName(const char *value)
void SetStandardErrorUrl(Aws::String &&value)
void SetStatus(CommandInvocationStatus &&value)
void SetDocumentName(const Aws::String &value)
void SetInstanceId(Aws::String &&value)
void SetTraceOutput(const char *value)
CommandInvocation & WithNotificationConfig(NotificationConfig &&value)
const Aws::String & GetDocumentVersion() const
void SetStatusDetails(const Aws::String &value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTraceOutput(const Aws::String &value)
CommandInvocation & WithTraceOutput(const char *value)
CommandInvocation & WithStatusDetails(Aws::String &&value)
CommandInvocation & WithStandardErrorUrl(const char *value)
void SetNotificationConfig(const NotificationConfig &value)
CommandInvocation & WithCommandId(Aws::String &&value)
CommandInvocation & WithStandardErrorUrl(const Aws::String &value)
const Aws::String & GetInstanceId() const
void SetComment(Aws::String &&value)
void SetRequestedDateTime(const Aws::Utils::DateTime &value)
CommandInvocation & WithCommandPlugins(const Aws::Vector< CommandPlugin > &value)
CommandInvocation & WithServiceRole(Aws::String &&value)
CommandInvocation & WithCloudWatchOutputConfig(const CloudWatchOutputConfig &value)
CommandInvocation & WithCloudWatchOutputConfig(CloudWatchOutputConfig &&value)
void SetCommandId(Aws::String &&value)
void SetStandardErrorUrl(const Aws::String &value)
CommandInvocation & WithDocumentName(const Aws::String &value)
void SetCommandId(const Aws::String &value)
void SetCommandId(const char *value)
AWS_SSM_API CommandInvocation & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCommandId() const
CommandInvocation & WithRequestedDateTime(Aws::Utils::DateTime &&value)
CommandInvocation & WithInstanceId(const Aws::String &value)
CommandInvocation & WithStatusDetails(const Aws::String &value)
CommandInvocation & WithStandardErrorUrl(Aws::String &&value)
CommandInvocation & WithDocumentVersion(const char *value)
CommandInvocation & WithServiceRole(const char *value)
const Aws::Utils::DateTime & GetRequestedDateTime() const
const Aws::String & GetTraceOutput() const
void SetStatusDetails(const char *value)
const NotificationConfig & GetNotificationConfig() const
void SetStatusDetails(Aws::String &&value)
const CloudWatchOutputConfig & GetCloudWatchOutputConfig() const
void SetDocumentVersion(const char *value)
CommandInvocation & WithTraceOutput(Aws::String &&value)
void SetNotificationConfig(NotificationConfig &&value)
AWS_SSM_API CommandInvocation(Aws::Utils::Json::JsonView jsonValue)
void SetDocumentVersion(const Aws::String &value)
CommandInvocation & WithInstanceId(Aws::String &&value)
void SetInstanceId(const Aws::String &value)
const Aws::Vector< CommandPlugin > & GetCommandPlugins() const
CommandInvocation & WithCommandId(const char *value)
void SetCloudWatchOutputConfig(const CloudWatchOutputConfig &value)
CommandInvocation & WithNotificationConfig(const NotificationConfig &value)
CommandInvocation & AddCommandPlugins(const CommandPlugin &value)
void SetStandardOutputUrl(const char *value)
CommandInvocation & WithInstanceName(Aws::String &&value)
const Aws::String & GetInstanceName() const
CommandInvocation & WithCommandPlugins(Aws::Vector< CommandPlugin > &&value)
CommandInvocation & WithStandardOutputUrl(const Aws::String &value)
void SetCloudWatchOutputConfig(CloudWatchOutputConfig &&value)
CommandInvocation & WithStandardOutputUrl(Aws::String &&value)
const Aws::String & GetServiceRole() const
CommandInvocation & WithServiceRole(const Aws::String &value)
CommandInvocation & WithDocumentVersion(Aws::String &&value)
const Aws::String & GetComment() const
void SetStatus(const CommandInvocationStatus &value)
CommandInvocation & WithComment(const Aws::String &value)
void SetTraceOutput(Aws::String &&value)
void SetServiceRole(const char *value)
CommandInvocation & WithStatusDetails(const char *value)
void SetDocumentName(Aws::String &&value)
void SetDocumentName(const char *value)
void SetInstanceId(const char *value)
void SetCommandPlugins(const Aws::Vector< CommandPlugin > &value)
CommandInvocation & WithDocumentVersion(const Aws::String &value)
const Aws::String & GetStandardOutputUrl() const
void SetCommandPlugins(Aws::Vector< CommandPlugin > &&value)
void SetDocumentVersion(Aws::String &&value)
const CommandInvocationStatus & GetStatus() const
void SetComment(const Aws::String &value)
void SetStandardOutputUrl(const Aws::String &value)
void SetServiceRole(Aws::String &&value)
void SetServiceRole(const Aws::String &value)
const Aws::String & GetStandardErrorUrl() const
void SetInstanceName(const char *value)
CommandInvocation & WithRequestedDateTime(const Aws::Utils::DateTime &value)
CommandInvocation & WithDocumentName(Aws::String &&value)
CommandInvocation & WithStandardOutputUrl(const char *value)
CommandInvocation & WithCommandId(const Aws::String &value)
CommandInvocation & WithComment(Aws::String &&value)
CommandInvocation & AddCommandPlugins(CommandPlugin &&value)
void SetStandardOutputUrl(Aws::String &&value)
CommandInvocation & WithStatus(CommandInvocationStatus &&value)
CommandInvocation & WithInstanceName(const Aws::String &value)
void SetInstanceName(const Aws::String &value)
void SetInstanceName(Aws::String &&value)
CommandInvocation & WithTraceOutput(const Aws::String &value)
CommandInvocation & WithDocumentName(const char *value)
void SetStandardErrorUrl(const char *value)
CommandInvocation & WithStatus(const CommandInvocationStatus &value)
void SetRequestedDateTime(Aws::Utils::DateTime &&value)
const Aws::String & GetDocumentName() const
const Aws::String & GetStatusDetails() const
CommandInvocation & WithComment(const char *value)
CommandInvocation & WithInstanceId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue