AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ECSTarget.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/codedeploy/model/ECSTaskSet.h>
9#include <aws/codedeploy/model/LifecycleEvent.h>
10#include <aws/codedeploy/model/TargetStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CodeDeploy {
25namespace Model {
26
33class ECSTarget {
34 public:
35 AWS_CODEDEPLOY_API ECSTarget() = default;
36 AWS_CODEDEPLOY_API ECSTarget(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CODEDEPLOY_API ECSTarget& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetDeploymentId() const { return m_deploymentId; }
45 inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
46 template <typename DeploymentIdT = Aws::String>
47 void SetDeploymentId(DeploymentIdT&& value) {
48 m_deploymentIdHasBeenSet = true;
49 m_deploymentId = std::forward<DeploymentIdT>(value);
50 }
51 template <typename DeploymentIdT = Aws::String>
52 ECSTarget& WithDeploymentId(DeploymentIdT&& value) {
53 SetDeploymentId(std::forward<DeploymentIdT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetTargetId() const { return m_targetId; }
64 inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
65 template <typename TargetIdT = Aws::String>
66 void SetTargetId(TargetIdT&& value) {
67 m_targetIdHasBeenSet = true;
68 m_targetId = std::forward<TargetIdT>(value);
69 }
70 template <typename TargetIdT = Aws::String>
71 ECSTarget& WithTargetId(TargetIdT&& value) {
72 SetTargetId(std::forward<TargetIdT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetTargetArn() const { return m_targetArn; }
82 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
83 template <typename TargetArnT = Aws::String>
84 void SetTargetArn(TargetArnT&& value) {
85 m_targetArnHasBeenSet = true;
86 m_targetArn = std::forward<TargetArnT>(value);
87 }
88 template <typename TargetArnT = Aws::String>
89 ECSTarget& WithTargetArn(TargetArnT&& value) {
90 SetTargetArn(std::forward<TargetArnT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
101 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
102 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
103 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
104 m_lastUpdatedAtHasBeenSet = true;
105 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
106 }
107 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
108 ECSTarget& WithLastUpdatedAt(LastUpdatedAtT&& value) {
109 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
110 return *this;
111 }
113
115
119 inline const Aws::Vector<LifecycleEvent>& GetLifecycleEvents() const { return m_lifecycleEvents; }
120 inline bool LifecycleEventsHasBeenSet() const { return m_lifecycleEventsHasBeenSet; }
121 template <typename LifecycleEventsT = Aws::Vector<LifecycleEvent>>
122 void SetLifecycleEvents(LifecycleEventsT&& value) {
123 m_lifecycleEventsHasBeenSet = true;
124 m_lifecycleEvents = std::forward<LifecycleEventsT>(value);
125 }
126 template <typename LifecycleEventsT = Aws::Vector<LifecycleEvent>>
127 ECSTarget& WithLifecycleEvents(LifecycleEventsT&& value) {
128 SetLifecycleEvents(std::forward<LifecycleEventsT>(value));
129 return *this;
130 }
131 template <typename LifecycleEventsT = LifecycleEvent>
132 ECSTarget& AddLifecycleEvents(LifecycleEventsT&& value) {
133 m_lifecycleEventsHasBeenSet = true;
134 m_lifecycleEvents.emplace_back(std::forward<LifecycleEventsT>(value));
135 return *this;
136 }
138
140
143 inline TargetStatus GetStatus() const { return m_status; }
144 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
145 inline void SetStatus(TargetStatus value) {
146 m_statusHasBeenSet = true;
147 m_status = value;
148 }
150 SetStatus(value);
151 return *this;
152 }
154
156
159 inline const Aws::Vector<ECSTaskSet>& GetTaskSetsInfo() const { return m_taskSetsInfo; }
160 inline bool TaskSetsInfoHasBeenSet() const { return m_taskSetsInfoHasBeenSet; }
161 template <typename TaskSetsInfoT = Aws::Vector<ECSTaskSet>>
162 void SetTaskSetsInfo(TaskSetsInfoT&& value) {
163 m_taskSetsInfoHasBeenSet = true;
164 m_taskSetsInfo = std::forward<TaskSetsInfoT>(value);
165 }
166 template <typename TaskSetsInfoT = Aws::Vector<ECSTaskSet>>
167 ECSTarget& WithTaskSetsInfo(TaskSetsInfoT&& value) {
168 SetTaskSetsInfo(std::forward<TaskSetsInfoT>(value));
169 return *this;
170 }
171 template <typename TaskSetsInfoT = ECSTaskSet>
172 ECSTarget& AddTaskSetsInfo(TaskSetsInfoT&& value) {
173 m_taskSetsInfoHasBeenSet = true;
174 m_taskSetsInfo.emplace_back(std::forward<TaskSetsInfoT>(value));
175 return *this;
176 }
178 private:
179 Aws::String m_deploymentId;
180
181 Aws::String m_targetId;
182
183 Aws::String m_targetArn;
184
185 Aws::Utils::DateTime m_lastUpdatedAt{};
186
187 Aws::Vector<LifecycleEvent> m_lifecycleEvents;
188
190
191 Aws::Vector<ECSTaskSet> m_taskSetsInfo;
192 bool m_deploymentIdHasBeenSet = false;
193 bool m_targetIdHasBeenSet = false;
194 bool m_targetArnHasBeenSet = false;
195 bool m_lastUpdatedAtHasBeenSet = false;
196 bool m_lifecycleEventsHasBeenSet = false;
197 bool m_statusHasBeenSet = false;
198 bool m_taskSetsInfoHasBeenSet = false;
199};
200
201} // namespace Model
202} // namespace CodeDeploy
203} // namespace Aws
TargetStatus GetStatus() const
Definition ECSTarget.h:143
void SetStatus(TargetStatus value)
Definition ECSTarget.h:145
AWS_CODEDEPLOY_API ECSTarget(Aws::Utils::Json::JsonView jsonValue)
ECSTarget & WithLifecycleEvents(LifecycleEventsT &&value)
Definition ECSTarget.h:127
const Aws::Vector< ECSTaskSet > & GetTaskSetsInfo() const
Definition ECSTarget.h:159
ECSTarget & WithTargetArn(TargetArnT &&value)
Definition ECSTarget.h:89
ECSTarget & WithDeploymentId(DeploymentIdT &&value)
Definition ECSTarget.h:52
const Aws::String & GetTargetArn() const
Definition ECSTarget.h:81
ECSTarget & AddLifecycleEvents(LifecycleEventsT &&value)
Definition ECSTarget.h:132
AWS_CODEDEPLOY_API ECSTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTargetId(TargetIdT &&value)
Definition ECSTarget.h:66
void SetLifecycleEvents(LifecycleEventsT &&value)
Definition ECSTarget.h:122
ECSTarget & AddTaskSetsInfo(TaskSetsInfoT &&value)
Definition ECSTarget.h:172
ECSTarget & WithStatus(TargetStatus value)
Definition ECSTarget.h:149
void SetTargetArn(TargetArnT &&value)
Definition ECSTarget.h:84
void SetDeploymentId(DeploymentIdT &&value)
Definition ECSTarget.h:47
ECSTarget & WithLastUpdatedAt(LastUpdatedAtT &&value)
Definition ECSTarget.h:108
const Aws::String & GetTargetId() const
Definition ECSTarget.h:63
AWS_CODEDEPLOY_API ECSTarget()=default
void SetTaskSetsInfo(TaskSetsInfoT &&value)
Definition ECSTarget.h:162
ECSTarget & WithTaskSetsInfo(TaskSetsInfoT &&value)
Definition ECSTarget.h:167
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< LifecycleEvent > & GetLifecycleEvents() const
Definition ECSTarget.h:119
const Aws::String & GetDeploymentId() const
Definition ECSTarget.h:44
void SetLastUpdatedAt(LastUpdatedAtT &&value)
Definition ECSTarget.h:103
const Aws::Utils::DateTime & GetLastUpdatedAt() const
Definition ECSTarget.h:100
ECSTarget & WithTargetId(TargetIdT &&value)
Definition ECSTarget.h:71
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue