AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ArnT = Aws::String>
53 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
54 template<typename ArnT = Aws::String>
55 DeploymentJob& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
57
59
62 inline const Aws::String& GetFleet() const { return m_fleet; }
63 inline bool FleetHasBeenSet() const { return m_fleetHasBeenSet; }
64 template<typename FleetT = Aws::String>
65 void SetFleet(FleetT&& value) { m_fleetHasBeenSet = true; m_fleet = std::forward<FleetT>(value); }
66 template<typename FleetT = Aws::String>
67 DeploymentJob& WithFleet(FleetT&& value) { SetFleet(std::forward<FleetT>(value)); return *this;}
69
71
74 inline DeploymentStatus GetStatus() const { return m_status; }
75 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
76 inline void SetStatus(DeploymentStatus value) { m_statusHasBeenSet = true; m_status = value; }
77 inline DeploymentJob& WithStatus(DeploymentStatus value) { SetStatus(value); return *this;}
79
81
84 inline const Aws::Vector<DeploymentApplicationConfig>& GetDeploymentApplicationConfigs() const { return m_deploymentApplicationConfigs; }
85 inline bool DeploymentApplicationConfigsHasBeenSet() const { return m_deploymentApplicationConfigsHasBeenSet; }
86 template<typename DeploymentApplicationConfigsT = Aws::Vector<DeploymentApplicationConfig>>
87 void SetDeploymentApplicationConfigs(DeploymentApplicationConfigsT&& value) { m_deploymentApplicationConfigsHasBeenSet = true; m_deploymentApplicationConfigs = std::forward<DeploymentApplicationConfigsT>(value); }
88 template<typename DeploymentApplicationConfigsT = Aws::Vector<DeploymentApplicationConfig>>
89 DeploymentJob& WithDeploymentApplicationConfigs(DeploymentApplicationConfigsT&& value) { SetDeploymentApplicationConfigs(std::forward<DeploymentApplicationConfigsT>(value)); return *this;}
90 template<typename DeploymentApplicationConfigsT = DeploymentApplicationConfig>
91 DeploymentJob& AddDeploymentApplicationConfigs(DeploymentApplicationConfigsT&& value) { m_deploymentApplicationConfigsHasBeenSet = true; m_deploymentApplicationConfigs.emplace_back(std::forward<DeploymentApplicationConfigsT>(value)); return *this; }
93
95
98 inline const DeploymentConfig& GetDeploymentConfig() const { return m_deploymentConfig; }
99 inline bool DeploymentConfigHasBeenSet() const { return m_deploymentConfigHasBeenSet; }
100 template<typename DeploymentConfigT = DeploymentConfig>
101 void SetDeploymentConfig(DeploymentConfigT&& value) { m_deploymentConfigHasBeenSet = true; m_deploymentConfig = std::forward<DeploymentConfigT>(value); }
102 template<typename DeploymentConfigT = DeploymentConfig>
103 DeploymentJob& WithDeploymentConfig(DeploymentConfigT&& value) { SetDeploymentConfig(std::forward<DeploymentConfigT>(value)); return *this;}
105
107
110 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
111 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
112 template<typename FailureReasonT = Aws::String>
113 void SetFailureReason(FailureReasonT&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::forward<FailureReasonT>(value); }
114 template<typename FailureReasonT = Aws::String>
115 DeploymentJob& WithFailureReason(FailureReasonT&& value) { SetFailureReason(std::forward<FailureReasonT>(value)); return *this;}
117
119
122 inline DeploymentJobErrorCode GetFailureCode() const { return m_failureCode; }
123 inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; }
124 inline void SetFailureCode(DeploymentJobErrorCode value) { m_failureCodeHasBeenSet = true; m_failureCode = value; }
127
129
133 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
134 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
135 template<typename CreatedAtT = Aws::Utils::DateTime>
136 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
137 template<typename CreatedAtT = Aws::Utils::DateTime>
138 DeploymentJob& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
140 private:
141
142 Aws::String m_arn;
143 bool m_arnHasBeenSet = false;
144
145 Aws::String m_fleet;
146 bool m_fleetHasBeenSet = false;
147
149 bool m_statusHasBeenSet = false;
150
151 Aws::Vector<DeploymentApplicationConfig> m_deploymentApplicationConfigs;
152 bool m_deploymentApplicationConfigsHasBeenSet = false;
153
154 DeploymentConfig m_deploymentConfig;
155 bool m_deploymentConfigHasBeenSet = false;
156
157 Aws::String m_failureReason;
158 bool m_failureReasonHasBeenSet = false;
159
161 bool m_failureCodeHasBeenSet = false;
162
163 Aws::Utils::DateTime m_createdAt{};
164 bool m_createdAtHasBeenSet = false;
165 };
166
167} // namespace Model
168} // namespace RoboMaker
169} // namespace Aws
DeploymentJob & WithStatus(DeploymentStatus value)
DeploymentJob & WithDeploymentConfig(DeploymentConfigT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetStatus(DeploymentStatus value)
void SetFailureCode(DeploymentJobErrorCode value)
const Aws::String & GetFleet() const
AWS_ROBOMAKER_API DeploymentJob & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetFailureReason() const
void SetDeploymentConfig(DeploymentConfigT &&value)
const Aws::Vector< DeploymentApplicationConfig > & GetDeploymentApplicationConfigs() const
DeploymentJob & WithCreatedAt(CreatedAtT &&value)
AWS_ROBOMAKER_API DeploymentJob()=default
const DeploymentConfig & GetDeploymentConfig() const
AWS_ROBOMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
DeploymentJobErrorCode GetFailureCode() const
DeploymentStatus GetStatus() const
DeploymentJob & WithFleet(FleetT &&value)
DeploymentJob & AddDeploymentApplicationConfigs(DeploymentApplicationConfigsT &&value)
DeploymentJob & WithFailureReason(FailureReasonT &&value)
const Aws::String & GetArn() const
void SetDeploymentApplicationConfigs(DeploymentApplicationConfigsT &&value)
AWS_ROBOMAKER_API DeploymentJob(Aws::Utils::Json::JsonView jsonValue)
void SetCreatedAt(CreatedAtT &&value)
DeploymentJob & WithArn(ArnT &&value)
void SetFailureReason(FailureReasonT &&value)
DeploymentJob & WithDeploymentApplicationConfigs(DeploymentApplicationConfigsT &&value)
DeploymentJob & WithFailureCode(DeploymentJobErrorCode 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