AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
DeploymentData.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/launch-wizard/LaunchWizard_EXPORTS.h>
11#include <aws/launch-wizard/model/DeploymentStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace LaunchWizard {
23namespace Model {
24
31 public:
32 AWS_LAUNCHWIZARD_API DeploymentData() = default;
33 AWS_LAUNCHWIZARD_API DeploymentData(Aws::Utils::Json::JsonView jsonValue);
34 AWS_LAUNCHWIZARD_API DeploymentData& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_LAUNCHWIZARD_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
49 DeploymentData& WithName(NameT&& value) {
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetId() const { return m_id; }
60 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
61 template <typename IdT = Aws::String>
62 void SetId(IdT&& value) {
63 m_idHasBeenSet = true;
64 m_id = std::forward<IdT>(value);
65 }
66 template <typename IdT = Aws::String>
67 DeploymentData& WithId(IdT&& value) {
68 SetId(std::forward<IdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetWorkloadName() const { return m_workloadName; }
78 inline bool WorkloadNameHasBeenSet() const { return m_workloadNameHasBeenSet; }
79 template <typename WorkloadNameT = Aws::String>
80 void SetWorkloadName(WorkloadNameT&& value) {
81 m_workloadNameHasBeenSet = true;
82 m_workloadName = std::forward<WorkloadNameT>(value);
83 }
84 template <typename WorkloadNameT = Aws::String>
85 DeploymentData& WithWorkloadName(WorkloadNameT&& value) {
86 SetWorkloadName(std::forward<WorkloadNameT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetPatternName() const { return m_patternName; }
96 inline bool PatternNameHasBeenSet() const { return m_patternNameHasBeenSet; }
97 template <typename PatternNameT = Aws::String>
98 void SetPatternName(PatternNameT&& value) {
99 m_patternNameHasBeenSet = true;
100 m_patternName = std::forward<PatternNameT>(value);
101 }
102 template <typename PatternNameT = Aws::String>
103 DeploymentData& WithPatternName(PatternNameT&& value) {
104 SetPatternName(std::forward<PatternNameT>(value));
105 return *this;
106 }
108
110
113 inline DeploymentStatus GetStatus() const { return m_status; }
114 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
115 inline void SetStatus(DeploymentStatus value) {
116 m_statusHasBeenSet = true;
117 m_status = value;
118 }
120 SetStatus(value);
121 return *this;
122 }
124
126
129 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
130 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
131 template <typename CreatedAtT = Aws::Utils::DateTime>
132 void SetCreatedAt(CreatedAtT&& value) {
133 m_createdAtHasBeenSet = true;
134 m_createdAt = std::forward<CreatedAtT>(value);
135 }
136 template <typename CreatedAtT = Aws::Utils::DateTime>
137 DeploymentData& WithCreatedAt(CreatedAtT&& value) {
138 SetCreatedAt(std::forward<CreatedAtT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
148 inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
149 template <typename ModifiedAtT = Aws::Utils::DateTime>
150 void SetModifiedAt(ModifiedAtT&& value) {
151 m_modifiedAtHasBeenSet = true;
152 m_modifiedAt = std::forward<ModifiedAtT>(value);
153 }
154 template <typename ModifiedAtT = Aws::Utils::DateTime>
155 DeploymentData& WithModifiedAt(ModifiedAtT&& value) {
156 SetModifiedAt(std::forward<ModifiedAtT>(value));
157 return *this;
158 }
160
162
173 inline const Aws::Map<Aws::String, Aws::String>& GetSpecifications() const { return m_specifications; }
174 inline bool SpecificationsHasBeenSet() const { return m_specificationsHasBeenSet; }
175 template <typename SpecificationsT = Aws::Map<Aws::String, Aws::String>>
176 void SetSpecifications(SpecificationsT&& value) {
177 m_specificationsHasBeenSet = true;
178 m_specifications = std::forward<SpecificationsT>(value);
179 }
180 template <typename SpecificationsT = Aws::Map<Aws::String, Aws::String>>
181 DeploymentData& WithSpecifications(SpecificationsT&& value) {
182 SetSpecifications(std::forward<SpecificationsT>(value));
183 return *this;
184 }
185 template <typename SpecificationsKeyT = Aws::String, typename SpecificationsValueT = Aws::String>
186 DeploymentData& AddSpecifications(SpecificationsKeyT&& key, SpecificationsValueT&& value) {
187 m_specificationsHasBeenSet = true;
188 m_specifications.emplace(std::forward<SpecificationsKeyT>(key), std::forward<SpecificationsValueT>(value));
189 return *this;
190 }
192
194
197 inline const Aws::String& GetResourceGroup() const { return m_resourceGroup; }
198 inline bool ResourceGroupHasBeenSet() const { return m_resourceGroupHasBeenSet; }
199 template <typename ResourceGroupT = Aws::String>
200 void SetResourceGroup(ResourceGroupT&& value) {
201 m_resourceGroupHasBeenSet = true;
202 m_resourceGroup = std::forward<ResourceGroupT>(value);
203 }
204 template <typename ResourceGroupT = Aws::String>
205 DeploymentData& WithResourceGroup(ResourceGroupT&& value) {
206 SetResourceGroup(std::forward<ResourceGroupT>(value));
207 return *this;
208 }
210
212
215 inline const Aws::Utils::DateTime& GetDeletedAt() const { return m_deletedAt; }
216 inline bool DeletedAtHasBeenSet() const { return m_deletedAtHasBeenSet; }
217 template <typename DeletedAtT = Aws::Utils::DateTime>
218 void SetDeletedAt(DeletedAtT&& value) {
219 m_deletedAtHasBeenSet = true;
220 m_deletedAt = std::forward<DeletedAtT>(value);
221 }
222 template <typename DeletedAtT = Aws::Utils::DateTime>
223 DeploymentData& WithDeletedAt(DeletedAtT&& value) {
224 SetDeletedAt(std::forward<DeletedAtT>(value));
225 return *this;
226 }
228
230
233 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
234 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
235 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
236 void SetTags(TagsT&& value) {
237 m_tagsHasBeenSet = true;
238 m_tags = std::forward<TagsT>(value);
239 }
240 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
241 DeploymentData& WithTags(TagsT&& value) {
242 SetTags(std::forward<TagsT>(value));
243 return *this;
244 }
245 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
246 DeploymentData& AddTags(TagsKeyT&& key, TagsValueT&& value) {
247 m_tagsHasBeenSet = true;
248 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
249 return *this;
250 }
252
254
257 inline const Aws::String& GetDeploymentArn() const { return m_deploymentArn; }
258 inline bool DeploymentArnHasBeenSet() const { return m_deploymentArnHasBeenSet; }
259 template <typename DeploymentArnT = Aws::String>
260 void SetDeploymentArn(DeploymentArnT&& value) {
261 m_deploymentArnHasBeenSet = true;
262 m_deploymentArn = std::forward<DeploymentArnT>(value);
263 }
264 template <typename DeploymentArnT = Aws::String>
265 DeploymentData& WithDeploymentArn(DeploymentArnT&& value) {
266 SetDeploymentArn(std::forward<DeploymentArnT>(value));
267 return *this;
268 }
270 private:
271 Aws::String m_name;
272
273 Aws::String m_id;
274
275 Aws::String m_workloadName;
276
277 Aws::String m_patternName;
278
280
281 Aws::Utils::DateTime m_createdAt{};
282
283 Aws::Utils::DateTime m_modifiedAt{};
284
285 Aws::Map<Aws::String, Aws::String> m_specifications;
286
287 Aws::String m_resourceGroup;
288
289 Aws::Utils::DateTime m_deletedAt{};
290
292
293 Aws::String m_deploymentArn;
294 bool m_nameHasBeenSet = false;
295 bool m_idHasBeenSet = false;
296 bool m_workloadNameHasBeenSet = false;
297 bool m_patternNameHasBeenSet = false;
298 bool m_statusHasBeenSet = false;
299 bool m_createdAtHasBeenSet = false;
300 bool m_modifiedAtHasBeenSet = false;
301 bool m_specificationsHasBeenSet = false;
302 bool m_resourceGroupHasBeenSet = false;
303 bool m_deletedAtHasBeenSet = false;
304 bool m_tagsHasBeenSet = false;
305 bool m_deploymentArnHasBeenSet = false;
306};
307
308} // namespace Model
309} // namespace LaunchWizard
310} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
DeploymentData & WithId(IdT &&value)
void SetResourceGroup(ResourceGroupT &&value)
DeploymentData & WithPatternName(PatternNameT &&value)
DeploymentData & WithDeploymentArn(DeploymentArnT &&value)
DeploymentData & WithName(NameT &&value)
const Aws::String & GetResourceGroup() const
DeploymentData & WithCreatedAt(CreatedAtT &&value)
void SetModifiedAt(ModifiedAtT &&value)
DeploymentData & WithDeletedAt(DeletedAtT &&value)
AWS_LAUNCHWIZARD_API DeploymentData & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetWorkloadName() const
const Aws::Utils::DateTime & GetDeletedAt() const
AWS_LAUNCHWIZARD_API DeploymentData()=default
void SetSpecifications(SpecificationsT &&value)
void SetStatus(DeploymentStatus value)
const Aws::String & GetPatternName() const
const Aws::Map< Aws::String, Aws::String > & GetSpecifications() const
void SetPatternName(PatternNameT &&value)
DeploymentData & WithWorkloadName(WorkloadNameT &&value)
DeploymentData & WithStatus(DeploymentStatus value)
const Aws::String & GetId() const
DeploymentData & AddSpecifications(SpecificationsKeyT &&key, SpecificationsValueT &&value)
DeploymentData & WithTags(TagsT &&value)
DeploymentData & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetWorkloadName(WorkloadNameT &&value)
AWS_LAUNCHWIZARD_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LAUNCHWIZARD_API DeploymentData(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetModifiedAt() const
const Aws::Utils::DateTime & GetCreatedAt() const
DeploymentData & WithSpecifications(SpecificationsT &&value)
DeploymentData & WithModifiedAt(ModifiedAtT &&value)
const Aws::String & GetDeploymentArn() const
const Aws::String & GetName() const
void SetDeploymentArn(DeploymentArnT &&value)
DeploymentData & WithResourceGroup(ResourceGroupT &&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