AWS SDK for C++  0.14.3
AWS SDK for C++
DeploymentInfo.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
24 
25 namespace Aws
26 {
27 namespace Utils
28 {
29 namespace Json
30 {
31  class JsonValue;
32 } // namespace Json
33 } // namespace Utils
34 namespace CodeDeploy
35 {
36 namespace Model
37 {
38 
43  {
44  public:
47  DeploymentInfo& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
48  Aws::Utils::Json::JsonValue Jsonize() const;
49 
53  inline const Aws::String& GetApplicationName() const{ return m_applicationName; }
54 
58  inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
59 
63  inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
64 
68  inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); }
69 
73  inline DeploymentInfo& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;}
74 
78  inline DeploymentInfo& WithApplicationName(Aws::String&& value) { SetApplicationName(value); return *this;}
79 
83  inline DeploymentInfo& WithApplicationName(const char* value) { SetApplicationName(value); return *this;}
84 
88  inline const Aws::String& GetDeploymentGroupName() const{ return m_deploymentGroupName; }
89 
93  inline void SetDeploymentGroupName(const Aws::String& value) { m_deploymentGroupNameHasBeenSet = true; m_deploymentGroupName = value; }
94 
98  inline void SetDeploymentGroupName(Aws::String&& value) { m_deploymentGroupNameHasBeenSet = true; m_deploymentGroupName = value; }
99 
103  inline void SetDeploymentGroupName(const char* value) { m_deploymentGroupNameHasBeenSet = true; m_deploymentGroupName.assign(value); }
104 
108  inline DeploymentInfo& WithDeploymentGroupName(const Aws::String& value) { SetDeploymentGroupName(value); return *this;}
109 
113  inline DeploymentInfo& WithDeploymentGroupName(Aws::String&& value) { SetDeploymentGroupName(value); return *this;}
114 
118  inline DeploymentInfo& WithDeploymentGroupName(const char* value) { SetDeploymentGroupName(value); return *this;}
119 
123  inline const Aws::String& GetDeploymentConfigName() const{ return m_deploymentConfigName; }
124 
128  inline void SetDeploymentConfigName(const Aws::String& value) { m_deploymentConfigNameHasBeenSet = true; m_deploymentConfigName = value; }
129 
133  inline void SetDeploymentConfigName(Aws::String&& value) { m_deploymentConfigNameHasBeenSet = true; m_deploymentConfigName = value; }
134 
138  inline void SetDeploymentConfigName(const char* value) { m_deploymentConfigNameHasBeenSet = true; m_deploymentConfigName.assign(value); }
139 
143  inline DeploymentInfo& WithDeploymentConfigName(const Aws::String& value) { SetDeploymentConfigName(value); return *this;}
144 
148  inline DeploymentInfo& WithDeploymentConfigName(Aws::String&& value) { SetDeploymentConfigName(value); return *this;}
149 
153  inline DeploymentInfo& WithDeploymentConfigName(const char* value) { SetDeploymentConfigName(value); return *this;}
154 
158  inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; }
159 
163  inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
164 
168  inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
169 
173  inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); }
174 
178  inline DeploymentInfo& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;}
179 
183  inline DeploymentInfo& WithDeploymentId(Aws::String&& value) { SetDeploymentId(value); return *this;}
184 
188  inline DeploymentInfo& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;}
189 
194  inline const RevisionLocation& GetRevision() const{ return m_revision; }
195 
200  inline void SetRevision(const RevisionLocation& value) { m_revisionHasBeenSet = true; m_revision = value; }
201 
206  inline void SetRevision(RevisionLocation&& value) { m_revisionHasBeenSet = true; m_revision = value; }
207 
212  inline DeploymentInfo& WithRevision(const RevisionLocation& value) { SetRevision(value); return *this;}
213 
218  inline DeploymentInfo& WithRevision(RevisionLocation&& value) { SetRevision(value); return *this;}
219 
223  inline const DeploymentStatus& GetStatus() const{ return m_status; }
224 
228  inline void SetStatus(const DeploymentStatus& value) { m_statusHasBeenSet = true; m_status = value; }
229 
233  inline void SetStatus(DeploymentStatus&& value) { m_statusHasBeenSet = true; m_status = value; }
234 
238  inline DeploymentInfo& WithStatus(const DeploymentStatus& value) { SetStatus(value); return *this;}
239 
243  inline DeploymentInfo& WithStatus(DeploymentStatus&& value) { SetStatus(value); return *this;}
244 
248  inline const ErrorInformation& GetErrorInformation() const{ return m_errorInformation; }
249 
253  inline void SetErrorInformation(const ErrorInformation& value) { m_errorInformationHasBeenSet = true; m_errorInformation = value; }
254 
258  inline void SetErrorInformation(ErrorInformation&& value) { m_errorInformationHasBeenSet = true; m_errorInformation = value; }
259 
263  inline DeploymentInfo& WithErrorInformation(const ErrorInformation& value) { SetErrorInformation(value); return *this;}
264 
268  inline DeploymentInfo& WithErrorInformation(ErrorInformation&& value) { SetErrorInformation(value); return *this;}
269 
273  inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; }
274 
278  inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTimeHasBeenSet = true; m_createTime = value; }
279 
283  inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTimeHasBeenSet = true; m_createTime = value; }
284 
288  inline DeploymentInfo& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;}
289 
293  inline DeploymentInfo& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(value); return *this;}
294 
301  inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
302 
309  inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
310 
317  inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
318 
325  inline DeploymentInfo& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
326 
333  inline DeploymentInfo& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(value); return *this;}
334 
338  inline const Aws::Utils::DateTime& GetCompleteTime() const{ return m_completeTime; }
339 
343  inline void SetCompleteTime(const Aws::Utils::DateTime& value) { m_completeTimeHasBeenSet = true; m_completeTime = value; }
344 
348  inline void SetCompleteTime(Aws::Utils::DateTime&& value) { m_completeTimeHasBeenSet = true; m_completeTime = value; }
349 
353  inline DeploymentInfo& WithCompleteTime(const Aws::Utils::DateTime& value) { SetCompleteTime(value); return *this;}
354 
358  inline DeploymentInfo& WithCompleteTime(Aws::Utils::DateTime&& value) { SetCompleteTime(value); return *this;}
359 
363  inline const DeploymentOverview& GetDeploymentOverview() const{ return m_deploymentOverview; }
364 
368  inline void SetDeploymentOverview(const DeploymentOverview& value) { m_deploymentOverviewHasBeenSet = true; m_deploymentOverview = value; }
369 
373  inline void SetDeploymentOverview(DeploymentOverview&& value) { m_deploymentOverviewHasBeenSet = true; m_deploymentOverview = value; }
374 
378  inline DeploymentInfo& WithDeploymentOverview(const DeploymentOverview& value) { SetDeploymentOverview(value); return *this;}
379 
383  inline DeploymentInfo& WithDeploymentOverview(DeploymentOverview&& value) { SetDeploymentOverview(value); return *this;}
384 
388  inline const Aws::String& GetDescription() const{ return m_description; }
389 
393  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
394 
398  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
399 
403  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
404 
408  inline DeploymentInfo& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
409 
413  inline DeploymentInfo& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
414 
418  inline DeploymentInfo& WithDescription(const char* value) { SetDescription(value); return *this;}
419 
425  inline const DeploymentCreator& GetCreator() const{ return m_creator; }
426 
432  inline void SetCreator(const DeploymentCreator& value) { m_creatorHasBeenSet = true; m_creator = value; }
433 
439  inline void SetCreator(DeploymentCreator&& value) { m_creatorHasBeenSet = true; m_creator = value; }
440 
446  inline DeploymentInfo& WithCreator(const DeploymentCreator& value) { SetCreator(value); return *this;}
447 
453  inline DeploymentInfo& WithCreator(DeploymentCreator&& value) { SetCreator(value); return *this;}
454 
464  inline bool GetIgnoreApplicationStopFailures() const{ return m_ignoreApplicationStopFailures; }
465 
475  inline void SetIgnoreApplicationStopFailures(bool value) { m_ignoreApplicationStopFailuresHasBeenSet = true; m_ignoreApplicationStopFailures = value; }
476 
486  inline DeploymentInfo& WithIgnoreApplicationStopFailures(bool value) { SetIgnoreApplicationStopFailures(value); return *this;}
487 
488  private:
489  Aws::String m_applicationName;
490  bool m_applicationNameHasBeenSet;
491  Aws::String m_deploymentGroupName;
492  bool m_deploymentGroupNameHasBeenSet;
493  Aws::String m_deploymentConfigName;
494  bool m_deploymentConfigNameHasBeenSet;
495  Aws::String m_deploymentId;
496  bool m_deploymentIdHasBeenSet;
497  RevisionLocation m_revision;
498  bool m_revisionHasBeenSet;
499  DeploymentStatus m_status;
500  bool m_statusHasBeenSet;
501  ErrorInformation m_errorInformation;
502  bool m_errorInformationHasBeenSet;
503  Aws::Utils::DateTime m_createTime;
504  bool m_createTimeHasBeenSet;
505  Aws::Utils::DateTime m_startTime;
506  bool m_startTimeHasBeenSet;
507  Aws::Utils::DateTime m_completeTime;
508  bool m_completeTimeHasBeenSet;
509  DeploymentOverview m_deploymentOverview;
510  bool m_deploymentOverviewHasBeenSet;
511  Aws::String m_description;
512  bool m_descriptionHasBeenSet;
513  DeploymentCreator m_creator;
514  bool m_creatorHasBeenSet;
515  bool m_ignoreApplicationStopFailures;
516  bool m_ignoreApplicationStopFailuresHasBeenSet;
517  };
518 
519 } // namespace Model
520 } // namespace CodeDeploy
521 } // namespace Aws
DeploymentInfo & WithStatus(DeploymentStatus &&value)
DeploymentInfo & WithDescription(Aws::String &&value)
DeploymentInfo & WithCreateTime(const Aws::Utils::DateTime &value)
DeploymentInfo & WithDeploymentId(Aws::String &&value)
DeploymentInfo & WithDeploymentConfigName(Aws::String &&value)
const Aws::String & GetDeploymentConfigName() const
void SetApplicationName(const char *value)
DeploymentInfo & WithDeploymentGroupName(const char *value)
DeploymentInfo & WithDeploymentConfigName(const Aws::String &value)
DeploymentInfo & WithStartTime(const Aws::Utils::DateTime &value)
DeploymentInfo & WithDeploymentGroupName(Aws::String &&value)
const RevisionLocation & GetRevision() const
DeploymentInfo & WithApplicationName(const Aws::String &value)
DeploymentInfo & WithApplicationName(const char *value)
void SetApplicationName(const Aws::String &value)
DeploymentInfo & WithDeploymentId(const Aws::String &value)
void SetDescription(const char *value)
DeploymentInfo & WithCompleteTime(Aws::Utils::DateTime &&value)
DeploymentInfo & WithErrorInformation(ErrorInformation &&value)
DeploymentInfo & WithDeploymentId(const char *value)
void SetDeploymentOverview(DeploymentOverview &&value)
void SetDeploymentGroupName(const char *value)
const ErrorInformation & GetErrorInformation() const
void SetCompleteTime(Aws::Utils::DateTime &&value)
void SetErrorInformation(ErrorInformation &&value)
void SetDescription(Aws::String &&value)
DeploymentInfo & WithDeploymentOverview(const DeploymentOverview &value)
DeploymentInfo & WithDeploymentOverview(DeploymentOverview &&value)
DeploymentInfo & WithCreateTime(Aws::Utils::DateTime &&value)
void SetDeploymentConfigName(const char *value)
DeploymentInfo & WithCreator(const DeploymentCreator &value)
DeploymentInfo & WithDeploymentGroupName(const Aws::String &value)
#define AWS_CODEDEPLOY_API
DeploymentInfo & WithCreator(DeploymentCreator &&value)
const Aws::String & GetDescription() const
void SetCreator(const DeploymentCreator &value)
void SetCreateTime(const Aws::Utils::DateTime &value)
void SetApplicationName(Aws::String &&value)
const DeploymentOverview & GetDeploymentOverview() const
void SetDeploymentOverview(const DeploymentOverview &value)
DeploymentInfo & WithDescription(const Aws::String &value)
const Aws::String & GetDeploymentGroupName() const
const DeploymentCreator & GetCreator() const
void SetDeploymentConfigName(Aws::String &&value)
DeploymentInfo & WithRevision(RevisionLocation &&value)
void SetStartTime(const Aws::Utils::DateTime &value)
void SetStartTime(Aws::Utils::DateTime &&value)
void SetErrorInformation(const ErrorInformation &value)
void SetCreateTime(Aws::Utils::DateTime &&value)
DeploymentInfo & WithStartTime(Aws::Utils::DateTime &&value)
DeploymentInfo & WithDeploymentConfigName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DeploymentInfo & WithIgnoreApplicationStopFailures(bool value)
DeploymentInfo & WithStatus(const DeploymentStatus &value)
void SetDescription(const Aws::String &value)
void SetRevision(const RevisionLocation &value)
DeploymentInfo & WithDescription(const char *value)
void SetDeploymentId(const char *value)
void SetDeploymentId(const Aws::String &value)
const Aws::Utils::DateTime & GetCreateTime() const
const Aws::String & GetDeploymentId() const
void SetDeploymentId(Aws::String &&value)
DeploymentInfo & WithErrorInformation(const ErrorInformation &value)
void SetCreator(DeploymentCreator &&value)
void SetDeploymentGroupName(const Aws::String &value)
const Aws::Utils::DateTime & GetStartTime() const
void SetDeploymentGroupName(Aws::String &&value)
DeploymentInfo & WithCompleteTime(const Aws::Utils::DateTime &value)
void SetDeploymentConfigName(const Aws::String &value)
void SetStatus(const DeploymentStatus &value)
const Aws::String & GetApplicationName() const
DeploymentInfo & WithApplicationName(Aws::String &&value)
void SetCompleteTime(const Aws::Utils::DateTime &value)
DeploymentInfo & WithRevision(const RevisionLocation &value)
void SetRevision(RevisionLocation &&value)
const DeploymentStatus & GetStatus() const
const Aws::Utils::DateTime & GetCompleteTime() const
void SetStatus(DeploymentStatus &&value)
JSON (JavaScript Object Notation).