AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetDeploymentResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
12#include <aws/greengrassv2/model/ComponentDeploymentSpecification.h>
13#include <aws/greengrassv2/model/DeploymentIoTJobConfiguration.h>
14#include <aws/greengrassv2/model/DeploymentPolicies.h>
15#include <aws/greengrassv2/model/DeploymentStatus.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace GreengrassV2 {
29namespace Model {
31 public:
32 AWS_GREENGRASSV2_API GetDeploymentResult() = default;
35
37
42 inline const Aws::String& GetTargetArn() const { return m_targetArn; }
43 template <typename TargetArnT = Aws::String>
44 void SetTargetArn(TargetArnT&& value) {
45 m_targetArnHasBeenSet = true;
46 m_targetArn = std::forward<TargetArnT>(value);
47 }
48 template <typename TargetArnT = Aws::String>
49 GetDeploymentResult& WithTargetArn(TargetArnT&& value) {
50 SetTargetArn(std::forward<TargetArnT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetRevisionId() const { return m_revisionId; }
60 template <typename RevisionIdT = Aws::String>
61 void SetRevisionId(RevisionIdT&& value) {
62 m_revisionIdHasBeenSet = true;
63 m_revisionId = std::forward<RevisionIdT>(value);
64 }
65 template <typename RevisionIdT = Aws::String>
66 GetDeploymentResult& WithRevisionId(RevisionIdT&& value) {
67 SetRevisionId(std::forward<RevisionIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDeploymentId() const { return m_deploymentId; }
77 template <typename DeploymentIdT = Aws::String>
78 void SetDeploymentId(DeploymentIdT&& value) {
79 m_deploymentIdHasBeenSet = true;
80 m_deploymentId = std::forward<DeploymentIdT>(value);
81 }
82 template <typename DeploymentIdT = Aws::String>
83 GetDeploymentResult& WithDeploymentId(DeploymentIdT&& value) {
84 SetDeploymentId(std::forward<DeploymentIdT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetDeploymentName() const { return m_deploymentName; }
94 template <typename DeploymentNameT = Aws::String>
95 void SetDeploymentName(DeploymentNameT&& value) {
96 m_deploymentNameHasBeenSet = true;
97 m_deploymentName = std::forward<DeploymentNameT>(value);
98 }
99 template <typename DeploymentNameT = Aws::String>
100 GetDeploymentResult& WithDeploymentName(DeploymentNameT&& value) {
101 SetDeploymentName(std::forward<DeploymentNameT>(value));
102 return *this;
103 }
105
107
110 inline DeploymentStatus GetDeploymentStatus() const { return m_deploymentStatus; }
112 m_deploymentStatusHasBeenSet = true;
113 m_deploymentStatus = value;
114 }
116 SetDeploymentStatus(value);
117 return *this;
118 }
120
122
125 inline const Aws::String& GetIotJobId() const { return m_iotJobId; }
126 template <typename IotJobIdT = Aws::String>
127 void SetIotJobId(IotJobIdT&& value) {
128 m_iotJobIdHasBeenSet = true;
129 m_iotJobId = std::forward<IotJobIdT>(value);
130 }
131 template <typename IotJobIdT = Aws::String>
132 GetDeploymentResult& WithIotJobId(IotJobIdT&& value) {
133 SetIotJobId(std::forward<IotJobIdT>(value));
134 return *this;
135 }
137
139
144 inline const Aws::String& GetIotJobArn() const { return m_iotJobArn; }
145 template <typename IotJobArnT = Aws::String>
146 void SetIotJobArn(IotJobArnT&& value) {
147 m_iotJobArnHasBeenSet = true;
148 m_iotJobArn = std::forward<IotJobArnT>(value);
149 }
150 template <typename IotJobArnT = Aws::String>
151 GetDeploymentResult& WithIotJobArn(IotJobArnT&& value) {
152 SetIotJobArn(std::forward<IotJobArnT>(value));
153 return *this;
154 }
156
158
163 inline const Aws::Map<Aws::String, ComponentDeploymentSpecification>& GetComponents() const { return m_components; }
164 template <typename ComponentsT = Aws::Map<Aws::String, ComponentDeploymentSpecification>>
165 void SetComponents(ComponentsT&& value) {
166 m_componentsHasBeenSet = true;
167 m_components = std::forward<ComponentsT>(value);
168 }
169 template <typename ComponentsT = Aws::Map<Aws::String, ComponentDeploymentSpecification>>
170 GetDeploymentResult& WithComponents(ComponentsT&& value) {
171 SetComponents(std::forward<ComponentsT>(value));
172 return *this;
173 }
174 template <typename ComponentsKeyT = Aws::String, typename ComponentsValueT = ComponentDeploymentSpecification>
175 GetDeploymentResult& AddComponents(ComponentsKeyT&& key, ComponentsValueT&& value) {
176 m_componentsHasBeenSet = true;
177 m_components.emplace(std::forward<ComponentsKeyT>(key), std::forward<ComponentsValueT>(value));
178 return *this;
179 }
181
183
187 inline const DeploymentPolicies& GetDeploymentPolicies() const { return m_deploymentPolicies; }
188 template <typename DeploymentPoliciesT = DeploymentPolicies>
189 void SetDeploymentPolicies(DeploymentPoliciesT&& value) {
190 m_deploymentPoliciesHasBeenSet = true;
191 m_deploymentPolicies = std::forward<DeploymentPoliciesT>(value);
192 }
193 template <typename DeploymentPoliciesT = DeploymentPolicies>
194 GetDeploymentResult& WithDeploymentPolicies(DeploymentPoliciesT&& value) {
195 SetDeploymentPolicies(std::forward<DeploymentPoliciesT>(value));
196 return *this;
197 }
199
201
206 inline const DeploymentIoTJobConfiguration& GetIotJobConfiguration() const { return m_iotJobConfiguration; }
207 template <typename IotJobConfigurationT = DeploymentIoTJobConfiguration>
208 void SetIotJobConfiguration(IotJobConfigurationT&& value) {
209 m_iotJobConfigurationHasBeenSet = true;
210 m_iotJobConfiguration = std::forward<IotJobConfigurationT>(value);
211 }
212 template <typename IotJobConfigurationT = DeploymentIoTJobConfiguration>
213 GetDeploymentResult& WithIotJobConfiguration(IotJobConfigurationT&& value) {
214 SetIotJobConfiguration(std::forward<IotJobConfigurationT>(value));
215 return *this;
216 }
218
220
224 inline const Aws::Utils::DateTime& GetCreationTimestamp() const { return m_creationTimestamp; }
225 template <typename CreationTimestampT = Aws::Utils::DateTime>
226 void SetCreationTimestamp(CreationTimestampT&& value) {
227 m_creationTimestampHasBeenSet = true;
228 m_creationTimestamp = std::forward<CreationTimestampT>(value);
229 }
230 template <typename CreationTimestampT = Aws::Utils::DateTime>
231 GetDeploymentResult& WithCreationTimestamp(CreationTimestampT&& value) {
232 SetCreationTimestamp(std::forward<CreationTimestampT>(value));
233 return *this;
234 }
236
238
241 inline bool GetIsLatestForTarget() const { return m_isLatestForTarget; }
242 inline void SetIsLatestForTarget(bool value) {
243 m_isLatestForTargetHasBeenSet = true;
244 m_isLatestForTarget = value;
245 }
248 return *this;
249 }
251
253
258 inline const Aws::String& GetParentTargetArn() const { return m_parentTargetArn; }
259 template <typename ParentTargetArnT = Aws::String>
260 void SetParentTargetArn(ParentTargetArnT&& value) {
261 m_parentTargetArnHasBeenSet = true;
262 m_parentTargetArn = std::forward<ParentTargetArnT>(value);
263 }
264 template <typename ParentTargetArnT = Aws::String>
265 GetDeploymentResult& WithParentTargetArn(ParentTargetArnT&& value) {
266 SetParentTargetArn(std::forward<ParentTargetArnT>(value));
267 return *this;
268 }
270
272
278 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
279 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
280 void SetTags(TagsT&& value) {
281 m_tagsHasBeenSet = true;
282 m_tags = std::forward<TagsT>(value);
283 }
284 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
286 SetTags(std::forward<TagsT>(value));
287 return *this;
288 }
289 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
290 GetDeploymentResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
291 m_tagsHasBeenSet = true;
292 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
293 return *this;
294 }
296
298
299 inline const Aws::String& GetRequestId() const { return m_requestId; }
300 template <typename RequestIdT = Aws::String>
301 void SetRequestId(RequestIdT&& value) {
302 m_requestIdHasBeenSet = true;
303 m_requestId = std::forward<RequestIdT>(value);
304 }
305 template <typename RequestIdT = Aws::String>
306 GetDeploymentResult& WithRequestId(RequestIdT&& value) {
307 SetRequestId(std::forward<RequestIdT>(value));
308 return *this;
309 }
311 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
312
313 private:
314 Aws::String m_targetArn;
315
316 Aws::String m_revisionId;
317
318 Aws::String m_deploymentId;
319
320 Aws::String m_deploymentName;
321
323
324 Aws::String m_iotJobId;
325
326 Aws::String m_iotJobArn;
327
329
330 DeploymentPolicies m_deploymentPolicies;
331
332 DeploymentIoTJobConfiguration m_iotJobConfiguration;
333
334 Aws::Utils::DateTime m_creationTimestamp{};
335
336 bool m_isLatestForTarget{false};
337
338 Aws::String m_parentTargetArn;
339
341
342 Aws::String m_requestId;
343 Aws::Http::HttpResponseCode m_HttpResponseCode;
344 bool m_targetArnHasBeenSet = false;
345 bool m_revisionIdHasBeenSet = false;
346 bool m_deploymentIdHasBeenSet = false;
347 bool m_deploymentNameHasBeenSet = false;
348 bool m_deploymentStatusHasBeenSet = false;
349 bool m_iotJobIdHasBeenSet = false;
350 bool m_iotJobArnHasBeenSet = false;
351 bool m_componentsHasBeenSet = false;
352 bool m_deploymentPoliciesHasBeenSet = false;
353 bool m_iotJobConfigurationHasBeenSet = false;
354 bool m_creationTimestampHasBeenSet = false;
355 bool m_isLatestForTargetHasBeenSet = false;
356 bool m_parentTargetArnHasBeenSet = false;
357 bool m_tagsHasBeenSet = false;
358 bool m_requestIdHasBeenSet = false;
359};
360
361} // namespace Model
362} // namespace GreengrassV2
363} // namespace Aws
GetDeploymentResult & WithParentTargetArn(ParentTargetArnT &&value)
GetDeploymentResult & WithIotJobId(IotJobIdT &&value)
GetDeploymentResult & WithDeploymentPolicies(DeploymentPoliciesT &&value)
GetDeploymentResult & WithTags(TagsT &&value)
GetDeploymentResult & WithDeploymentName(DeploymentNameT &&value)
GetDeploymentResult & WithTargetArn(TargetArnT &&value)
GetDeploymentResult & WithIotJobArn(IotJobArnT &&value)
AWS_GREENGRASSV2_API GetDeploymentResult()=default
AWS_GREENGRASSV2_API GetDeploymentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDeploymentResult & WithCreationTimestamp(CreationTimestampT &&value)
void SetCreationTimestamp(CreationTimestampT &&value)
void SetDeploymentPolicies(DeploymentPoliciesT &&value)
GetDeploymentResult & WithIsLatestForTarget(bool value)
void SetParentTargetArn(ParentTargetArnT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
GetDeploymentResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
GetDeploymentResult & WithRequestId(RequestIdT &&value)
GetDeploymentResult & WithRevisionId(RevisionIdT &&value)
GetDeploymentResult & WithDeploymentId(DeploymentIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const DeploymentPolicies & GetDeploymentPolicies() const
GetDeploymentResult & AddComponents(ComponentsKeyT &&key, ComponentsValueT &&value)
const Aws::Map< Aws::String, ComponentDeploymentSpecification > & GetComponents() const
GetDeploymentResult & WithIotJobConfiguration(IotJobConfigurationT &&value)
const Aws::Utils::DateTime & GetCreationTimestamp() const
const DeploymentIoTJobConfiguration & GetIotJobConfiguration() const
GetDeploymentResult & WithDeploymentStatus(DeploymentStatus value)
GetDeploymentResult & WithComponents(ComponentsT &&value)
AWS_GREENGRASSV2_API GetDeploymentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetIotJobConfiguration(IotJobConfigurationT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue