AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetCommandInvocationResult.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ssm/model/CommandInvocationStatus.h>
10#include <aws/ssm/model/CloudWatchOutputConfig.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace SSM
26{
27namespace Model
28{
30 {
31 public:
35
36
38
41 inline const Aws::String& GetCommandId() const{ return m_commandId; }
42 inline void SetCommandId(const Aws::String& value) { m_commandId = value; }
43 inline void SetCommandId(Aws::String&& value) { m_commandId = std::move(value); }
44 inline void SetCommandId(const char* value) { m_commandId.assign(value); }
45 inline GetCommandInvocationResult& WithCommandId(const Aws::String& value) { SetCommandId(value); return *this;}
46 inline GetCommandInvocationResult& WithCommandId(Aws::String&& value) { SetCommandId(std::move(value)); return *this;}
47 inline GetCommandInvocationResult& WithCommandId(const char* value) { SetCommandId(value); return *this;}
49
51
57 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
58 inline void SetInstanceId(const Aws::String& value) { m_instanceId = value; }
59 inline void SetInstanceId(Aws::String&& value) { m_instanceId = std::move(value); }
60 inline void SetInstanceId(const char* value) { m_instanceId.assign(value); }
61 inline GetCommandInvocationResult& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
62 inline GetCommandInvocationResult& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
63 inline GetCommandInvocationResult& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
65
67
70 inline const Aws::String& GetComment() const{ return m_comment; }
71 inline void SetComment(const Aws::String& value) { m_comment = value; }
72 inline void SetComment(Aws::String&& value) { m_comment = std::move(value); }
73 inline void SetComment(const char* value) { m_comment.assign(value); }
74 inline GetCommandInvocationResult& WithComment(const Aws::String& value) { SetComment(value); return *this;}
75 inline GetCommandInvocationResult& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;}
76 inline GetCommandInvocationResult& WithComment(const char* value) { SetComment(value); return *this;}
78
80
84 inline const Aws::String& GetDocumentName() const{ return m_documentName; }
85 inline void SetDocumentName(const Aws::String& value) { m_documentName = value; }
86 inline void SetDocumentName(Aws::String&& value) { m_documentName = std::move(value); }
87 inline void SetDocumentName(const char* value) { m_documentName.assign(value); }
88 inline GetCommandInvocationResult& WithDocumentName(const Aws::String& value) { SetDocumentName(value); return *this;}
89 inline GetCommandInvocationResult& WithDocumentName(Aws::String&& value) { SetDocumentName(std::move(value)); return *this;}
90 inline GetCommandInvocationResult& WithDocumentName(const char* value) { SetDocumentName(value); return *this;}
92
94
97 inline const Aws::String& GetDocumentVersion() const{ return m_documentVersion; }
98 inline void SetDocumentVersion(const Aws::String& value) { m_documentVersion = value; }
99 inline void SetDocumentVersion(Aws::String&& value) { m_documentVersion = std::move(value); }
100 inline void SetDocumentVersion(const char* value) { m_documentVersion.assign(value); }
102 inline GetCommandInvocationResult& WithDocumentVersion(Aws::String&& value) { SetDocumentVersion(std::move(value)); return *this;}
103 inline GetCommandInvocationResult& WithDocumentVersion(const char* value) { SetDocumentVersion(value); return *this;}
105
107
111 inline const Aws::String& GetPluginName() const{ return m_pluginName; }
112 inline void SetPluginName(const Aws::String& value) { m_pluginName = value; }
113 inline void SetPluginName(Aws::String&& value) { m_pluginName = std::move(value); }
114 inline void SetPluginName(const char* value) { m_pluginName.assign(value); }
115 inline GetCommandInvocationResult& WithPluginName(const Aws::String& value) { SetPluginName(value); return *this;}
116 inline GetCommandInvocationResult& WithPluginName(Aws::String&& value) { SetPluginName(std::move(value)); return *this;}
117 inline GetCommandInvocationResult& WithPluginName(const char* value) { SetPluginName(value); return *this;}
119
121
126 inline int GetResponseCode() const{ return m_responseCode; }
127 inline void SetResponseCode(int value) { m_responseCode = value; }
128 inline GetCommandInvocationResult& WithResponseCode(int value) { SetResponseCode(value); return *this;}
130
132
140 inline const Aws::String& GetExecutionStartDateTime() const{ return m_executionStartDateTime; }
141 inline void SetExecutionStartDateTime(const Aws::String& value) { m_executionStartDateTime = value; }
142 inline void SetExecutionStartDateTime(Aws::String&& value) { m_executionStartDateTime = std::move(value); }
143 inline void SetExecutionStartDateTime(const char* value) { m_executionStartDateTime.assign(value); }
146 inline GetCommandInvocationResult& WithExecutionStartDateTime(const char* value) { SetExecutionStartDateTime(value); return *this;}
148
150
153 inline const Aws::String& GetExecutionElapsedTime() const{ return m_executionElapsedTime; }
154 inline void SetExecutionElapsedTime(const Aws::String& value) { m_executionElapsedTime = value; }
155 inline void SetExecutionElapsedTime(Aws::String&& value) { m_executionElapsedTime = std::move(value); }
156 inline void SetExecutionElapsedTime(const char* value) { m_executionElapsedTime.assign(value); }
159 inline GetCommandInvocationResult& WithExecutionElapsedTime(const char* value) { SetExecutionElapsedTime(value); return *this;}
161
163
171 inline const Aws::String& GetExecutionEndDateTime() const{ return m_executionEndDateTime; }
172 inline void SetExecutionEndDateTime(const Aws::String& value) { m_executionEndDateTime = value; }
173 inline void SetExecutionEndDateTime(Aws::String&& value) { m_executionEndDateTime = std::move(value); }
174 inline void SetExecutionEndDateTime(const char* value) { m_executionEndDateTime.assign(value); }
177 inline GetCommandInvocationResult& WithExecutionEndDateTime(const char* value) { SetExecutionEndDateTime(value); return *this;}
179
181
185 inline const CommandInvocationStatus& GetStatus() const{ return m_status; }
186 inline void SetStatus(const CommandInvocationStatus& value) { m_status = value; }
187 inline void SetStatus(CommandInvocationStatus&& value) { m_status = std::move(value); }
188 inline GetCommandInvocationResult& WithStatus(const CommandInvocationStatus& value) { SetStatus(value); return *this;}
189 inline GetCommandInvocationResult& WithStatus(CommandInvocationStatus&& value) { SetStatus(std::move(value)); return *this;}
191
193
232 inline const Aws::String& GetStatusDetails() const{ return m_statusDetails; }
233 inline void SetStatusDetails(const Aws::String& value) { m_statusDetails = value; }
234 inline void SetStatusDetails(Aws::String&& value) { m_statusDetails = std::move(value); }
235 inline void SetStatusDetails(const char* value) { m_statusDetails.assign(value); }
236 inline GetCommandInvocationResult& WithStatusDetails(const Aws::String& value) { SetStatusDetails(value); return *this;}
237 inline GetCommandInvocationResult& WithStatusDetails(Aws::String&& value) { SetStatusDetails(std::move(value)); return *this;}
238 inline GetCommandInvocationResult& WithStatusDetails(const char* value) { SetStatusDetails(value); return *this;}
240
242
247 inline const Aws::String& GetStandardOutputContent() const{ return m_standardOutputContent; }
248 inline void SetStandardOutputContent(const Aws::String& value) { m_standardOutputContent = value; }
249 inline void SetStandardOutputContent(Aws::String&& value) { m_standardOutputContent = std::move(value); }
250 inline void SetStandardOutputContent(const char* value) { m_standardOutputContent.assign(value); }
253 inline GetCommandInvocationResult& WithStandardOutputContent(const char* value) { SetStandardOutputContent(value); return *this;}
255
257
262 inline const Aws::String& GetStandardOutputUrl() const{ return m_standardOutputUrl; }
263 inline void SetStandardOutputUrl(const Aws::String& value) { m_standardOutputUrl = value; }
264 inline void SetStandardOutputUrl(Aws::String&& value) { m_standardOutputUrl = std::move(value); }
265 inline void SetStandardOutputUrl(const char* value) { m_standardOutputUrl.assign(value); }
267 inline GetCommandInvocationResult& WithStandardOutputUrl(Aws::String&& value) { SetStandardOutputUrl(std::move(value)); return *this;}
268 inline GetCommandInvocationResult& WithStandardOutputUrl(const char* value) { SetStandardOutputUrl(value); return *this;}
270
272
276 inline const Aws::String& GetStandardErrorContent() const{ return m_standardErrorContent; }
277 inline void SetStandardErrorContent(const Aws::String& value) { m_standardErrorContent = value; }
278 inline void SetStandardErrorContent(Aws::String&& value) { m_standardErrorContent = std::move(value); }
279 inline void SetStandardErrorContent(const char* value) { m_standardErrorContent.assign(value); }
282 inline GetCommandInvocationResult& WithStandardErrorContent(const char* value) { SetStandardErrorContent(value); return *this;}
284
286
290 inline const Aws::String& GetStandardErrorUrl() const{ return m_standardErrorUrl; }
291 inline void SetStandardErrorUrl(const Aws::String& value) { m_standardErrorUrl = value; }
292 inline void SetStandardErrorUrl(Aws::String&& value) { m_standardErrorUrl = std::move(value); }
293 inline void SetStandardErrorUrl(const char* value) { m_standardErrorUrl.assign(value); }
295 inline GetCommandInvocationResult& WithStandardErrorUrl(Aws::String&& value) { SetStandardErrorUrl(std::move(value)); return *this;}
296 inline GetCommandInvocationResult& WithStandardErrorUrl(const char* value) { SetStandardErrorUrl(value); return *this;}
298
300
304 inline const CloudWatchOutputConfig& GetCloudWatchOutputConfig() const{ return m_cloudWatchOutputConfig; }
305 inline void SetCloudWatchOutputConfig(const CloudWatchOutputConfig& value) { m_cloudWatchOutputConfig = value; }
306 inline void SetCloudWatchOutputConfig(CloudWatchOutputConfig&& value) { m_cloudWatchOutputConfig = std::move(value); }
310
312
313 inline const Aws::String& GetRequestId() const{ return m_requestId; }
314 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
315 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
316 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
317 inline GetCommandInvocationResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
318 inline GetCommandInvocationResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
319 inline GetCommandInvocationResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
321 private:
322
323 Aws::String m_commandId;
324
325 Aws::String m_instanceId;
326
327 Aws::String m_comment;
328
329 Aws::String m_documentName;
330
331 Aws::String m_documentVersion;
332
333 Aws::String m_pluginName;
334
335 int m_responseCode;
336
337 Aws::String m_executionStartDateTime;
338
339 Aws::String m_executionElapsedTime;
340
341 Aws::String m_executionEndDateTime;
342
344
345 Aws::String m_statusDetails;
346
347 Aws::String m_standardOutputContent;
348
349 Aws::String m_standardOutputUrl;
350
351 Aws::String m_standardErrorContent;
352
353 Aws::String m_standardErrorUrl;
354
355 CloudWatchOutputConfig m_cloudWatchOutputConfig;
356
357 Aws::String m_requestId;
358 };
359
360} // namespace Model
361} // namespace SSM
362} // namespace Aws
GetCommandInvocationResult & WithStandardErrorContent(Aws::String &&value)
GetCommandInvocationResult & WithStandardOutputUrl(const char *value)
GetCommandInvocationResult & WithComment(const char *value)
GetCommandInvocationResult & WithCloudWatchOutputConfig(const CloudWatchOutputConfig &value)
GetCommandInvocationResult & WithExecutionStartDateTime(const char *value)
GetCommandInvocationResult & WithDocumentVersion(const char *value)
GetCommandInvocationResult & WithDocumentName(Aws::String &&value)
GetCommandInvocationResult & WithCommandId(const Aws::String &value)
GetCommandInvocationResult & WithDocumentVersion(const Aws::String &value)
GetCommandInvocationResult & WithStatusDetails(const char *value)
GetCommandInvocationResult & WithStandardErrorContent(const Aws::String &value)
GetCommandInvocationResult & WithDocumentName(const char *value)
GetCommandInvocationResult & WithPluginName(Aws::String &&value)
GetCommandInvocationResult & WithPluginName(const Aws::String &value)
GetCommandInvocationResult & WithStandardErrorContent(const char *value)
GetCommandInvocationResult & WithRequestId(const char *value)
AWS_SSM_API GetCommandInvocationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetCommandInvocationResult & WithInstanceId(Aws::String &&value)
GetCommandInvocationResult & WithStandardErrorUrl(const char *value)
GetCommandInvocationResult & WithStandardOutputContent(Aws::String &&value)
GetCommandInvocationResult & WithStatusDetails(Aws::String &&value)
GetCommandInvocationResult & WithCloudWatchOutputConfig(CloudWatchOutputConfig &&value)
GetCommandInvocationResult & WithStandardOutputUrl(Aws::String &&value)
GetCommandInvocationResult & WithStandardErrorUrl(const Aws::String &value)
GetCommandInvocationResult & WithStandardErrorUrl(Aws::String &&value)
const CloudWatchOutputConfig & GetCloudWatchOutputConfig() const
GetCommandInvocationResult & WithExecutionElapsedTime(const char *value)
GetCommandInvocationResult & WithComment(Aws::String &&value)
GetCommandInvocationResult & WithCommandId(Aws::String &&value)
GetCommandInvocationResult & WithDocumentVersion(Aws::String &&value)
const CommandInvocationStatus & GetStatus() const
GetCommandInvocationResult & WithInstanceId(const Aws::String &value)
void SetCloudWatchOutputConfig(CloudWatchOutputConfig &&value)
GetCommandInvocationResult & WithExecutionEndDateTime(const char *value)
GetCommandInvocationResult & WithExecutionElapsedTime(Aws::String &&value)
GetCommandInvocationResult & WithExecutionStartDateTime(const Aws::String &value)
GetCommandInvocationResult & WithResponseCode(int value)
GetCommandInvocationResult & WithStatusDetails(const Aws::String &value)
GetCommandInvocationResult & WithRequestId(Aws::String &&value)
GetCommandInvocationResult & WithCommandId(const char *value)
GetCommandInvocationResult & WithExecutionStartDateTime(Aws::String &&value)
void SetStatus(const CommandInvocationStatus &value)
GetCommandInvocationResult & WithExecutionEndDateTime(Aws::String &&value)
AWS_SSM_API GetCommandInvocationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetCommandInvocationResult & WithExecutionEndDateTime(const Aws::String &value)
GetCommandInvocationResult & WithComment(const Aws::String &value)
GetCommandInvocationResult & WithPluginName(const char *value)
void SetCloudWatchOutputConfig(const CloudWatchOutputConfig &value)
GetCommandInvocationResult & WithStandardOutputContent(const char *value)
GetCommandInvocationResult & WithDocumentName(const Aws::String &value)
GetCommandInvocationResult & WithExecutionElapsedTime(const Aws::String &value)
GetCommandInvocationResult & WithRequestId(const Aws::String &value)
void SetStatus(CommandInvocationStatus &&value)
GetCommandInvocationResult & WithStandardOutputContent(const Aws::String &value)
GetCommandInvocationResult & WithStatus(const CommandInvocationStatus &value)
GetCommandInvocationResult & WithInstanceId(const char *value)
GetCommandInvocationResult & WithStandardOutputUrl(const Aws::String &value)
GetCommandInvocationResult & WithStatus(CommandInvocationStatus &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue