AWS SDK for C++  0.14.3
AWS SDK for C++
Deployment.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
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace OpsWorks
31 {
32 namespace Model
33 {
34 
39  {
40  public:
41  Deployment();
42  Deployment(const Aws::Utils::Json::JsonValue& jsonValue);
43  Deployment& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; }
50 
54  inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
55 
59  inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
60 
64  inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); }
65 
69  inline Deployment& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;}
70 
74  inline Deployment& WithDeploymentId(Aws::String&& value) { SetDeploymentId(value); return *this;}
75 
79  inline Deployment& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;}
80 
84  inline const Aws::String& GetStackId() const{ return m_stackId; }
85 
89  inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
90 
94  inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
95 
99  inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); }
100 
104  inline Deployment& WithStackId(const Aws::String& value) { SetStackId(value); return *this;}
105 
109  inline Deployment& WithStackId(Aws::String&& value) { SetStackId(value); return *this;}
110 
114  inline Deployment& WithStackId(const char* value) { SetStackId(value); return *this;}
115 
119  inline const Aws::String& GetAppId() const{ return m_appId; }
120 
124  inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
125 
129  inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = value; }
130 
134  inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
135 
139  inline Deployment& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
140 
144  inline Deployment& WithAppId(Aws::String&& value) { SetAppId(value); return *this;}
145 
149  inline Deployment& WithAppId(const char* value) { SetAppId(value); return *this;}
150 
154  inline const Aws::String& GetCreatedAt() const{ return m_createdAt; }
155 
159  inline void SetCreatedAt(const Aws::String& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
160 
164  inline void SetCreatedAt(Aws::String&& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
165 
169  inline void SetCreatedAt(const char* value) { m_createdAtHasBeenSet = true; m_createdAt.assign(value); }
170 
174  inline Deployment& WithCreatedAt(const Aws::String& value) { SetCreatedAt(value); return *this;}
175 
179  inline Deployment& WithCreatedAt(Aws::String&& value) { SetCreatedAt(value); return *this;}
180 
184  inline Deployment& WithCreatedAt(const char* value) { SetCreatedAt(value); return *this;}
185 
189  inline const Aws::String& GetCompletedAt() const{ return m_completedAt; }
190 
194  inline void SetCompletedAt(const Aws::String& value) { m_completedAtHasBeenSet = true; m_completedAt = value; }
195 
199  inline void SetCompletedAt(Aws::String&& value) { m_completedAtHasBeenSet = true; m_completedAt = value; }
200 
204  inline void SetCompletedAt(const char* value) { m_completedAtHasBeenSet = true; m_completedAt.assign(value); }
205 
209  inline Deployment& WithCompletedAt(const Aws::String& value) { SetCompletedAt(value); return *this;}
210 
214  inline Deployment& WithCompletedAt(Aws::String&& value) { SetCompletedAt(value); return *this;}
215 
219  inline Deployment& WithCompletedAt(const char* value) { SetCompletedAt(value); return *this;}
220 
224  inline int GetDuration() const{ return m_duration; }
225 
229  inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
230 
234  inline Deployment& WithDuration(int value) { SetDuration(value); return *this;}
235 
239  inline const Aws::String& GetIamUserArn() const{ return m_iamUserArn; }
240 
244  inline void SetIamUserArn(const Aws::String& value) { m_iamUserArnHasBeenSet = true; m_iamUserArn = value; }
245 
249  inline void SetIamUserArn(Aws::String&& value) { m_iamUserArnHasBeenSet = true; m_iamUserArn = value; }
250 
254  inline void SetIamUserArn(const char* value) { m_iamUserArnHasBeenSet = true; m_iamUserArn.assign(value); }
255 
259  inline Deployment& WithIamUserArn(const Aws::String& value) { SetIamUserArn(value); return *this;}
260 
264  inline Deployment& WithIamUserArn(Aws::String&& value) { SetIamUserArn(value); return *this;}
265 
269  inline Deployment& WithIamUserArn(const char* value) { SetIamUserArn(value); return *this;}
270 
274  inline const Aws::String& GetComment() const{ return m_comment; }
275 
279  inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
280 
284  inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = value; }
285 
289  inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
290 
294  inline Deployment& WithComment(const Aws::String& value) { SetComment(value); return *this;}
295 
299  inline Deployment& WithComment(Aws::String&& value) { SetComment(value); return *this;}
300 
304  inline Deployment& WithComment(const char* value) { SetComment(value); return *this;}
305 
306 
307  inline const DeploymentCommand& GetCommand() const{ return m_command; }
308 
309 
310  inline void SetCommand(const DeploymentCommand& value) { m_commandHasBeenSet = true; m_command = value; }
311 
312 
313  inline void SetCommand(DeploymentCommand&& value) { m_commandHasBeenSet = true; m_command = value; }
314 
315 
316  inline Deployment& WithCommand(const DeploymentCommand& value) { SetCommand(value); return *this;}
317 
318 
319  inline Deployment& WithCommand(DeploymentCommand&& value) { SetCommand(value); return *this;}
320 
325  inline const Aws::String& GetStatus() const{ return m_status; }
326 
331  inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
332 
337  inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = value; }
338 
343  inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
344 
349  inline Deployment& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
350 
355  inline Deployment& WithStatus(Aws::String&& value) { SetStatus(value); return *this;}
356 
361  inline Deployment& WithStatus(const char* value) { SetStatus(value); return *this;}
362 
372  inline const Aws::String& GetCustomJson() const{ return m_customJson; }
373 
383  inline void SetCustomJson(const Aws::String& value) { m_customJsonHasBeenSet = true; m_customJson = value; }
384 
394  inline void SetCustomJson(Aws::String&& value) { m_customJsonHasBeenSet = true; m_customJson = value; }
395 
405  inline void SetCustomJson(const char* value) { m_customJsonHasBeenSet = true; m_customJson.assign(value); }
406 
416  inline Deployment& WithCustomJson(const Aws::String& value) { SetCustomJson(value); return *this;}
417 
427  inline Deployment& WithCustomJson(Aws::String&& value) { SetCustomJson(value); return *this;}
428 
438  inline Deployment& WithCustomJson(const char* value) { SetCustomJson(value); return *this;}
439 
443  inline const Aws::Vector<Aws::String>& GetInstanceIds() const{ return m_instanceIds; }
444 
448  inline void SetInstanceIds(const Aws::Vector<Aws::String>& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = value; }
449 
453  inline void SetInstanceIds(Aws::Vector<Aws::String>&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = value; }
454 
458  inline Deployment& WithInstanceIds(const Aws::Vector<Aws::String>& value) { SetInstanceIds(value); return *this;}
459 
463  inline Deployment& WithInstanceIds(Aws::Vector<Aws::String>&& value) { SetInstanceIds(value); return *this;}
464 
468  inline Deployment& AddInstanceIds(const Aws::String& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
469 
473  inline Deployment& AddInstanceIds(Aws::String&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
474 
478  inline Deployment& AddInstanceIds(const char* value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
479 
480  private:
481  Aws::String m_deploymentId;
482  bool m_deploymentIdHasBeenSet;
483  Aws::String m_stackId;
484  bool m_stackIdHasBeenSet;
485  Aws::String m_appId;
486  bool m_appIdHasBeenSet;
487  Aws::String m_createdAt;
488  bool m_createdAtHasBeenSet;
489  Aws::String m_completedAt;
490  bool m_completedAtHasBeenSet;
491  int m_duration;
492  bool m_durationHasBeenSet;
493  Aws::String m_iamUserArn;
494  bool m_iamUserArnHasBeenSet;
495  Aws::String m_comment;
496  bool m_commentHasBeenSet;
497  DeploymentCommand m_command;
498  bool m_commandHasBeenSet;
499  Aws::String m_status;
500  bool m_statusHasBeenSet;
501  Aws::String m_customJson;
502  bool m_customJsonHasBeenSet;
503  Aws::Vector<Aws::String> m_instanceIds;
504  bool m_instanceIdsHasBeenSet;
505  };
506 
507 } // namespace Model
508 } // namespace OpsWorks
509 } // namespace Aws
const Aws::String & GetAppId() const
Definition: Deployment.h:119
Deployment & WithCreatedAt(const char *value)
Definition: Deployment.h:184
void SetStatus(const char *value)
Definition: Deployment.h:343
const Aws::String & GetStatus() const
Definition: Deployment.h:325
Deployment & WithIamUserArn(const char *value)
Definition: Deployment.h:269
Deployment & WithStackId(const char *value)
Definition: Deployment.h:114
void SetAppId(const Aws::String &value)
Definition: Deployment.h:124
Deployment & WithComment(const Aws::String &value)
Definition: Deployment.h:294
Deployment & WithDeploymentId(Aws::String &&value)
Definition: Deployment.h:74
const Aws::String & GetStackId() const
Definition: Deployment.h:84
Deployment & WithComment(Aws::String &&value)
Definition: Deployment.h:299
void SetStatus(Aws::String &&value)
Definition: Deployment.h:337
void SetDeploymentId(Aws::String &&value)
Definition: Deployment.h:59
void SetInstanceIds(Aws::Vector< Aws::String > &&value)
Definition: Deployment.h:453
const Aws::String & GetComment() const
Definition: Deployment.h:274
void SetDeploymentId(const char *value)
Definition: Deployment.h:64
const DeploymentCommand & GetCommand() const
Definition: Deployment.h:307
Deployment & WithStackId(const Aws::String &value)
Definition: Deployment.h:104
Deployment & AddInstanceIds(const char *value)
Definition: Deployment.h:478
void SetCompletedAt(Aws::String &&value)
Definition: Deployment.h:199
Deployment & WithStatus(Aws::String &&value)
Definition: Deployment.h:355
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetIamUserArn(const char *value)
Definition: Deployment.h:254
Deployment & WithCustomJson(Aws::String &&value)
Definition: Deployment.h:427
Deployment & WithCreatedAt(Aws::String &&value)
Definition: Deployment.h:179
const Aws::String & GetCreatedAt() const
Definition: Deployment.h:154
void SetDeploymentId(const Aws::String &value)
Definition: Deployment.h:54
void SetCommand(const DeploymentCommand &value)
Definition: Deployment.h:310
Deployment & WithCommand(DeploymentCommand &&value)
Definition: Deployment.h:319
Deployment & WithStackId(Aws::String &&value)
Definition: Deployment.h:109
Deployment & WithStatus(const char *value)
Definition: Deployment.h:361
void SetCreatedAt(const char *value)
Definition: Deployment.h:169
Deployment & WithInstanceIds(const Aws::Vector< Aws::String > &value)
Definition: Deployment.h:458
void SetCreatedAt(const Aws::String &value)
Definition: Deployment.h:159
Deployment & WithIamUserArn(Aws::String &&value)
Definition: Deployment.h:264
void SetStatus(const Aws::String &value)
Definition: Deployment.h:331
const Aws::String & GetIamUserArn() const
Definition: Deployment.h:239
const Aws::String & GetCustomJson() const
Definition: Deployment.h:372
Deployment & WithDuration(int value)
Definition: Deployment.h:234
void SetComment(Aws::String &&value)
Definition: Deployment.h:284
void SetCompletedAt(const char *value)
Definition: Deployment.h:204
void SetIamUserArn(const Aws::String &value)
Definition: Deployment.h:244
const Aws::String & GetDeploymentId() const
Definition: Deployment.h:49
Deployment & WithCustomJson(const char *value)
Definition: Deployment.h:438
Deployment & WithCompletedAt(const char *value)
Definition: Deployment.h:219
void SetIamUserArn(Aws::String &&value)
Definition: Deployment.h:249
void SetInstanceIds(const Aws::Vector< Aws::String > &value)
Definition: Deployment.h:448
void SetStackId(Aws::String &&value)
Definition: Deployment.h:94
void SetComment(const Aws::String &value)
Definition: Deployment.h:279
Deployment & WithAppId(const char *value)
Definition: Deployment.h:149
Deployment & WithCommand(const DeploymentCommand &value)
Definition: Deployment.h:316
Deployment & AddInstanceIds(const Aws::String &value)
Definition: Deployment.h:468
void SetCustomJson(Aws::String &&value)
Definition: Deployment.h:394
void SetCompletedAt(const Aws::String &value)
Definition: Deployment.h:194
Deployment & WithDeploymentId(const Aws::String &value)
Definition: Deployment.h:69
void SetStackId(const char *value)
Definition: Deployment.h:99
Deployment & WithIamUserArn(const Aws::String &value)
Definition: Deployment.h:259
void SetAppId(Aws::String &&value)
Definition: Deployment.h:129
void SetCustomJson(const char *value)
Definition: Deployment.h:405
Deployment & WithComment(const char *value)
Definition: Deployment.h:304
void SetStackId(const Aws::String &value)
Definition: Deployment.h:89
Deployment & WithCompletedAt(Aws::String &&value)
Definition: Deployment.h:214
Deployment & WithDeploymentId(const char *value)
Definition: Deployment.h:79
void SetAppId(const char *value)
Definition: Deployment.h:134
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_OPSWORKS_API
void SetCreatedAt(Aws::String &&value)
Definition: Deployment.h:164
Deployment & WithInstanceIds(Aws::Vector< Aws::String > &&value)
Definition: Deployment.h:463
Deployment & WithCustomJson(const Aws::String &value)
Definition: Deployment.h:416
Deployment & WithAppId(Aws::String &&value)
Definition: Deployment.h:144
void SetComment(const char *value)
Definition: Deployment.h:289
Deployment & WithStatus(const Aws::String &value)
Definition: Deployment.h:349
void SetCustomJson(const Aws::String &value)
Definition: Deployment.h:383
void SetCommand(DeploymentCommand &&value)
Definition: Deployment.h:313
Deployment & AddInstanceIds(Aws::String &&value)
Definition: Deployment.h:473
Deployment & WithCreatedAt(const Aws::String &value)
Definition: Deployment.h:174
JSON (JavaScript Object Notation).
Deployment & WithAppId(const Aws::String &value)
Definition: Deployment.h:139
const Aws::String & GetCompletedAt() const
Definition: Deployment.h:189
Deployment & WithCompletedAt(const Aws::String &value)
Definition: Deployment.h:209
const Aws::Vector< Aws::String > & GetInstanceIds() const
Definition: Deployment.h:443