AWS SDK for C++  0.12.9
AWS SDK for C++
CommandPlugin.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>
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace SSM
31 {
32 namespace Model
33 {
34 
39  {
40  public:
41  CommandPlugin();
43  CommandPlugin& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
51  inline const Aws::String& GetName() const{ return m_name; }
52 
58  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
59 
65  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
66 
72  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
73 
79  inline CommandPlugin& WithName(const Aws::String& value) { SetName(value); return *this;}
80 
86  inline CommandPlugin& WithName(Aws::String&& value) { SetName(value); return *this;}
87 
93  inline CommandPlugin& WithName(const char* value) { SetName(value); return *this;}
94 
99  inline const CommandPluginStatus& GetStatus() const{ return m_status; }
100 
105  inline void SetStatus(const CommandPluginStatus& value) { m_statusHasBeenSet = true; m_status = value; }
106 
111  inline void SetStatus(CommandPluginStatus&& value) { m_statusHasBeenSet = true; m_status = value; }
112 
117  inline CommandPlugin& WithStatus(const CommandPluginStatus& value) { SetStatus(value); return *this;}
118 
123  inline CommandPlugin& WithStatus(CommandPluginStatus&& value) { SetStatus(value); return *this;}
124 
128  inline long GetResponseCode() const{ return m_responseCode; }
129 
133  inline void SetResponseCode(long value) { m_responseCodeHasBeenSet = true; m_responseCode = value; }
134 
138  inline CommandPlugin& WithResponseCode(long value) { SetResponseCode(value); return *this;}
139 
143  inline const Aws::Utils::DateTime& GetResponseStartDateTime() const{ return m_responseStartDateTime; }
144 
148  inline void SetResponseStartDateTime(const Aws::Utils::DateTime& value) { m_responseStartDateTimeHasBeenSet = true; m_responseStartDateTime = value; }
149 
153  inline void SetResponseStartDateTime(Aws::Utils::DateTime&& value) { m_responseStartDateTimeHasBeenSet = true; m_responseStartDateTime = value; }
154 
158  inline CommandPlugin& WithResponseStartDateTime(const Aws::Utils::DateTime& value) { SetResponseStartDateTime(value); return *this;}
159 
163  inline CommandPlugin& WithResponseStartDateTime(Aws::Utils::DateTime&& value) { SetResponseStartDateTime(value); return *this;}
164 
169  inline const Aws::Utils::DateTime& GetResponseFinishDateTime() const{ return m_responseFinishDateTime; }
170 
175  inline void SetResponseFinishDateTime(const Aws::Utils::DateTime& value) { m_responseFinishDateTimeHasBeenSet = true; m_responseFinishDateTime = value; }
176 
181  inline void SetResponseFinishDateTime(Aws::Utils::DateTime&& value) { m_responseFinishDateTimeHasBeenSet = true; m_responseFinishDateTime = value; }
182 
187  inline CommandPlugin& WithResponseFinishDateTime(const Aws::Utils::DateTime& value) { SetResponseFinishDateTime(value); return *this;}
188 
193  inline CommandPlugin& WithResponseFinishDateTime(Aws::Utils::DateTime&& value) { SetResponseFinishDateTime(value); return *this;}
194 
198  inline const Aws::String& GetOutput() const{ return m_output; }
199 
203  inline void SetOutput(const Aws::String& value) { m_outputHasBeenSet = true; m_output = value; }
204 
208  inline void SetOutput(Aws::String&& value) { m_outputHasBeenSet = true; m_output = value; }
209 
213  inline void SetOutput(const char* value) { m_outputHasBeenSet = true; m_output.assign(value); }
214 
218  inline CommandPlugin& WithOutput(const Aws::String& value) { SetOutput(value); return *this;}
219 
223  inline CommandPlugin& WithOutput(Aws::String&& value) { SetOutput(value); return *this;}
224 
228  inline CommandPlugin& WithOutput(const char* value) { SetOutput(value); return *this;}
229 
234  inline const Aws::String& GetOutputS3BucketName() const{ return m_outputS3BucketName; }
235 
240  inline void SetOutputS3BucketName(const Aws::String& value) { m_outputS3BucketNameHasBeenSet = true; m_outputS3BucketName = value; }
241 
246  inline void SetOutputS3BucketName(Aws::String&& value) { m_outputS3BucketNameHasBeenSet = true; m_outputS3BucketName = value; }
247 
252  inline void SetOutputS3BucketName(const char* value) { m_outputS3BucketNameHasBeenSet = true; m_outputS3BucketName.assign(value); }
253 
258  inline CommandPlugin& WithOutputS3BucketName(const Aws::String& value) { SetOutputS3BucketName(value); return *this;}
259 
264  inline CommandPlugin& WithOutputS3BucketName(Aws::String&& value) { SetOutputS3BucketName(value); return *this;}
265 
270  inline CommandPlugin& WithOutputS3BucketName(const char* value) { SetOutputS3BucketName(value); return *this;}
271 
276  inline const Aws::String& GetOutputS3KeyPrefix() const{ return m_outputS3KeyPrefix; }
277 
282  inline void SetOutputS3KeyPrefix(const Aws::String& value) { m_outputS3KeyPrefixHasBeenSet = true; m_outputS3KeyPrefix = value; }
283 
288  inline void SetOutputS3KeyPrefix(Aws::String&& value) { m_outputS3KeyPrefixHasBeenSet = true; m_outputS3KeyPrefix = value; }
289 
294  inline void SetOutputS3KeyPrefix(const char* value) { m_outputS3KeyPrefixHasBeenSet = true; m_outputS3KeyPrefix.assign(value); }
295 
300  inline CommandPlugin& WithOutputS3KeyPrefix(const Aws::String& value) { SetOutputS3KeyPrefix(value); return *this;}
301 
306  inline CommandPlugin& WithOutputS3KeyPrefix(Aws::String&& value) { SetOutputS3KeyPrefix(value); return *this;}
307 
312  inline CommandPlugin& WithOutputS3KeyPrefix(const char* value) { SetOutputS3KeyPrefix(value); return *this;}
313 
314  private:
315  Aws::String m_name;
316  bool m_nameHasBeenSet;
317  CommandPluginStatus m_status;
318  bool m_statusHasBeenSet;
319  long m_responseCode;
320  bool m_responseCodeHasBeenSet;
321  Aws::Utils::DateTime m_responseStartDateTime;
322  bool m_responseStartDateTimeHasBeenSet;
323  Aws::Utils::DateTime m_responseFinishDateTime;
324  bool m_responseFinishDateTimeHasBeenSet;
325  Aws::String m_output;
326  bool m_outputHasBeenSet;
327  Aws::String m_outputS3BucketName;
328  bool m_outputS3BucketNameHasBeenSet;
329  Aws::String m_outputS3KeyPrefix;
330  bool m_outputS3KeyPrefixHasBeenSet;
331  };
332 
333 } // namespace Model
334 } // namespace SSM
335 } // namespace Aws
void SetName(const char *value)
Definition: CommandPlugin.h:72
void SetName(const Aws::String &value)
Definition: CommandPlugin.h:58
CommandPlugin & WithName(const Aws::String &value)
Definition: CommandPlugin.h:79
CommandPlugin & WithResponseFinishDateTime(const Aws::Utils::DateTime &value)
const CommandPluginStatus & GetStatus() const
Definition: CommandPlugin.h:99
void SetOutputS3KeyPrefix(Aws::String &&value)
void SetName(Aws::String &&value)
Definition: CommandPlugin.h:65
void SetResponseStartDateTime(Aws::Utils::DateTime &&value)
void SetOutput(Aws::String &&value)
CommandPlugin & WithOutputS3KeyPrefix(Aws::String &&value)
const Aws::String & GetOutput() const
CommandPlugin & WithName(const char *value)
Definition: CommandPlugin.h:93
CommandPlugin & WithResponseStartDateTime(Aws::Utils::DateTime &&value)
void SetOutputS3BucketName(Aws::String &&value)
void SetOutputS3BucketName(const Aws::String &value)
void SetStatus(const CommandPluginStatus &value)
void SetOutputS3KeyPrefix(const Aws::String &value)
CommandPlugin & WithResponseCode(long value)
void SetOutput(const Aws::String &value)
const Aws::String & GetName() const
Definition: CommandPlugin.h:51
CommandPlugin & WithOutput(const char *value)
CommandPlugin & WithResponseFinishDateTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetResponseFinishDateTime() const
CommandPlugin & WithOutputS3BucketName(Aws::String &&value)
CommandPlugin & WithOutputS3BucketName(const char *value)
void SetResponseCode(long value)
void SetResponseFinishDateTime(Aws::Utils::DateTime &&value)
const Aws::String & GetOutputS3KeyPrefix() const
CommandPlugin & WithStatus(CommandPluginStatus &&value)
void SetOutput(const char *value)
CommandPlugin & WithOutputS3KeyPrefix(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetStatus(CommandPluginStatus &&value)
CommandPlugin & WithOutputS3BucketName(const Aws::String &value)
CommandPlugin & WithResponseStartDateTime(const Aws::Utils::DateTime &value)
const Aws::String & GetOutputS3BucketName() const
const Aws::Utils::DateTime & GetResponseStartDateTime() const
#define AWS_SSM_API
Definition: SSM_EXPORTS.h:34
CommandPlugin & WithStatus(const CommandPluginStatus &value)
CommandPlugin & WithName(Aws::String &&value)
Definition: CommandPlugin.h:86
void SetResponseFinishDateTime(const Aws::Utils::DateTime &value)
void SetOutputS3KeyPrefix(const char *value)
CommandPlugin & WithOutputS3KeyPrefix(const Aws::String &value)
void SetResponseStartDateTime(const Aws::Utils::DateTime &value)
CommandPlugin & WithOutput(const Aws::String &value)
JSON (JavaScript Object Notation).
void SetOutputS3BucketName(const char *value)
CommandPlugin & WithOutput(Aws::String &&value)