AWS SDK for C++  0.14.3
AWS SDK for C++
CommandInvocation.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/ssm/SSM_EXPORTS.h>
23 
24 namespace Aws
25 {
26 namespace Utils
27 {
28 namespace Json
29 {
30  class JsonValue;
31 } // namespace Json
32 } // namespace Utils
33 namespace SSM
34 {
35 namespace Model
36 {
37 
47  {
48  public:
51  CommandInvocation& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
52  Aws::Utils::Json::JsonValue Jsonize() const;
53 
57  inline const Aws::String& GetCommandId() const{ return m_commandId; }
58 
62  inline void SetCommandId(const Aws::String& value) { m_commandIdHasBeenSet = true; m_commandId = value; }
63 
67  inline void SetCommandId(Aws::String&& value) { m_commandIdHasBeenSet = true; m_commandId = value; }
68 
72  inline void SetCommandId(const char* value) { m_commandIdHasBeenSet = true; m_commandId.assign(value); }
73 
77  inline CommandInvocation& WithCommandId(const Aws::String& value) { SetCommandId(value); return *this;}
78 
82  inline CommandInvocation& WithCommandId(Aws::String&& value) { SetCommandId(value); return *this;}
83 
87  inline CommandInvocation& WithCommandId(const char* value) { SetCommandId(value); return *this;}
88 
92  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
93 
97  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
98 
102  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
103 
107  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
108 
112  inline CommandInvocation& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
113 
117  inline CommandInvocation& WithInstanceId(Aws::String&& value) { SetInstanceId(value); return *this;}
118 
122  inline CommandInvocation& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
123 
128  inline const Aws::String& GetComment() const{ return m_comment; }
129 
134  inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
135 
140  inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = value; }
141 
146  inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
147 
152  inline CommandInvocation& WithComment(const Aws::String& value) { SetComment(value); return *this;}
153 
158  inline CommandInvocation& WithComment(Aws::String&& value) { SetComment(value); return *this;}
159 
164  inline CommandInvocation& WithComment(const char* value) { SetComment(value); return *this;}
165 
169  inline const Aws::String& GetDocumentName() const{ return m_documentName; }
170 
174  inline void SetDocumentName(const Aws::String& value) { m_documentNameHasBeenSet = true; m_documentName = value; }
175 
179  inline void SetDocumentName(Aws::String&& value) { m_documentNameHasBeenSet = true; m_documentName = value; }
180 
184  inline void SetDocumentName(const char* value) { m_documentNameHasBeenSet = true; m_documentName.assign(value); }
185 
189  inline CommandInvocation& WithDocumentName(const Aws::String& value) { SetDocumentName(value); return *this;}
190 
194  inline CommandInvocation& WithDocumentName(Aws::String&& value) { SetDocumentName(value); return *this;}
195 
199  inline CommandInvocation& WithDocumentName(const char* value) { SetDocumentName(value); return *this;}
200 
204  inline const Aws::Utils::DateTime& GetRequestedDateTime() const{ return m_requestedDateTime; }
205 
209  inline void SetRequestedDateTime(const Aws::Utils::DateTime& value) { m_requestedDateTimeHasBeenSet = true; m_requestedDateTime = value; }
210 
214  inline void SetRequestedDateTime(Aws::Utils::DateTime&& value) { m_requestedDateTimeHasBeenSet = true; m_requestedDateTime = value; }
215 
219  inline CommandInvocation& WithRequestedDateTime(const Aws::Utils::DateTime& value) { SetRequestedDateTime(value); return *this;}
220 
224  inline CommandInvocation& WithRequestedDateTime(Aws::Utils::DateTime&& value) { SetRequestedDateTime(value); return *this;}
225 
229  inline const CommandInvocationStatus& GetStatus() const{ return m_status; }
230 
234  inline void SetStatus(const CommandInvocationStatus& value) { m_statusHasBeenSet = true; m_status = value; }
235 
239  inline void SetStatus(CommandInvocationStatus&& value) { m_statusHasBeenSet = true; m_status = value; }
240 
244  inline CommandInvocation& WithStatus(const CommandInvocationStatus& value) { SetStatus(value); return *this;}
245 
249  inline CommandInvocation& WithStatus(CommandInvocationStatus&& value) { SetStatus(value); return *this;}
250 
254  inline const Aws::String& GetTraceOutput() const{ return m_traceOutput; }
255 
259  inline void SetTraceOutput(const Aws::String& value) { m_traceOutputHasBeenSet = true; m_traceOutput = value; }
260 
264  inline void SetTraceOutput(Aws::String&& value) { m_traceOutputHasBeenSet = true; m_traceOutput = value; }
265 
269  inline void SetTraceOutput(const char* value) { m_traceOutputHasBeenSet = true; m_traceOutput.assign(value); }
270 
274  inline CommandInvocation& WithTraceOutput(const Aws::String& value) { SetTraceOutput(value); return *this;}
275 
279  inline CommandInvocation& WithTraceOutput(Aws::String&& value) { SetTraceOutput(value); return *this;}
280 
284  inline CommandInvocation& WithTraceOutput(const char* value) { SetTraceOutput(value); return *this;}
285 
286 
287  inline const Aws::Vector<CommandPlugin>& GetCommandPlugins() const{ return m_commandPlugins; }
288 
289 
290  inline void SetCommandPlugins(const Aws::Vector<CommandPlugin>& value) { m_commandPluginsHasBeenSet = true; m_commandPlugins = value; }
291 
292 
293  inline void SetCommandPlugins(Aws::Vector<CommandPlugin>&& value) { m_commandPluginsHasBeenSet = true; m_commandPlugins = value; }
294 
295 
296  inline CommandInvocation& WithCommandPlugins(const Aws::Vector<CommandPlugin>& value) { SetCommandPlugins(value); return *this;}
297 
298 
299  inline CommandInvocation& WithCommandPlugins(Aws::Vector<CommandPlugin>&& value) { SetCommandPlugins(value); return *this;}
300 
301 
302  inline CommandInvocation& AddCommandPlugins(const CommandPlugin& value) { m_commandPluginsHasBeenSet = true; m_commandPlugins.push_back(value); return *this; }
303 
304 
305  inline CommandInvocation& AddCommandPlugins(CommandPlugin&& value) { m_commandPluginsHasBeenSet = true; m_commandPlugins.push_back(value); return *this; }
306 
311  inline const Aws::String& GetServiceRole() const{ return m_serviceRole; }
312 
317  inline void SetServiceRole(const Aws::String& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = value; }
318 
323  inline void SetServiceRole(Aws::String&& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = value; }
324 
329  inline void SetServiceRole(const char* value) { m_serviceRoleHasBeenSet = true; m_serviceRole.assign(value); }
330 
335  inline CommandInvocation& WithServiceRole(const Aws::String& value) { SetServiceRole(value); return *this;}
336 
341  inline CommandInvocation& WithServiceRole(Aws::String&& value) { SetServiceRole(value); return *this;}
342 
347  inline CommandInvocation& WithServiceRole(const char* value) { SetServiceRole(value); return *this;}
348 
353  inline const NotificationConfig& GetNotificationConfig() const{ return m_notificationConfig; }
354 
359  inline void SetNotificationConfig(const NotificationConfig& value) { m_notificationConfigHasBeenSet = true; m_notificationConfig = value; }
360 
365  inline void SetNotificationConfig(NotificationConfig&& value) { m_notificationConfigHasBeenSet = true; m_notificationConfig = value; }
366 
371  inline CommandInvocation& WithNotificationConfig(const NotificationConfig& value) { SetNotificationConfig(value); return *this;}
372 
377  inline CommandInvocation& WithNotificationConfig(NotificationConfig&& value) { SetNotificationConfig(value); return *this;}
378 
379  private:
380  Aws::String m_commandId;
381  bool m_commandIdHasBeenSet;
382  Aws::String m_instanceId;
383  bool m_instanceIdHasBeenSet;
384  Aws::String m_comment;
385  bool m_commentHasBeenSet;
386  Aws::String m_documentName;
387  bool m_documentNameHasBeenSet;
388  Aws::Utils::DateTime m_requestedDateTime;
389  bool m_requestedDateTimeHasBeenSet;
390  CommandInvocationStatus m_status;
391  bool m_statusHasBeenSet;
392  Aws::String m_traceOutput;
393  bool m_traceOutputHasBeenSet;
394  Aws::Vector<CommandPlugin> m_commandPlugins;
395  bool m_commandPluginsHasBeenSet;
396  Aws::String m_serviceRole;
397  bool m_serviceRoleHasBeenSet;
398  NotificationConfig m_notificationConfig;
399  bool m_notificationConfigHasBeenSet;
400  };
401 
402 } // namespace Model
403 } // namespace SSM
404 } // namespace Aws
CommandInvocation & WithStatus(CommandInvocationStatus &&value)
CommandInvocation & WithTraceOutput(const char *value)
void SetTraceOutput(Aws::String &&value)
void SetDocumentName(const Aws::String &value)
CommandInvocation & WithComment(const char *value)
const Aws::Vector< CommandPlugin > & GetCommandPlugins() const
void SetInstanceId(Aws::String &&value)
void SetCommandPlugins(Aws::Vector< CommandPlugin > &&value)
const CommandInvocationStatus & GetStatus() const
void SetStatus(const CommandInvocationStatus &value)
CommandInvocation & WithRequestedDateTime(const Aws::Utils::DateTime &value)
CommandInvocation & WithInstanceId(const char *value)
void SetCommandPlugins(const Aws::Vector< CommandPlugin > &value)
void SetComment(const char *value)
CommandInvocation & WithInstanceId(const Aws::String &value)
void SetServiceRole(const char *value)
void SetStatus(CommandInvocationStatus &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
CommandInvocation & WithCommandPlugins(Aws::Vector< CommandPlugin > &&value)
CommandInvocation & AddCommandPlugins(const CommandPlugin &value)
void SetTraceOutput(const char *value)
CommandInvocation & WithCommandId(const char *value)
void SetNotificationConfig(NotificationConfig &&value)
CommandInvocation & WithCommandPlugins(const Aws::Vector< CommandPlugin > &value)
CommandInvocation & WithCommandId(const Aws::String &value)
void SetInstanceId(const char *value)
CommandInvocation & WithComment(Aws::String &&value)
CommandInvocation & WithComment(const Aws::String &value)
CommandInvocation & WithDocumentName(const char *value)
CommandInvocation & WithNotificationConfig(NotificationConfig &&value)
CommandInvocation & WithServiceRole(const char *value)
const Aws::String & GetServiceRole() const
void SetTraceOutput(const Aws::String &value)
CommandInvocation & WithTraceOutput(const Aws::String &value)
void SetDocumentName(const char *value)
CommandInvocation & WithServiceRole(Aws::String &&value)
const Aws::String & GetCommandId() const
CommandInvocation & WithNotificationConfig(const NotificationConfig &value)
const Aws::String & GetDocumentName() const
const NotificationConfig & GetNotificationConfig() const
CommandInvocation & WithRequestedDateTime(Aws::Utils::DateTime &&value)
void SetServiceRole(Aws::String &&value)
void SetRequestedDateTime(Aws::Utils::DateTime &&value)
CommandInvocation & WithCommandId(Aws::String &&value)
CommandInvocation & WithInstanceId(Aws::String &&value)
void SetComment(Aws::String &&value)
void SetCommandId(Aws::String &&value)
const Aws::String & GetComment() const
void SetDocumentName(Aws::String &&value)
CommandInvocation & WithTraceOutput(Aws::String &&value)
CommandInvocation & WithStatus(const CommandInvocationStatus &value)
void SetServiceRole(const Aws::String &value)
void SetComment(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetRequestedDateTime(const Aws::Utils::DateTime &value)
CommandInvocation & AddCommandPlugins(CommandPlugin &&value)
const Aws::String & GetTraceOutput() const
CommandInvocation & WithDocumentName(Aws::String &&value)
#define AWS_SSM_API
Definition: SSM_EXPORTS.h:37
CommandInvocation & WithDocumentName(const Aws::String &value)
void SetNotificationConfig(const NotificationConfig &value)
const Aws::Utils::DateTime & GetRequestedDateTime() const
void SetCommandId(const char *value)
void SetCommandId(const Aws::String &value)
CommandInvocation & WithServiceRole(const Aws::String &value)
void SetInstanceId(const Aws::String &value)
JSON (JavaScript Object Notation).
const Aws::String & GetInstanceId() const