AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
GetDeploymentResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
11#include <aws/greengrassv2/model/ComponentDeploymentSpecification.h>
12#include <aws/greengrassv2/model/DeploymentIoTJobConfiguration.h>
13#include <aws/greengrassv2/model/DeploymentPolicies.h>
14#include <aws/greengrassv2/model/DeploymentStatus.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace GreengrassV2 {
28namespace Model {
30 public:
31 AWS_GREENGRASSV2_API GetDeploymentResult() = default;
34
36
41 inline const Aws::String& GetTargetArn() const { return m_targetArn; }
42 template <typename TargetArnT = Aws::String>
43 void SetTargetArn(TargetArnT&& value) {
44 m_targetArnHasBeenSet = true;
45 m_targetArn = std::forward<TargetArnT>(value);
46 }
47 template <typename TargetArnT = Aws::String>
48 GetDeploymentResult& WithTargetArn(TargetArnT&& value) {
49 SetTargetArn(std::forward<TargetArnT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetRevisionId() const { return m_revisionId; }
59 template <typename RevisionIdT = Aws::String>
60 void SetRevisionId(RevisionIdT&& value) {
61 m_revisionIdHasBeenSet = true;
62 m_revisionId = std::forward<RevisionIdT>(value);
63 }
64 template <typename RevisionIdT = Aws::String>
65 GetDeploymentResult& WithRevisionId(RevisionIdT&& value) {
66 SetRevisionId(std::forward<RevisionIdT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetDeploymentId() const { return m_deploymentId; }
76 template <typename DeploymentIdT = Aws::String>
77 void SetDeploymentId(DeploymentIdT&& value) {
78 m_deploymentIdHasBeenSet = true;
79 m_deploymentId = std::forward<DeploymentIdT>(value);
80 }
81 template <typename DeploymentIdT = Aws::String>
82 GetDeploymentResult& WithDeploymentId(DeploymentIdT&& value) {
83 SetDeploymentId(std::forward<DeploymentIdT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetDeploymentName() const { return m_deploymentName; }
93 template <typename DeploymentNameT = Aws::String>
94 void SetDeploymentName(DeploymentNameT&& value) {
95 m_deploymentNameHasBeenSet = true;
96 m_deploymentName = std::forward<DeploymentNameT>(value);
97 }
98 template <typename DeploymentNameT = Aws::String>
99 GetDeploymentResult& WithDeploymentName(DeploymentNameT&& value) {
100 SetDeploymentName(std::forward<DeploymentNameT>(value));
101 return *this;
102 }
104
106
109 inline DeploymentStatus GetDeploymentStatus() const { return m_deploymentStatus; }
111 m_deploymentStatusHasBeenSet = true;
112 m_deploymentStatus = value;
113 }
115 SetDeploymentStatus(value);
116 return *this;
117 }
119
121
124 inline const Aws::String& GetIotJobId() const { return m_iotJobId; }
125 template <typename IotJobIdT = Aws::String>
126 void SetIotJobId(IotJobIdT&& value) {
127 m_iotJobIdHasBeenSet = true;
128 m_iotJobId = std::forward<IotJobIdT>(value);
129 }
130 template <typename IotJobIdT = Aws::String>
131 GetDeploymentResult& WithIotJobId(IotJobIdT&& value) {
132 SetIotJobId(std::forward<IotJobIdT>(value));
133 return *this;
134 }
136
138
143 inline const Aws::String& GetIotJobArn() const { return m_iotJobArn; }
144 template <typename IotJobArnT = Aws::String>
145 void SetIotJobArn(IotJobArnT&& value) {
146 m_iotJobArnHasBeenSet = true;
147 m_iotJobArn = std::forward<IotJobArnT>(value);
148 }
149 template <typename IotJobArnT = Aws::String>
150 GetDeploymentResult& WithIotJobArn(IotJobArnT&& value) {
151 SetIotJobArn(std::forward<IotJobArnT>(value));
152 return *this;
153 }
155
157
162 inline const Aws::Map<Aws::String, ComponentDeploymentSpecification>& GetComponents() const { return m_components; }
163 template <typename ComponentsT = Aws::Map<Aws::String, ComponentDeploymentSpecification>>
164 void SetComponents(ComponentsT&& value) {
165 m_componentsHasBeenSet = true;
166 m_components = std::forward<ComponentsT>(value);
167 }
168 template <typename ComponentsT = Aws::Map<Aws::String, ComponentDeploymentSpecification>>
169 GetDeploymentResult& WithComponents(ComponentsT&& value) {
170 SetComponents(std::forward<ComponentsT>(value));
171 return *this;
172 }
173 template <typename ComponentsKeyT = Aws::String, typename ComponentsValueT = ComponentDeploymentSpecification>
174 GetDeploymentResult& AddComponents(ComponentsKeyT&& key, ComponentsValueT&& value) {
175 m_componentsHasBeenSet = true;
176 m_components.emplace(std::forward<ComponentsKeyT>(key), std::forward<ComponentsValueT>(value));
177 return *this;
178 }
180
182
186 inline const DeploymentPolicies& GetDeploymentPolicies() const { return m_deploymentPolicies; }
187 template <typename DeploymentPoliciesT = DeploymentPolicies>
188 void SetDeploymentPolicies(DeploymentPoliciesT&& value) {
189 m_deploymentPoliciesHasBeenSet = true;
190 m_deploymentPolicies = std::forward<DeploymentPoliciesT>(value);
191 }
192 template <typename DeploymentPoliciesT = DeploymentPolicies>
193 GetDeploymentResult& WithDeploymentPolicies(DeploymentPoliciesT&& value) {
194 SetDeploymentPolicies(std::forward<DeploymentPoliciesT>(value));
195 return *this;
196 }
198
200
205 inline const DeploymentIoTJobConfiguration& GetIotJobConfiguration() const { return m_iotJobConfiguration; }
206 template <typename IotJobConfigurationT = DeploymentIoTJobConfiguration>
207 void SetIotJobConfiguration(IotJobConfigurationT&& value) {
208 m_iotJobConfigurationHasBeenSet = true;
209 m_iotJobConfiguration = std::forward<IotJobConfigurationT>(value);
210 }
211 template <typename IotJobConfigurationT = DeploymentIoTJobConfiguration>
212 GetDeploymentResult& WithIotJobConfiguration(IotJobConfigurationT&& value) {
213 SetIotJobConfiguration(std::forward<IotJobConfigurationT>(value));
214 return *this;
215 }
217
219
223 inline const Aws::Utils::DateTime& GetCreationTimestamp() const { return m_creationTimestamp; }
224 template <typename CreationTimestampT = Aws::Utils::DateTime>
225 void SetCreationTimestamp(CreationTimestampT&& value) {
226 m_creationTimestampHasBeenSet = true;
227 m_creationTimestamp = std::forward<CreationTimestampT>(value);
228 }
229 template <typename CreationTimestampT = Aws::Utils::DateTime>
230 GetDeploymentResult& WithCreationTimestamp(CreationTimestampT&& value) {
231 SetCreationTimestamp(std::forward<CreationTimestampT>(value));
232 return *this;
233 }
235
237
240 inline bool GetIsLatestForTarget() const { return m_isLatestForTarget; }
241 inline void SetIsLatestForTarget(bool value) {
242 m_isLatestForTargetHasBeenSet = true;
243 m_isLatestForTarget = value;
244 }
247 return *this;
248 }
250
252
257 inline const Aws::String& GetParentTargetArn() const { return m_parentTargetArn; }
258 template <typename ParentTargetArnT = Aws::String>
259 void SetParentTargetArn(ParentTargetArnT&& value) {
260 m_parentTargetArnHasBeenSet = true;
261 m_parentTargetArn = std::forward<ParentTargetArnT>(value);
262 }
263 template <typename ParentTargetArnT = Aws::String>
264 GetDeploymentResult& WithParentTargetArn(ParentTargetArnT&& value) {
265 SetParentTargetArn(std::forward<ParentTargetArnT>(value));
266 return *this;
267 }
269
271
277 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
278 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
279 void SetTags(TagsT&& value) {
280 m_tagsHasBeenSet = true;
281 m_tags = std::forward<TagsT>(value);
282 }
283 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
285 SetTags(std::forward<TagsT>(value));
286 return *this;
287 }
288 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
289 GetDeploymentResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
290 m_tagsHasBeenSet = true;
291 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
292 return *this;
293 }
295
297
298 inline const Aws::String& GetRequestId() const { return m_requestId; }
299 template <typename RequestIdT = Aws::String>
300 void SetRequestId(RequestIdT&& value) {
301 m_requestIdHasBeenSet = true;
302 m_requestId = std::forward<RequestIdT>(value);
303 }
304 template <typename RequestIdT = Aws::String>
305 GetDeploymentResult& WithRequestId(RequestIdT&& value) {
306 SetRequestId(std::forward<RequestIdT>(value));
307 return *this;
308 }
310 private:
311 Aws::String m_targetArn;
312 bool m_targetArnHasBeenSet = false;
313
314 Aws::String m_revisionId;
315 bool m_revisionIdHasBeenSet = false;
316
317 Aws::String m_deploymentId;
318 bool m_deploymentIdHasBeenSet = false;
319
320 Aws::String m_deploymentName;
321 bool m_deploymentNameHasBeenSet = false;
322
324 bool m_deploymentStatusHasBeenSet = false;
325
326 Aws::String m_iotJobId;
327 bool m_iotJobIdHasBeenSet = false;
328
329 Aws::String m_iotJobArn;
330 bool m_iotJobArnHasBeenSet = false;
331
333 bool m_componentsHasBeenSet = false;
334
335 DeploymentPolicies m_deploymentPolicies;
336 bool m_deploymentPoliciesHasBeenSet = false;
337
338 DeploymentIoTJobConfiguration m_iotJobConfiguration;
339 bool m_iotJobConfigurationHasBeenSet = false;
340
341 Aws::Utils::DateTime m_creationTimestamp{};
342 bool m_creationTimestampHasBeenSet = false;
343
344 bool m_isLatestForTarget{false};
345 bool m_isLatestForTargetHasBeenSet = false;
346
347 Aws::String m_parentTargetArn;
348 bool m_parentTargetArnHasBeenSet = false;
349
351 bool m_tagsHasBeenSet = false;
352
353 Aws::String m_requestId;
354 bool m_requestIdHasBeenSet = false;
355};
356
357} // namespace Model
358} // namespace GreengrassV2
359} // 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)
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