AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
CloudFormationTarget.h
Go to the documentation of this file.
1
6#pragma once
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace CodeDeploy
26{
27namespace Model
28{
29
38 {
39 public:
44
45
49 inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; }
50
54 inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
55
59 inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
60
64 inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::move(value); }
65
69 inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); }
70
74 inline CloudFormationTarget& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;}
75
79 inline CloudFormationTarget& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;}
80
84 inline CloudFormationTarget& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;}
85
86
91 inline const Aws::String& GetTargetId() const{ return m_targetId; }
92
97 inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
98
103 inline void SetTargetId(const Aws::String& value) { m_targetIdHasBeenSet = true; m_targetId = value; }
104
109 inline void SetTargetId(Aws::String&& value) { m_targetIdHasBeenSet = true; m_targetId = std::move(value); }
110
115 inline void SetTargetId(const char* value) { m_targetIdHasBeenSet = true; m_targetId.assign(value); }
116
121 inline CloudFormationTarget& WithTargetId(const Aws::String& value) { SetTargetId(value); return *this;}
122
127 inline CloudFormationTarget& WithTargetId(Aws::String&& value) { SetTargetId(std::move(value)); return *this;}
128
133 inline CloudFormationTarget& WithTargetId(const char* value) { SetTargetId(value); return *this;}
134
135
140 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; }
141
146 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
147
152 inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; }
153
158 inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); }
159
165
170 inline CloudFormationTarget& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;}
171
172
177 inline const Aws::Vector<LifecycleEvent>& GetLifecycleEvents() const{ return m_lifecycleEvents; }
178
183 inline bool LifecycleEventsHasBeenSet() const { return m_lifecycleEventsHasBeenSet; }
184
189 inline void SetLifecycleEvents(const Aws::Vector<LifecycleEvent>& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents = value; }
190
195 inline void SetLifecycleEvents(Aws::Vector<LifecycleEvent>&& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents = std::move(value); }
196
202
208
213 inline CloudFormationTarget& AddLifecycleEvents(const LifecycleEvent& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents.push_back(value); return *this; }
214
219 inline CloudFormationTarget& AddLifecycleEvents(LifecycleEvent&& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents.push_back(std::move(value)); return *this; }
220
221
226 inline const TargetStatus& GetStatus() const{ return m_status; }
227
232 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
233
238 inline void SetStatus(const TargetStatus& value) { m_statusHasBeenSet = true; m_status = value; }
239
244 inline void SetStatus(TargetStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
245
250 inline CloudFormationTarget& WithStatus(const TargetStatus& value) { SetStatus(value); return *this;}
251
256 inline CloudFormationTarget& WithStatus(TargetStatus&& value) { SetStatus(std::move(value)); return *this;}
257
258
262 inline const Aws::String& GetResourceType() const{ return m_resourceType; }
263
267 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
268
272 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
273
277 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
278
282 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
283
287 inline CloudFormationTarget& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
288
292 inline CloudFormationTarget& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
293
297 inline CloudFormationTarget& WithResourceType(const char* value) { SetResourceType(value); return *this;}
298
299
304 inline double GetTargetVersionWeight() const{ return m_targetVersionWeight; }
305
310 inline bool TargetVersionWeightHasBeenSet() const { return m_targetVersionWeightHasBeenSet; }
311
316 inline void SetTargetVersionWeight(double value) { m_targetVersionWeightHasBeenSet = true; m_targetVersionWeight = value; }
317
322 inline CloudFormationTarget& WithTargetVersionWeight(double value) { SetTargetVersionWeight(value); return *this;}
323
324 private:
325
326 Aws::String m_deploymentId;
327 bool m_deploymentIdHasBeenSet = false;
328
329 Aws::String m_targetId;
330 bool m_targetIdHasBeenSet = false;
331
332 Aws::Utils::DateTime m_lastUpdatedAt;
333 bool m_lastUpdatedAtHasBeenSet = false;
334
335 Aws::Vector<LifecycleEvent> m_lifecycleEvents;
336 bool m_lifecycleEventsHasBeenSet = false;
337
338 TargetStatus m_status;
339 bool m_statusHasBeenSet = false;
340
341 Aws::String m_resourceType;
342 bool m_resourceTypeHasBeenSet = false;
343
344 double m_targetVersionWeight;
345 bool m_targetVersionWeightHasBeenSet = false;
346 };
347
348} // namespace Model
349} // namespace CodeDeploy
350} // namespace Aws
#define AWS_CODEDEPLOY_API
CloudFormationTarget & WithTargetId(const Aws::String &value)
CloudFormationTarget & WithLifecycleEvents(const Aws::Vector< LifecycleEvent > &value)
CloudFormationTarget & WithDeploymentId(const char *value)
CloudFormationTarget & WithResourceType(const char *value)
CloudFormationTarget & WithDeploymentId(const Aws::String &value)
CloudFormationTarget & WithTargetVersionWeight(double value)
CloudFormationTarget & WithLifecycleEvents(Aws::Vector< LifecycleEvent > &&value)
CloudFormationTarget & WithStatus(const TargetStatus &value)
void SetLastUpdatedAt(const Aws::Utils::DateTime &value)
void SetDeploymentId(const Aws::String &value)
AWS_CODEDEPLOY_API CloudFormationTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
CloudFormationTarget & WithLastUpdatedAt(const Aws::Utils::DateTime &value)
CloudFormationTarget & WithStatus(TargetStatus &&value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
CloudFormationTarget & WithLastUpdatedAt(Aws::Utils::DateTime &&value)
CloudFormationTarget & WithResourceType(Aws::String &&value)
CloudFormationTarget & WithTargetId(Aws::String &&value)
AWS_CODEDEPLOY_API CloudFormationTarget(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< LifecycleEvent > & GetLifecycleEvents() const
void SetLifecycleEvents(const Aws::Vector< LifecycleEvent > &value)
void SetLastUpdatedAt(Aws::Utils::DateTime &&value)
CloudFormationTarget & AddLifecycleEvents(LifecycleEvent &&value)
CloudFormationTarget & WithResourceType(const Aws::String &value)
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
CloudFormationTarget & WithDeploymentId(Aws::String &&value)
void SetLifecycleEvents(Aws::Vector< LifecycleEvent > &&value)
void SetResourceType(const Aws::String &value)
CloudFormationTarget & AddLifecycleEvents(const LifecycleEvent &value)
CloudFormationTarget & WithTargetId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector