AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
InstanceTarget.h
Go to the documentation of this file.
1
6#pragma once
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace CodeDeploy
27{
28namespace Model
29{
30
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 InstanceTarget& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;}
75
79 inline InstanceTarget& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;}
80
84 inline InstanceTarget& 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 InstanceTarget& WithTargetId(const Aws::String& value) { SetTargetId(value); return *this;}
122
127 inline InstanceTarget& WithTargetId(Aws::String&& value) { SetTargetId(std::move(value)); return *this;}
128
133 inline InstanceTarget& WithTargetId(const char* value) { SetTargetId(value); return *this;}
134
135
139 inline const Aws::String& GetTargetArn() const{ return m_targetArn; }
140
144 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
145
149 inline void SetTargetArn(const Aws::String& value) { m_targetArnHasBeenSet = true; m_targetArn = value; }
150
154 inline void SetTargetArn(Aws::String&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::move(value); }
155
159 inline void SetTargetArn(const char* value) { m_targetArnHasBeenSet = true; m_targetArn.assign(value); }
160
164 inline InstanceTarget& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;}
165
169 inline InstanceTarget& WithTargetArn(Aws::String&& value) { SetTargetArn(std::move(value)); return *this;}
170
174 inline InstanceTarget& WithTargetArn(const char* value) { SetTargetArn(value); return *this;}
175
176
180 inline const TargetStatus& GetStatus() const{ return m_status; }
181
185 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
186
190 inline void SetStatus(const TargetStatus& value) { m_statusHasBeenSet = true; m_status = value; }
191
195 inline void SetStatus(TargetStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
196
200 inline InstanceTarget& WithStatus(const TargetStatus& value) { SetStatus(value); return *this;}
201
205 inline InstanceTarget& WithStatus(TargetStatus&& value) { SetStatus(std::move(value)); return *this;}
206
207
211 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; }
212
216 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
217
221 inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; }
222
226 inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); }
227
231 inline InstanceTarget& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;}
232
236 inline InstanceTarget& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;}
237
238
242 inline const Aws::Vector<LifecycleEvent>& GetLifecycleEvents() const{ return m_lifecycleEvents; }
243
247 inline bool LifecycleEventsHasBeenSet() const { return m_lifecycleEventsHasBeenSet; }
248
252 inline void SetLifecycleEvents(const Aws::Vector<LifecycleEvent>& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents = value; }
253
257 inline void SetLifecycleEvents(Aws::Vector<LifecycleEvent>&& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents = std::move(value); }
258
263
267 inline InstanceTarget& WithLifecycleEvents(Aws::Vector<LifecycleEvent>&& value) { SetLifecycleEvents(std::move(value)); return *this;}
268
272 inline InstanceTarget& AddLifecycleEvents(const LifecycleEvent& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents.push_back(value); return *this; }
273
277 inline InstanceTarget& AddLifecycleEvents(LifecycleEvent&& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents.push_back(std::move(value)); return *this; }
278
279
284 inline const TargetLabel& GetInstanceLabel() const{ return m_instanceLabel; }
285
290 inline bool InstanceLabelHasBeenSet() const { return m_instanceLabelHasBeenSet; }
291
296 inline void SetInstanceLabel(const TargetLabel& value) { m_instanceLabelHasBeenSet = true; m_instanceLabel = value; }
297
302 inline void SetInstanceLabel(TargetLabel&& value) { m_instanceLabelHasBeenSet = true; m_instanceLabel = std::move(value); }
303
308 inline InstanceTarget& WithInstanceLabel(const TargetLabel& value) { SetInstanceLabel(value); return *this;}
309
314 inline InstanceTarget& WithInstanceLabel(TargetLabel&& value) { SetInstanceLabel(std::move(value)); return *this;}
315
316 private:
317
318 Aws::String m_deploymentId;
319 bool m_deploymentIdHasBeenSet = false;
320
321 Aws::String m_targetId;
322 bool m_targetIdHasBeenSet = false;
323
324 Aws::String m_targetArn;
325 bool m_targetArnHasBeenSet = false;
326
327 TargetStatus m_status;
328 bool m_statusHasBeenSet = false;
329
330 Aws::Utils::DateTime m_lastUpdatedAt;
331 bool m_lastUpdatedAtHasBeenSet = false;
332
333 Aws::Vector<LifecycleEvent> m_lifecycleEvents;
334 bool m_lifecycleEventsHasBeenSet = false;
335
336 TargetLabel m_instanceLabel;
337 bool m_instanceLabelHasBeenSet = false;
338 };
339
340} // namespace Model
341} // namespace CodeDeploy
342} // namespace Aws
#define AWS_CODEDEPLOY_API
void SetTargetId(const Aws::String &value)
void SetLastUpdatedAt(const Aws::Utils::DateTime &value)
void SetLifecycleEvents(const Aws::Vector< LifecycleEvent > &value)
void SetDeploymentId(const Aws::String &value)
void SetDeploymentId(const char *value)
InstanceTarget & WithTargetId(const char *value)
void SetInstanceLabel(TargetLabel &&value)
const TargetStatus & GetStatus() const
AWS_CODEDEPLOY_API InstanceTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTargetId(Aws::String &&value)
InstanceTarget & WithLifecycleEvents(const Aws::Vector< LifecycleEvent > &value)
InstanceTarget & AddLifecycleEvents(const LifecycleEvent &value)
InstanceTarget & WithTargetArn(const char *value)
const Aws::String & GetTargetId() const
InstanceTarget & WithLifecycleEvents(Aws::Vector< LifecycleEvent > &&value)
AWS_CODEDEPLOY_API InstanceTarget(Aws::Utils::Json::JsonView jsonValue)
InstanceTarget & WithDeploymentId(const Aws::String &value)
const TargetLabel & GetInstanceLabel() const
InstanceTarget & WithTargetId(const Aws::String &value)
const Aws::Vector< LifecycleEvent > & GetLifecycleEvents() const
InstanceTarget & WithLastUpdatedAt(const Aws::Utils::DateTime &value)
InstanceTarget & WithInstanceLabel(TargetLabel &&value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
InstanceTarget & WithStatus(TargetStatus &&value)
InstanceTarget & WithLastUpdatedAt(Aws::Utils::DateTime &&value)
InstanceTarget & WithTargetArn(const Aws::String &value)
InstanceTarget & WithTargetArn(Aws::String &&value)
void SetStatus(TargetStatus &&value)
InstanceTarget & WithInstanceLabel(const TargetLabel &value)
void SetTargetArn(const char *value)
InstanceTarget & WithDeploymentId(const char *value)
const Aws::String & GetDeploymentId() const
void SetTargetArn(Aws::String &&value)
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
InstanceTarget & WithStatus(const TargetStatus &value)
void SetStatus(const TargetStatus &value)
void SetTargetArn(const Aws::String &value)
InstanceTarget & AddLifecycleEvents(LifecycleEvent &&value)
InstanceTarget & WithDeploymentId(Aws::String &&value)
void SetDeploymentId(Aws::String &&value)
void SetLifecycleEvents(Aws::Vector< LifecycleEvent > &&value)
void SetLastUpdatedAt(Aws::Utils::DateTime &&value)
void SetInstanceLabel(const TargetLabel &value)
const Aws::String & GetTargetArn() const
InstanceTarget & WithTargetId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector