AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
49
50
52
55 inline const Aws::String& GetCommandId() const { return m_commandId; }
56 inline bool CommandIdHasBeenSet() const { return m_commandIdHasBeenSet; }
57 template<typename CommandIdT = Aws::String>
58 void SetCommandId(CommandIdT&& value) { m_commandIdHasBeenSet = true; m_commandId = std::forward<CommandIdT>(value); }
59 template<typename CommandIdT = Aws::String>
60 CommandInvocation& WithCommandId(CommandIdT&& value) { SetCommandId(std::forward<CommandIdT>(value)); return *this;}
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) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
71 template<typename InstanceIdT = Aws::String>
72 CommandInvocation& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
74
76
79 inline const Aws::String& GetInstanceName() const { return m_instanceName; }
80 inline bool InstanceNameHasBeenSet() const { return m_instanceNameHasBeenSet; }
81 template<typename InstanceNameT = Aws::String>
82 void SetInstanceName(InstanceNameT&& value) { m_instanceNameHasBeenSet = true; m_instanceName = std::forward<InstanceNameT>(value); }
83 template<typename InstanceNameT = Aws::String>
84 CommandInvocation& WithInstanceName(InstanceNameT&& value) { SetInstanceName(std::forward<InstanceNameT>(value)); return *this;}
86
88
92 inline const Aws::String& GetComment() const { return m_comment; }
93 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
94 template<typename CommentT = Aws::String>
95 void SetComment(CommentT&& value) { m_commentHasBeenSet = true; m_comment = std::forward<CommentT>(value); }
96 template<typename CommentT = Aws::String>
97 CommandInvocation& WithComment(CommentT&& value) { SetComment(std::forward<CommentT>(value)); return *this;}
99
101
104 inline const Aws::String& GetDocumentName() const { return m_documentName; }
105 inline bool DocumentNameHasBeenSet() const { return m_documentNameHasBeenSet; }
106 template<typename DocumentNameT = Aws::String>
107 void SetDocumentName(DocumentNameT&& value) { m_documentNameHasBeenSet = true; m_documentName = std::forward<DocumentNameT>(value); }
108 template<typename DocumentNameT = Aws::String>
109 CommandInvocation& WithDocumentName(DocumentNameT&& value) { SetDocumentName(std::forward<DocumentNameT>(value)); return *this;}
111
113
116 inline const Aws::String& GetDocumentVersion() const { return m_documentVersion; }
117 inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
118 template<typename DocumentVersionT = Aws::String>
119 void SetDocumentVersion(DocumentVersionT&& value) { m_documentVersionHasBeenSet = true; m_documentVersion = std::forward<DocumentVersionT>(value); }
120 template<typename DocumentVersionT = Aws::String>
121 CommandInvocation& WithDocumentVersion(DocumentVersionT&& value) { SetDocumentVersion(std::forward<DocumentVersionT>(value)); return *this;}
123
125
128 inline const Aws::Utils::DateTime& GetRequestedDateTime() const { return m_requestedDateTime; }
129 inline bool RequestedDateTimeHasBeenSet() const { return m_requestedDateTimeHasBeenSet; }
130 template<typename RequestedDateTimeT = Aws::Utils::DateTime>
131 void SetRequestedDateTime(RequestedDateTimeT&& value) { m_requestedDateTimeHasBeenSet = true; m_requestedDateTime = std::forward<RequestedDateTimeT>(value); }
132 template<typename RequestedDateTimeT = Aws::Utils::DateTime>
133 CommandInvocation& WithRequestedDateTime(RequestedDateTimeT&& value) { SetRequestedDateTime(std::forward<RequestedDateTimeT>(value)); return *this;}
135
137
140 inline CommandInvocationStatus GetStatus() const { return m_status; }
141 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
142 inline void SetStatus(CommandInvocationStatus value) { m_statusHasBeenSet = true; m_status = value; }
143 inline CommandInvocation& WithStatus(CommandInvocationStatus value) { SetStatus(value); return *this;}
145
147
184 inline const Aws::String& GetStatusDetails() const { return m_statusDetails; }
185 inline bool StatusDetailsHasBeenSet() const { return m_statusDetailsHasBeenSet; }
186 template<typename StatusDetailsT = Aws::String>
187 void SetStatusDetails(StatusDetailsT&& value) { m_statusDetailsHasBeenSet = true; m_statusDetails = std::forward<StatusDetailsT>(value); }
188 template<typename StatusDetailsT = Aws::String>
189 CommandInvocation& WithStatusDetails(StatusDetailsT&& value) { SetStatusDetails(std::forward<StatusDetailsT>(value)); return *this;}
191
193
196 inline const Aws::String& GetTraceOutput() const { return m_traceOutput; }
197 inline bool TraceOutputHasBeenSet() const { return m_traceOutputHasBeenSet; }
198 template<typename TraceOutputT = Aws::String>
199 void SetTraceOutput(TraceOutputT&& value) { m_traceOutputHasBeenSet = true; m_traceOutput = std::forward<TraceOutputT>(value); }
200 template<typename TraceOutputT = Aws::String>
201 CommandInvocation& WithTraceOutput(TraceOutputT&& value) { SetTraceOutput(std::forward<TraceOutputT>(value)); return *this;}
203
205
211 inline const Aws::String& GetStandardOutputUrl() const { return m_standardOutputUrl; }
212 inline bool StandardOutputUrlHasBeenSet() const { return m_standardOutputUrlHasBeenSet; }
213 template<typename StandardOutputUrlT = Aws::String>
214 void SetStandardOutputUrl(StandardOutputUrlT&& value) { m_standardOutputUrlHasBeenSet = true; m_standardOutputUrl = std::forward<StandardOutputUrlT>(value); }
215 template<typename StandardOutputUrlT = Aws::String>
216 CommandInvocation& WithStandardOutputUrl(StandardOutputUrlT&& value) { SetStandardOutputUrl(std::forward<StandardOutputUrlT>(value)); return *this;}
218
220
226 inline const Aws::String& GetStandardErrorUrl() const { return m_standardErrorUrl; }
227 inline bool StandardErrorUrlHasBeenSet() const { return m_standardErrorUrlHasBeenSet; }
228 template<typename StandardErrorUrlT = Aws::String>
229 void SetStandardErrorUrl(StandardErrorUrlT&& value) { m_standardErrorUrlHasBeenSet = true; m_standardErrorUrl = std::forward<StandardErrorUrlT>(value); }
230 template<typename StandardErrorUrlT = Aws::String>
231 CommandInvocation& WithStandardErrorUrl(StandardErrorUrlT&& value) { SetStandardErrorUrl(std::forward<StandardErrorUrlT>(value)); return *this;}
233
235
238 inline const Aws::Vector<CommandPlugin>& GetCommandPlugins() const { return m_commandPlugins; }
239 inline bool CommandPluginsHasBeenSet() const { return m_commandPluginsHasBeenSet; }
240 template<typename CommandPluginsT = Aws::Vector<CommandPlugin>>
241 void SetCommandPlugins(CommandPluginsT&& value) { m_commandPluginsHasBeenSet = true; m_commandPlugins = std::forward<CommandPluginsT>(value); }
242 template<typename CommandPluginsT = Aws::Vector<CommandPlugin>>
243 CommandInvocation& WithCommandPlugins(CommandPluginsT&& value) { SetCommandPlugins(std::forward<CommandPluginsT>(value)); return *this;}
244 template<typename CommandPluginsT = CommandPlugin>
245 CommandInvocation& AddCommandPlugins(CommandPluginsT&& value) { m_commandPluginsHasBeenSet = true; m_commandPlugins.emplace_back(std::forward<CommandPluginsT>(value)); return *this; }
247
249
255 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
256 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
257 template<typename ServiceRoleT = Aws::String>
258 void SetServiceRole(ServiceRoleT&& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = std::forward<ServiceRoleT>(value); }
259 template<typename ServiceRoleT = Aws::String>
260 CommandInvocation& WithServiceRole(ServiceRoleT&& value) { SetServiceRole(std::forward<ServiceRoleT>(value)); return *this;}
262
264
268 inline const NotificationConfig& GetNotificationConfig() const { return m_notificationConfig; }
269 inline bool NotificationConfigHasBeenSet() const { return m_notificationConfigHasBeenSet; }
270 template<typename NotificationConfigT = NotificationConfig>
271 void SetNotificationConfig(NotificationConfigT&& value) { m_notificationConfigHasBeenSet = true; m_notificationConfig = std::forward<NotificationConfigT>(value); }
272 template<typename NotificationConfigT = NotificationConfig>
273 CommandInvocation& WithNotificationConfig(NotificationConfigT&& value) { SetNotificationConfig(std::forward<NotificationConfigT>(value)); return *this;}
275
277
281 inline const CloudWatchOutputConfig& GetCloudWatchOutputConfig() const { return m_cloudWatchOutputConfig; }
282 inline bool CloudWatchOutputConfigHasBeenSet() const { return m_cloudWatchOutputConfigHasBeenSet; }
283 template<typename CloudWatchOutputConfigT = CloudWatchOutputConfig>
284 void SetCloudWatchOutputConfig(CloudWatchOutputConfigT&& value) { m_cloudWatchOutputConfigHasBeenSet = true; m_cloudWatchOutputConfig = std::forward<CloudWatchOutputConfigT>(value); }
285 template<typename CloudWatchOutputConfigT = CloudWatchOutputConfig>
286 CommandInvocation& WithCloudWatchOutputConfig(CloudWatchOutputConfigT&& value) { SetCloudWatchOutputConfig(std::forward<CloudWatchOutputConfigT>(value)); return *this;}
288 private:
289
290 Aws::String m_commandId;
291 bool m_commandIdHasBeenSet = false;
292
293 Aws::String m_instanceId;
294 bool m_instanceIdHasBeenSet = false;
295
296 Aws::String m_instanceName;
297 bool m_instanceNameHasBeenSet = false;
298
299 Aws::String m_comment;
300 bool m_commentHasBeenSet = false;
301
302 Aws::String m_documentName;
303 bool m_documentNameHasBeenSet = false;
304
305 Aws::String m_documentVersion;
306 bool m_documentVersionHasBeenSet = false;
307
308 Aws::Utils::DateTime m_requestedDateTime{};
309 bool m_requestedDateTimeHasBeenSet = false;
310
312 bool m_statusHasBeenSet = false;
313
314 Aws::String m_statusDetails;
315 bool m_statusDetailsHasBeenSet = false;
316
317 Aws::String m_traceOutput;
318 bool m_traceOutputHasBeenSet = false;
319
320 Aws::String m_standardOutputUrl;
321 bool m_standardOutputUrlHasBeenSet = false;
322
323 Aws::String m_standardErrorUrl;
324 bool m_standardErrorUrlHasBeenSet = false;
325
326 Aws::Vector<CommandPlugin> m_commandPlugins;
327 bool m_commandPluginsHasBeenSet = false;
328
329 Aws::String m_serviceRole;
330 bool m_serviceRoleHasBeenSet = false;
331
332 NotificationConfig m_notificationConfig;
333 bool m_notificationConfigHasBeenSet = false;
334
335 CloudWatchOutputConfig m_cloudWatchOutputConfig;
336 bool m_cloudWatchOutputConfigHasBeenSet = false;
337 };
338
339} // namespace Model
340} // namespace SSM
341} // 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