AWS SDK for C++  0.12.9
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>
22 
23 namespace Aws
24 {
25 namespace Utils
26 {
27 namespace Json
28 {
29  class JsonValue;
30 } // namespace Json
31 } // namespace Utils
32 namespace SSM
33 {
34 namespace Model
35 {
36 
46  {
47  public:
50  CommandInvocation& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
51  Aws::Utils::Json::JsonValue Jsonize() const;
52 
56  inline const Aws::String& GetCommandId() const{ return m_commandId; }
57 
61  inline void SetCommandId(const Aws::String& value) { m_commandIdHasBeenSet = true; m_commandId = value; }
62 
66  inline void SetCommandId(Aws::String&& value) { m_commandIdHasBeenSet = true; m_commandId = value; }
67 
71  inline void SetCommandId(const char* value) { m_commandIdHasBeenSet = true; m_commandId.assign(value); }
72 
76  inline CommandInvocation& WithCommandId(const Aws::String& value) { SetCommandId(value); return *this;}
77 
81  inline CommandInvocation& WithCommandId(Aws::String&& value) { SetCommandId(value); return *this;}
82 
86  inline CommandInvocation& WithCommandId(const char* value) { SetCommandId(value); return *this;}
87 
91  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
92 
96  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
97 
101  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
102 
106  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
107 
111  inline CommandInvocation& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
112 
116  inline CommandInvocation& WithInstanceId(Aws::String&& value) { SetInstanceId(value); return *this;}
117 
121  inline CommandInvocation& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
122 
127  inline const Aws::String& GetComment() const{ return m_comment; }
128 
133  inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
134 
139  inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = value; }
140 
145  inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
146 
151  inline CommandInvocation& WithComment(const Aws::String& value) { SetComment(value); return *this;}
152 
157  inline CommandInvocation& WithComment(Aws::String&& value) { SetComment(value); return *this;}
158 
163  inline CommandInvocation& WithComment(const char* value) { SetComment(value); return *this;}
164 
168  inline const Aws::String& GetDocumentName() const{ return m_documentName; }
169 
173  inline void SetDocumentName(const Aws::String& value) { m_documentNameHasBeenSet = true; m_documentName = value; }
174 
178  inline void SetDocumentName(Aws::String&& value) { m_documentNameHasBeenSet = true; m_documentName = value; }
179 
183  inline void SetDocumentName(const char* value) { m_documentNameHasBeenSet = true; m_documentName.assign(value); }
184 
188  inline CommandInvocation& WithDocumentName(const Aws::String& value) { SetDocumentName(value); return *this;}
189 
193  inline CommandInvocation& WithDocumentName(Aws::String&& value) { SetDocumentName(value); return *this;}
194 
198  inline CommandInvocation& WithDocumentName(const char* value) { SetDocumentName(value); return *this;}
199 
203  inline const Aws::Utils::DateTime& GetRequestedDateTime() const{ return m_requestedDateTime; }
204 
208  inline void SetRequestedDateTime(const Aws::Utils::DateTime& value) { m_requestedDateTimeHasBeenSet = true; m_requestedDateTime = value; }
209 
213  inline void SetRequestedDateTime(Aws::Utils::DateTime&& value) { m_requestedDateTimeHasBeenSet = true; m_requestedDateTime = value; }
214 
218  inline CommandInvocation& WithRequestedDateTime(const Aws::Utils::DateTime& value) { SetRequestedDateTime(value); return *this;}
219 
223  inline CommandInvocation& WithRequestedDateTime(Aws::Utils::DateTime&& value) { SetRequestedDateTime(value); return *this;}
224 
228  inline const CommandInvocationStatus& GetStatus() const{ return m_status; }
229 
233  inline void SetStatus(const CommandInvocationStatus& value) { m_statusHasBeenSet = true; m_status = value; }
234 
238  inline void SetStatus(CommandInvocationStatus&& value) { m_statusHasBeenSet = true; m_status = value; }
239 
243  inline CommandInvocation& WithStatus(const CommandInvocationStatus& value) { SetStatus(value); return *this;}
244 
248  inline CommandInvocation& WithStatus(CommandInvocationStatus&& value) { SetStatus(value); return *this;}
249 
253  inline const Aws::String& GetTraceOutput() const{ return m_traceOutput; }
254 
258  inline void SetTraceOutput(const Aws::String& value) { m_traceOutputHasBeenSet = true; m_traceOutput = value; }
259 
263  inline void SetTraceOutput(Aws::String&& value) { m_traceOutputHasBeenSet = true; m_traceOutput = value; }
264 
268  inline void SetTraceOutput(const char* value) { m_traceOutputHasBeenSet = true; m_traceOutput.assign(value); }
269 
273  inline CommandInvocation& WithTraceOutput(const Aws::String& value) { SetTraceOutput(value); return *this;}
274 
278  inline CommandInvocation& WithTraceOutput(Aws::String&& value) { SetTraceOutput(value); return *this;}
279 
283  inline CommandInvocation& WithTraceOutput(const char* value) { SetTraceOutput(value); return *this;}
284 
285 
286  inline const Aws::Vector<CommandPlugin>& GetCommandPlugins() const{ return m_commandPlugins; }
287 
288 
289  inline void SetCommandPlugins(const Aws::Vector<CommandPlugin>& value) { m_commandPluginsHasBeenSet = true; m_commandPlugins = value; }
290 
291 
292  inline void SetCommandPlugins(Aws::Vector<CommandPlugin>&& value) { m_commandPluginsHasBeenSet = true; m_commandPlugins = value; }
293 
294 
295  inline CommandInvocation& WithCommandPlugins(const Aws::Vector<CommandPlugin>& value) { SetCommandPlugins(value); return *this;}
296 
297 
298  inline CommandInvocation& WithCommandPlugins(Aws::Vector<CommandPlugin>&& value) { SetCommandPlugins(value); return *this;}
299 
300 
301  inline CommandInvocation& AddCommandPlugins(const CommandPlugin& value) { m_commandPluginsHasBeenSet = true; m_commandPlugins.push_back(value); return *this; }
302 
303 
304  inline CommandInvocation& AddCommandPlugins(CommandPlugin&& value) { m_commandPluginsHasBeenSet = true; m_commandPlugins.push_back(value); return *this; }
305 
306  private:
307  Aws::String m_commandId;
308  bool m_commandIdHasBeenSet;
309  Aws::String m_instanceId;
310  bool m_instanceIdHasBeenSet;
311  Aws::String m_comment;
312  bool m_commentHasBeenSet;
313  Aws::String m_documentName;
314  bool m_documentNameHasBeenSet;
315  Aws::Utils::DateTime m_requestedDateTime;
316  bool m_requestedDateTimeHasBeenSet;
317  CommandInvocationStatus m_status;
318  bool m_statusHasBeenSet;
319  Aws::String m_traceOutput;
320  bool m_traceOutputHasBeenSet;
321  Aws::Vector<CommandPlugin> m_commandPlugins;
322  bool m_commandPluginsHasBeenSet;
323  };
324 
325 } // namespace Model
326 } // namespace SSM
327 } // 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 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)
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)
void SetTraceOutput(const Aws::String &value)
CommandInvocation & WithTraceOutput(const Aws::String &value)
void SetDocumentName(const char *value)
const Aws::String & GetCommandId() const
const Aws::String & GetDocumentName() const
CommandInvocation & WithRequestedDateTime(Aws::Utils::DateTime &&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 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:34
CommandInvocation & WithDocumentName(const Aws::String &value)
const Aws::Utils::DateTime & GetRequestedDateTime() const
void SetCommandId(const char *value)
void SetCommandId(const Aws::String &value)
void SetInstanceId(const Aws::String &value)
JSON (JavaScript Object Notation).
const Aws::String & GetInstanceId() const