AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DeploymentJob.h
1
6#pragma once
7#include <aws/robomaker/RoboMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/robomaker/model/DeploymentStatus.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/robomaker/model/DeploymentConfig.h>
12#include <aws/robomaker/model/DeploymentJobErrorCode.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/robomaker/model/DeploymentApplicationConfig.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace RoboMaker
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_ROBOMAKER_API DeploymentJob();
41 AWS_ROBOMAKER_API DeploymentJob(Aws::Utils::Json::JsonView jsonValue);
42 AWS_ROBOMAKER_API DeploymentJob& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_ROBOMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetArn() const{ return m_arn; }
51 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
52 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
53 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
54 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
55 inline DeploymentJob& WithArn(const Aws::String& value) { SetArn(value); return *this;}
56 inline DeploymentJob& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
57 inline DeploymentJob& WithArn(const char* value) { SetArn(value); return *this;}
59
61
64 inline const Aws::String& GetFleet() const{ return m_fleet; }
65 inline bool FleetHasBeenSet() const { return m_fleetHasBeenSet; }
66 inline void SetFleet(const Aws::String& value) { m_fleetHasBeenSet = true; m_fleet = value; }
67 inline void SetFleet(Aws::String&& value) { m_fleetHasBeenSet = true; m_fleet = std::move(value); }
68 inline void SetFleet(const char* value) { m_fleetHasBeenSet = true; m_fleet.assign(value); }
69 inline DeploymentJob& WithFleet(const Aws::String& value) { SetFleet(value); return *this;}
70 inline DeploymentJob& WithFleet(Aws::String&& value) { SetFleet(std::move(value)); return *this;}
71 inline DeploymentJob& WithFleet(const char* value) { SetFleet(value); return *this;}
73
75
78 inline const DeploymentStatus& GetStatus() const{ return m_status; }
79 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
80 inline void SetStatus(const DeploymentStatus& value) { m_statusHasBeenSet = true; m_status = value; }
81 inline void SetStatus(DeploymentStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
82 inline DeploymentJob& WithStatus(const DeploymentStatus& value) { SetStatus(value); return *this;}
83 inline DeploymentJob& WithStatus(DeploymentStatus&& value) { SetStatus(std::move(value)); return *this;}
85
87
90 inline const Aws::Vector<DeploymentApplicationConfig>& GetDeploymentApplicationConfigs() const{ return m_deploymentApplicationConfigs; }
91 inline bool DeploymentApplicationConfigsHasBeenSet() const { return m_deploymentApplicationConfigsHasBeenSet; }
92 inline void SetDeploymentApplicationConfigs(const Aws::Vector<DeploymentApplicationConfig>& value) { m_deploymentApplicationConfigsHasBeenSet = true; m_deploymentApplicationConfigs = value; }
93 inline void SetDeploymentApplicationConfigs(Aws::Vector<DeploymentApplicationConfig>&& value) { m_deploymentApplicationConfigsHasBeenSet = true; m_deploymentApplicationConfigs = std::move(value); }
96 inline DeploymentJob& AddDeploymentApplicationConfigs(const DeploymentApplicationConfig& value) { m_deploymentApplicationConfigsHasBeenSet = true; m_deploymentApplicationConfigs.push_back(value); return *this; }
97 inline DeploymentJob& AddDeploymentApplicationConfigs(DeploymentApplicationConfig&& value) { m_deploymentApplicationConfigsHasBeenSet = true; m_deploymentApplicationConfigs.push_back(std::move(value)); return *this; }
99
101
104 inline const DeploymentConfig& GetDeploymentConfig() const{ return m_deploymentConfig; }
105 inline bool DeploymentConfigHasBeenSet() const { return m_deploymentConfigHasBeenSet; }
106 inline void SetDeploymentConfig(const DeploymentConfig& value) { m_deploymentConfigHasBeenSet = true; m_deploymentConfig = value; }
107 inline void SetDeploymentConfig(DeploymentConfig&& value) { m_deploymentConfigHasBeenSet = true; m_deploymentConfig = std::move(value); }
108 inline DeploymentJob& WithDeploymentConfig(const DeploymentConfig& value) { SetDeploymentConfig(value); return *this;}
109 inline DeploymentJob& WithDeploymentConfig(DeploymentConfig&& value) { SetDeploymentConfig(std::move(value)); return *this;}
111
113
116 inline const Aws::String& GetFailureReason() const{ return m_failureReason; }
117 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
118 inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
119 inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); }
120 inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); }
121 inline DeploymentJob& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;}
122 inline DeploymentJob& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;}
123 inline DeploymentJob& WithFailureReason(const char* value) { SetFailureReason(value); return *this;}
125
127
130 inline const DeploymentJobErrorCode& GetFailureCode() const{ return m_failureCode; }
131 inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; }
132 inline void SetFailureCode(const DeploymentJobErrorCode& value) { m_failureCodeHasBeenSet = true; m_failureCode = value; }
133 inline void SetFailureCode(DeploymentJobErrorCode&& value) { m_failureCodeHasBeenSet = true; m_failureCode = std::move(value); }
134 inline DeploymentJob& WithFailureCode(const DeploymentJobErrorCode& value) { SetFailureCode(value); return *this;}
135 inline DeploymentJob& WithFailureCode(DeploymentJobErrorCode&& value) { SetFailureCode(std::move(value)); return *this;}
137
139
143 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
144 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
145 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
146 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
147 inline DeploymentJob& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
148 inline DeploymentJob& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
150 private:
151
152 Aws::String m_arn;
153 bool m_arnHasBeenSet = false;
154
155 Aws::String m_fleet;
156 bool m_fleetHasBeenSet = false;
157
158 DeploymentStatus m_status;
159 bool m_statusHasBeenSet = false;
160
161 Aws::Vector<DeploymentApplicationConfig> m_deploymentApplicationConfigs;
162 bool m_deploymentApplicationConfigsHasBeenSet = false;
163
164 DeploymentConfig m_deploymentConfig;
165 bool m_deploymentConfigHasBeenSet = false;
166
167 Aws::String m_failureReason;
168 bool m_failureReasonHasBeenSet = false;
169
170 DeploymentJobErrorCode m_failureCode;
171 bool m_failureCodeHasBeenSet = false;
172
173 Aws::Utils::DateTime m_createdAt;
174 bool m_createdAtHasBeenSet = false;
175 };
176
177} // namespace Model
178} // namespace RoboMaker
179} // namespace Aws
DeploymentJob & WithCreatedAt(Aws::Utils::DateTime &&value)
DeploymentJob & AddDeploymentApplicationConfigs(const DeploymentApplicationConfig &value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
DeploymentJob & WithFleet(Aws::String &&value)
DeploymentJob & WithDeploymentConfig(const DeploymentConfig &value)
const Aws::String & GetFleet() const
DeploymentJob & WithFleet(const char *value)
void SetArn(Aws::String &&value)
void SetFailureCode(DeploymentJobErrorCode &&value)
AWS_ROBOMAKER_API DeploymentJob & operator=(Aws::Utils::Json::JsonView jsonValue)
DeploymentJob & WithArn(const Aws::String &value)
DeploymentJob & WithDeploymentConfig(DeploymentConfig &&value)
DeploymentJob & WithFailureReason(Aws::String &&value)
void SetFleet(const char *value)
const Aws::String & GetFailureReason() const
DeploymentJob & WithFailureReason(const Aws::String &value)
void SetStatus(const DeploymentStatus &value)
const DeploymentStatus & GetStatus() const
DeploymentJob & WithArn(const char *value)
DeploymentJob & AddDeploymentApplicationConfigs(DeploymentApplicationConfig &&value)
DeploymentJob & WithArn(Aws::String &&value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
DeploymentJob & WithStatus(DeploymentStatus &&value)
DeploymentJob & WithFailureCode(DeploymentJobErrorCode &&value)
void SetArn(const Aws::String &value)
DeploymentJob & WithFailureReason(const char *value)
const Aws::Vector< DeploymentApplicationConfig > & GetDeploymentApplicationConfigs() const
DeploymentJob & WithStatus(const DeploymentStatus &value)
void SetDeploymentApplicationConfigs(Aws::Vector< DeploymentApplicationConfig > &&value)
const DeploymentConfig & GetDeploymentConfig() const
void SetDeploymentApplicationConfigs(const Aws::Vector< DeploymentApplicationConfig > &value)
AWS_ROBOMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(DeploymentStatus &&value)
void SetFleet(const Aws::String &value)
void SetDeploymentConfig(const DeploymentConfig &value)
void SetDeploymentConfig(DeploymentConfig &&value)
DeploymentJob & WithFailureCode(const DeploymentJobErrorCode &value)
const Aws::String & GetArn() const
DeploymentJob & WithDeploymentApplicationConfigs(Aws::Vector< DeploymentApplicationConfig > &&value)
DeploymentJob & WithFleet(const Aws::String &value)
AWS_ROBOMAKER_API DeploymentJob(Aws::Utils::Json::JsonView jsonValue)
void SetFailureCode(const DeploymentJobErrorCode &value)
void SetFailureReason(const Aws::String &value)
DeploymentJob & WithDeploymentApplicationConfigs(const Aws::Vector< DeploymentApplicationConfig > &value)
void SetFailureReason(const char *value)
DeploymentJob & WithCreatedAt(const Aws::Utils::DateTime &value)
const DeploymentJobErrorCode & GetFailureCode() const
void SetFleet(Aws::String &&value)
void SetFailureReason(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue