AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
EffectiveDeployment.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
10#include <aws/greengrassv2/model/EffectiveDeploymentExecutionStatus.h>
11#include <aws/greengrassv2/model/EffectiveDeploymentStatusDetails.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GreengrassV2 {
23namespace Model {
24
32 public:
33 AWS_GREENGRASSV2_API EffectiveDeployment() = default;
34 AWS_GREENGRASSV2_API EffectiveDeployment(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetDeploymentId() const { return m_deploymentId; }
43 inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
44 template <typename DeploymentIdT = Aws::String>
45 void SetDeploymentId(DeploymentIdT&& value) {
46 m_deploymentIdHasBeenSet = true;
47 m_deploymentId = std::forward<DeploymentIdT>(value);
48 }
49 template <typename DeploymentIdT = Aws::String>
50 EffectiveDeployment& WithDeploymentId(DeploymentIdT&& value) {
51 SetDeploymentId(std::forward<DeploymentIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetDeploymentName() const { return m_deploymentName; }
61 inline bool DeploymentNameHasBeenSet() const { return m_deploymentNameHasBeenSet; }
62 template <typename DeploymentNameT = Aws::String>
63 void SetDeploymentName(DeploymentNameT&& value) {
64 m_deploymentNameHasBeenSet = true;
65 m_deploymentName = std::forward<DeploymentNameT>(value);
66 }
67 template <typename DeploymentNameT = Aws::String>
68 EffectiveDeployment& WithDeploymentName(DeploymentNameT&& value) {
69 SetDeploymentName(std::forward<DeploymentNameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetIotJobId() const { return m_iotJobId; }
79 inline bool IotJobIdHasBeenSet() const { return m_iotJobIdHasBeenSet; }
80 template <typename IotJobIdT = Aws::String>
81 void SetIotJobId(IotJobIdT&& value) {
82 m_iotJobIdHasBeenSet = true;
83 m_iotJobId = std::forward<IotJobIdT>(value);
84 }
85 template <typename IotJobIdT = Aws::String>
86 EffectiveDeployment& WithIotJobId(IotJobIdT&& value) {
87 SetIotJobId(std::forward<IotJobIdT>(value));
88 return *this;
89 }
91
93
98 inline const Aws::String& GetIotJobArn() const { return m_iotJobArn; }
99 inline bool IotJobArnHasBeenSet() const { return m_iotJobArnHasBeenSet; }
100 template <typename IotJobArnT = Aws::String>
101 void SetIotJobArn(IotJobArnT&& value) {
102 m_iotJobArnHasBeenSet = true;
103 m_iotJobArn = std::forward<IotJobArnT>(value);
104 }
105 template <typename IotJobArnT = Aws::String>
106 EffectiveDeployment& WithIotJobArn(IotJobArnT&& value) {
107 SetIotJobArn(std::forward<IotJobArnT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetDescription() const { return m_description; }
117 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
118 template <typename DescriptionT = Aws::String>
119 void SetDescription(DescriptionT&& value) {
120 m_descriptionHasBeenSet = true;
121 m_description = std::forward<DescriptionT>(value);
122 }
123 template <typename DescriptionT = Aws::String>
124 EffectiveDeployment& WithDescription(DescriptionT&& value) {
125 SetDescription(std::forward<DescriptionT>(value));
126 return *this;
127 }
129
131
136 inline const Aws::String& GetTargetArn() const { return m_targetArn; }
137 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
138 template <typename TargetArnT = Aws::String>
139 void SetTargetArn(TargetArnT&& value) {
140 m_targetArnHasBeenSet = true;
141 m_targetArn = std::forward<TargetArnT>(value);
142 }
143 template <typename TargetArnT = Aws::String>
144 EffectiveDeployment& WithTargetArn(TargetArnT&& value) {
145 SetTargetArn(std::forward<TargetArnT>(value));
146 return *this;
147 }
149
151
165 inline EffectiveDeploymentExecutionStatus GetCoreDeviceExecutionStatus() const { return m_coreDeviceExecutionStatus; }
166 inline bool CoreDeviceExecutionStatusHasBeenSet() const { return m_coreDeviceExecutionStatusHasBeenSet; }
168 m_coreDeviceExecutionStatusHasBeenSet = true;
169 m_coreDeviceExecutionStatus = value;
170 }
173 return *this;
174 }
176
178
181 inline const Aws::String& GetReason() const { return m_reason; }
182 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
183 template <typename ReasonT = Aws::String>
184 void SetReason(ReasonT&& value) {
185 m_reasonHasBeenSet = true;
186 m_reason = std::forward<ReasonT>(value);
187 }
188 template <typename ReasonT = Aws::String>
189 EffectiveDeployment& WithReason(ReasonT&& value) {
190 SetReason(std::forward<ReasonT>(value));
191 return *this;
192 }
194
196
200 inline const Aws::Utils::DateTime& GetCreationTimestamp() const { return m_creationTimestamp; }
201 inline bool CreationTimestampHasBeenSet() const { return m_creationTimestampHasBeenSet; }
202 template <typename CreationTimestampT = Aws::Utils::DateTime>
203 void SetCreationTimestamp(CreationTimestampT&& value) {
204 m_creationTimestampHasBeenSet = true;
205 m_creationTimestamp = std::forward<CreationTimestampT>(value);
206 }
207 template <typename CreationTimestampT = Aws::Utils::DateTime>
208 EffectiveDeployment& WithCreationTimestamp(CreationTimestampT&& value) {
209 SetCreationTimestamp(std::forward<CreationTimestampT>(value));
210 return *this;
211 }
213
215
219 inline const Aws::Utils::DateTime& GetModifiedTimestamp() const { return m_modifiedTimestamp; }
220 inline bool ModifiedTimestampHasBeenSet() const { return m_modifiedTimestampHasBeenSet; }
221 template <typename ModifiedTimestampT = Aws::Utils::DateTime>
222 void SetModifiedTimestamp(ModifiedTimestampT&& value) {
223 m_modifiedTimestampHasBeenSet = true;
224 m_modifiedTimestamp = std::forward<ModifiedTimestampT>(value);
225 }
226 template <typename ModifiedTimestampT = Aws::Utils::DateTime>
227 EffectiveDeployment& WithModifiedTimestamp(ModifiedTimestampT&& value) {
228 SetModifiedTimestamp(std::forward<ModifiedTimestampT>(value));
229 return *this;
230 }
232
234
238 inline const EffectiveDeploymentStatusDetails& GetStatusDetails() const { return m_statusDetails; }
239 inline bool StatusDetailsHasBeenSet() const { return m_statusDetailsHasBeenSet; }
240 template <typename StatusDetailsT = EffectiveDeploymentStatusDetails>
241 void SetStatusDetails(StatusDetailsT&& value) {
242 m_statusDetailsHasBeenSet = true;
243 m_statusDetails = std::forward<StatusDetailsT>(value);
244 }
245 template <typename StatusDetailsT = EffectiveDeploymentStatusDetails>
246 EffectiveDeployment& WithStatusDetails(StatusDetailsT&& value) {
247 SetStatusDetails(std::forward<StatusDetailsT>(value));
248 return *this;
249 }
251 private:
252 Aws::String m_deploymentId;
253
254 Aws::String m_deploymentName;
255
256 Aws::String m_iotJobId;
257
258 Aws::String m_iotJobArn;
259
260 Aws::String m_description;
261
262 Aws::String m_targetArn;
263
265
266 Aws::String m_reason;
267
268 Aws::Utils::DateTime m_creationTimestamp{};
269
270 Aws::Utils::DateTime m_modifiedTimestamp{};
271
272 EffectiveDeploymentStatusDetails m_statusDetails;
273 bool m_deploymentIdHasBeenSet = false;
274 bool m_deploymentNameHasBeenSet = false;
275 bool m_iotJobIdHasBeenSet = false;
276 bool m_iotJobArnHasBeenSet = false;
277 bool m_descriptionHasBeenSet = false;
278 bool m_targetArnHasBeenSet = false;
279 bool m_coreDeviceExecutionStatusHasBeenSet = false;
280 bool m_reasonHasBeenSet = false;
281 bool m_creationTimestampHasBeenSet = false;
282 bool m_modifiedTimestampHasBeenSet = false;
283 bool m_statusDetailsHasBeenSet = false;
284};
285
286} // namespace Model
287} // namespace GreengrassV2
288} // namespace Aws
const Aws::Utils::DateTime & GetCreationTimestamp() const
EffectiveDeployment & WithModifiedTimestamp(ModifiedTimestampT &&value)
void SetCreationTimestamp(CreationTimestampT &&value)
EffectiveDeployment & WithReason(ReasonT &&value)
EffectiveDeploymentExecutionStatus GetCoreDeviceExecutionStatus() const
EffectiveDeployment & WithTargetArn(TargetArnT &&value)
EffectiveDeployment & WithCoreDeviceExecutionStatus(EffectiveDeploymentExecutionStatus value)
EffectiveDeployment & WithDeploymentName(DeploymentNameT &&value)
EffectiveDeployment & WithCreationTimestamp(CreationTimestampT &&value)
EffectiveDeployment & WithStatusDetails(StatusDetailsT &&value)
const Aws::Utils::DateTime & GetModifiedTimestamp() const
AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GREENGRASSV2_API EffectiveDeployment()=default
AWS_GREENGRASSV2_API EffectiveDeployment(Aws::Utils::Json::JsonView jsonValue)
EffectiveDeployment & WithDescription(DescriptionT &&value)
void SetModifiedTimestamp(ModifiedTimestampT &&value)
const EffectiveDeploymentStatusDetails & GetStatusDetails() const
AWS_GREENGRASSV2_API EffectiveDeployment & operator=(Aws::Utils::Json::JsonView jsonValue)
EffectiveDeployment & WithIotJobArn(IotJobArnT &&value)
void SetCoreDeviceExecutionStatus(EffectiveDeploymentExecutionStatus value)
EffectiveDeployment & WithDeploymentId(DeploymentIdT &&value)
EffectiveDeployment & WithIotJobId(IotJobIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue