AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CloudFormationTarget.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/codedeploy/model/TargetStatus.h>
12#include <aws/codedeploy/model/LifecycleEvent.h>
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:
40 AWS_CODEDEPLOY_API CloudFormationTarget();
41 AWS_CODEDEPLOY_API CloudFormationTarget(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; }
51 inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
52 inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
53 inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::move(value); }
54 inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); }
55 inline CloudFormationTarget& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;}
56 inline CloudFormationTarget& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;}
57 inline CloudFormationTarget& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;}
59
61
65 inline const Aws::String& GetTargetId() const{ return m_targetId; }
66 inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
67 inline void SetTargetId(const Aws::String& value) { m_targetIdHasBeenSet = true; m_targetId = value; }
68 inline void SetTargetId(Aws::String&& value) { m_targetIdHasBeenSet = true; m_targetId = std::move(value); }
69 inline void SetTargetId(const char* value) { m_targetIdHasBeenSet = true; m_targetId.assign(value); }
70 inline CloudFormationTarget& WithTargetId(const Aws::String& value) { SetTargetId(value); return *this;}
71 inline CloudFormationTarget& WithTargetId(Aws::String&& value) { SetTargetId(std::move(value)); return *this;}
72 inline CloudFormationTarget& WithTargetId(const char* value) { SetTargetId(value); return *this;}
74
76
80 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; }
81 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
82 inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; }
83 inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); }
84 inline CloudFormationTarget& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;}
85 inline CloudFormationTarget& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;}
87
89
93 inline const Aws::Vector<LifecycleEvent>& GetLifecycleEvents() const{ return m_lifecycleEvents; }
94 inline bool LifecycleEventsHasBeenSet() const { return m_lifecycleEventsHasBeenSet; }
95 inline void SetLifecycleEvents(const Aws::Vector<LifecycleEvent>& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents = value; }
96 inline void SetLifecycleEvents(Aws::Vector<LifecycleEvent>&& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents = std::move(value); }
99 inline CloudFormationTarget& AddLifecycleEvents(const LifecycleEvent& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents.push_back(value); return *this; }
100 inline CloudFormationTarget& AddLifecycleEvents(LifecycleEvent&& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents.push_back(std::move(value)); return *this; }
102
104
108 inline const TargetStatus& GetStatus() const{ return m_status; }
109 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
110 inline void SetStatus(const TargetStatus& value) { m_statusHasBeenSet = true; m_status = value; }
111 inline void SetStatus(TargetStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
112 inline CloudFormationTarget& WithStatus(const TargetStatus& value) { SetStatus(value); return *this;}
113 inline CloudFormationTarget& WithStatus(TargetStatus&& value) { SetStatus(std::move(value)); return *this;}
115
117
120 inline const Aws::String& GetResourceType() const{ return m_resourceType; }
121 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
122 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
123 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
124 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
125 inline CloudFormationTarget& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
126 inline CloudFormationTarget& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
127 inline CloudFormationTarget& WithResourceType(const char* value) { SetResourceType(value); return *this;}
129
131
135 inline double GetTargetVersionWeight() const{ return m_targetVersionWeight; }
136 inline bool TargetVersionWeightHasBeenSet() const { return m_targetVersionWeightHasBeenSet; }
137 inline void SetTargetVersionWeight(double value) { m_targetVersionWeightHasBeenSet = true; m_targetVersionWeight = value; }
138 inline CloudFormationTarget& WithTargetVersionWeight(double value) { SetTargetVersionWeight(value); return *this;}
140 private:
141
142 Aws::String m_deploymentId;
143 bool m_deploymentIdHasBeenSet = false;
144
145 Aws::String m_targetId;
146 bool m_targetIdHasBeenSet = false;
147
148 Aws::Utils::DateTime m_lastUpdatedAt;
149 bool m_lastUpdatedAtHasBeenSet = false;
150
151 Aws::Vector<LifecycleEvent> m_lifecycleEvents;
152 bool m_lifecycleEventsHasBeenSet = false;
153
154 TargetStatus m_status;
155 bool m_statusHasBeenSet = false;
156
157 Aws::String m_resourceType;
158 bool m_resourceTypeHasBeenSet = false;
159
160 double m_targetVersionWeight;
161 bool m_targetVersionWeightHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace CodeDeploy
166} // namespace Aws
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)
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)
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
Aws::Utils::Json::JsonValue JsonValue