AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetDeploymentResult.h
1
6#pragma once
7#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/greengrassv2/model/DeploymentStatus.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/greengrassv2/model/DeploymentPolicies.h>
12#include <aws/greengrassv2/model/DeploymentIoTJobConfiguration.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/greengrassv2/model/ComponentDeploymentSpecification.h>
15#include <utility>
16
17namespace Aws
18{
19template<typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace GreengrassV2
30{
31namespace Model
32{
34 {
35 public:
36 AWS_GREENGRASSV2_API GetDeploymentResult() = default;
39
40
42
47 inline const Aws::String& GetTargetArn() const { return m_targetArn; }
48 template<typename TargetArnT = Aws::String>
49 void SetTargetArn(TargetArnT&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::forward<TargetArnT>(value); }
50 template<typename TargetArnT = Aws::String>
51 GetDeploymentResult& WithTargetArn(TargetArnT&& value) { SetTargetArn(std::forward<TargetArnT>(value)); return *this;}
53
55
58 inline const Aws::String& GetRevisionId() const { return m_revisionId; }
59 template<typename RevisionIdT = Aws::String>
60 void SetRevisionId(RevisionIdT&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::forward<RevisionIdT>(value); }
61 template<typename RevisionIdT = Aws::String>
62 GetDeploymentResult& WithRevisionId(RevisionIdT&& value) { SetRevisionId(std::forward<RevisionIdT>(value)); return *this;}
64
66
69 inline const Aws::String& GetDeploymentId() const { return m_deploymentId; }
70 template<typename DeploymentIdT = Aws::String>
71 void SetDeploymentId(DeploymentIdT&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::forward<DeploymentIdT>(value); }
72 template<typename DeploymentIdT = Aws::String>
73 GetDeploymentResult& WithDeploymentId(DeploymentIdT&& value) { SetDeploymentId(std::forward<DeploymentIdT>(value)); return *this;}
75
77
80 inline const Aws::String& GetDeploymentName() const { return m_deploymentName; }
81 template<typename DeploymentNameT = Aws::String>
82 void SetDeploymentName(DeploymentNameT&& value) { m_deploymentNameHasBeenSet = true; m_deploymentName = std::forward<DeploymentNameT>(value); }
83 template<typename DeploymentNameT = Aws::String>
84 GetDeploymentResult& WithDeploymentName(DeploymentNameT&& value) { SetDeploymentName(std::forward<DeploymentNameT>(value)); return *this;}
86
88
91 inline DeploymentStatus GetDeploymentStatus() const { return m_deploymentStatus; }
92 inline void SetDeploymentStatus(DeploymentStatus value) { m_deploymentStatusHasBeenSet = true; m_deploymentStatus = value; }
95
97
100 inline const Aws::String& GetIotJobId() const { return m_iotJobId; }
101 template<typename IotJobIdT = Aws::String>
102 void SetIotJobId(IotJobIdT&& value) { m_iotJobIdHasBeenSet = true; m_iotJobId = std::forward<IotJobIdT>(value); }
103 template<typename IotJobIdT = Aws::String>
104 GetDeploymentResult& WithIotJobId(IotJobIdT&& value) { SetIotJobId(std::forward<IotJobIdT>(value)); return *this;}
106
108
113 inline const Aws::String& GetIotJobArn() const { return m_iotJobArn; }
114 template<typename IotJobArnT = Aws::String>
115 void SetIotJobArn(IotJobArnT&& value) { m_iotJobArnHasBeenSet = true; m_iotJobArn = std::forward<IotJobArnT>(value); }
116 template<typename IotJobArnT = Aws::String>
117 GetDeploymentResult& WithIotJobArn(IotJobArnT&& value) { SetIotJobArn(std::forward<IotJobArnT>(value)); return *this;}
119
121
126 inline const Aws::Map<Aws::String, ComponentDeploymentSpecification>& GetComponents() const { return m_components; }
127 template<typename ComponentsT = Aws::Map<Aws::String, ComponentDeploymentSpecification>>
128 void SetComponents(ComponentsT&& value) { m_componentsHasBeenSet = true; m_components = std::forward<ComponentsT>(value); }
129 template<typename ComponentsT = Aws::Map<Aws::String, ComponentDeploymentSpecification>>
130 GetDeploymentResult& WithComponents(ComponentsT&& value) { SetComponents(std::forward<ComponentsT>(value)); return *this;}
131 template<typename ComponentsKeyT = Aws::String, typename ComponentsValueT = ComponentDeploymentSpecification>
132 GetDeploymentResult& AddComponents(ComponentsKeyT&& key, ComponentsValueT&& value) {
133 m_componentsHasBeenSet = true; m_components.emplace(std::forward<ComponentsKeyT>(key), std::forward<ComponentsValueT>(value)); return *this;
134 }
136
138
142 inline const DeploymentPolicies& GetDeploymentPolicies() const { return m_deploymentPolicies; }
143 template<typename DeploymentPoliciesT = DeploymentPolicies>
144 void SetDeploymentPolicies(DeploymentPoliciesT&& value) { m_deploymentPoliciesHasBeenSet = true; m_deploymentPolicies = std::forward<DeploymentPoliciesT>(value); }
145 template<typename DeploymentPoliciesT = DeploymentPolicies>
146 GetDeploymentResult& WithDeploymentPolicies(DeploymentPoliciesT&& value) { SetDeploymentPolicies(std::forward<DeploymentPoliciesT>(value)); return *this;}
148
150
155 inline const DeploymentIoTJobConfiguration& GetIotJobConfiguration() const { return m_iotJobConfiguration; }
156 template<typename IotJobConfigurationT = DeploymentIoTJobConfiguration>
157 void SetIotJobConfiguration(IotJobConfigurationT&& value) { m_iotJobConfigurationHasBeenSet = true; m_iotJobConfiguration = std::forward<IotJobConfigurationT>(value); }
158 template<typename IotJobConfigurationT = DeploymentIoTJobConfiguration>
159 GetDeploymentResult& WithIotJobConfiguration(IotJobConfigurationT&& value) { SetIotJobConfiguration(std::forward<IotJobConfigurationT>(value)); return *this;}
161
163
167 inline const Aws::Utils::DateTime& GetCreationTimestamp() const { return m_creationTimestamp; }
168 template<typename CreationTimestampT = Aws::Utils::DateTime>
169 void SetCreationTimestamp(CreationTimestampT&& value) { m_creationTimestampHasBeenSet = true; m_creationTimestamp = std::forward<CreationTimestampT>(value); }
170 template<typename CreationTimestampT = Aws::Utils::DateTime>
171 GetDeploymentResult& WithCreationTimestamp(CreationTimestampT&& value) { SetCreationTimestamp(std::forward<CreationTimestampT>(value)); return *this;}
173
175
178 inline bool GetIsLatestForTarget() const { return m_isLatestForTarget; }
179 inline void SetIsLatestForTarget(bool value) { m_isLatestForTargetHasBeenSet = true; m_isLatestForTarget = value; }
180 inline GetDeploymentResult& WithIsLatestForTarget(bool value) { SetIsLatestForTarget(value); return *this;}
182
184
189 inline const Aws::String& GetParentTargetArn() const { return m_parentTargetArn; }
190 template<typename ParentTargetArnT = Aws::String>
191 void SetParentTargetArn(ParentTargetArnT&& value) { m_parentTargetArnHasBeenSet = true; m_parentTargetArn = std::forward<ParentTargetArnT>(value); }
192 template<typename ParentTargetArnT = Aws::String>
193 GetDeploymentResult& WithParentTargetArn(ParentTargetArnT&& value) { SetParentTargetArn(std::forward<ParentTargetArnT>(value)); return *this;}
195
197
203 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
204 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
205 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
206 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
207 GetDeploymentResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
208 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
209 GetDeploymentResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
210 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
211 }
213
215
216 inline const Aws::String& GetRequestId() const { return m_requestId; }
217 template<typename RequestIdT = Aws::String>
218 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
219 template<typename RequestIdT = Aws::String>
220 GetDeploymentResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
222 private:
223
224 Aws::String m_targetArn;
225 bool m_targetArnHasBeenSet = false;
226
227 Aws::String m_revisionId;
228 bool m_revisionIdHasBeenSet = false;
229
230 Aws::String m_deploymentId;
231 bool m_deploymentIdHasBeenSet = false;
232
233 Aws::String m_deploymentName;
234 bool m_deploymentNameHasBeenSet = false;
235
237 bool m_deploymentStatusHasBeenSet = false;
238
239 Aws::String m_iotJobId;
240 bool m_iotJobIdHasBeenSet = false;
241
242 Aws::String m_iotJobArn;
243 bool m_iotJobArnHasBeenSet = false;
244
246 bool m_componentsHasBeenSet = false;
247
248 DeploymentPolicies m_deploymentPolicies;
249 bool m_deploymentPoliciesHasBeenSet = false;
250
251 DeploymentIoTJobConfiguration m_iotJobConfiguration;
252 bool m_iotJobConfigurationHasBeenSet = false;
253
254 Aws::Utils::DateTime m_creationTimestamp{};
255 bool m_creationTimestampHasBeenSet = false;
256
257 bool m_isLatestForTarget{false};
258 bool m_isLatestForTargetHasBeenSet = false;
259
260 Aws::String m_parentTargetArn;
261 bool m_parentTargetArnHasBeenSet = false;
262
264 bool m_tagsHasBeenSet = false;
265
266 Aws::String m_requestId;
267 bool m_requestIdHasBeenSet = false;
268 };
269
270} // namespace Model
271} // namespace GreengrassV2
272} // 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