AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
LambdaTarget.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 LambdaTarget& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;}
75
79 inline LambdaTarget& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;}
80
84 inline LambdaTarget& 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 LambdaTarget& WithTargetId(const Aws::String& value) { SetTargetId(value); return *this;}
122
127 inline LambdaTarget& WithTargetId(Aws::String&& value) { SetTargetId(std::move(value)); return *this;}
128
133 inline LambdaTarget& 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 LambdaTarget& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;}
165
169 inline LambdaTarget& WithTargetArn(Aws::String&& value) { SetTargetArn(std::move(value)); return *this;}
170
174 inline LambdaTarget& 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 LambdaTarget& WithStatus(const TargetStatus& value) { SetStatus(value); return *this;}
201
205 inline LambdaTarget& WithStatus(TargetStatus&& value) { SetStatus(std::move(value)); return *this;}
206
207
212 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; }
213
218 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
219
224 inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; }
225
230 inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); }
231
236 inline LambdaTarget& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;}
237
242 inline LambdaTarget& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;}
243
244
248 inline const Aws::Vector<LifecycleEvent>& GetLifecycleEvents() const{ return m_lifecycleEvents; }
249
253 inline bool LifecycleEventsHasBeenSet() const { return m_lifecycleEventsHasBeenSet; }
254
258 inline void SetLifecycleEvents(const Aws::Vector<LifecycleEvent>& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents = value; }
259
263 inline void SetLifecycleEvents(Aws::Vector<LifecycleEvent>&& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents = std::move(value); }
264
269
273 inline LambdaTarget& WithLifecycleEvents(Aws::Vector<LifecycleEvent>&& value) { SetLifecycleEvents(std::move(value)); return *this;}
274
278 inline LambdaTarget& AddLifecycleEvents(const LifecycleEvent& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents.push_back(value); return *this; }
279
283 inline LambdaTarget& AddLifecycleEvents(LifecycleEvent&& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents.push_back(std::move(value)); return *this; }
284
285
290 inline const LambdaFunctionInfo& GetLambdaFunctionInfo() const{ return m_lambdaFunctionInfo; }
291
296 inline bool LambdaFunctionInfoHasBeenSet() const { return m_lambdaFunctionInfoHasBeenSet; }
297
302 inline void SetLambdaFunctionInfo(const LambdaFunctionInfo& value) { m_lambdaFunctionInfoHasBeenSet = true; m_lambdaFunctionInfo = value; }
303
308 inline void SetLambdaFunctionInfo(LambdaFunctionInfo&& value) { m_lambdaFunctionInfoHasBeenSet = true; m_lambdaFunctionInfo = std::move(value); }
309
315
320 inline LambdaTarget& WithLambdaFunctionInfo(LambdaFunctionInfo&& value) { SetLambdaFunctionInfo(std::move(value)); return *this;}
321
322 private:
323
324 Aws::String m_deploymentId;
325 bool m_deploymentIdHasBeenSet = false;
326
327 Aws::String m_targetId;
328 bool m_targetIdHasBeenSet = false;
329
330 Aws::String m_targetArn;
331 bool m_targetArnHasBeenSet = false;
332
333 TargetStatus m_status;
334 bool m_statusHasBeenSet = false;
335
336 Aws::Utils::DateTime m_lastUpdatedAt;
337 bool m_lastUpdatedAtHasBeenSet = false;
338
339 Aws::Vector<LifecycleEvent> m_lifecycleEvents;
340 bool m_lifecycleEventsHasBeenSet = false;
341
342 LambdaFunctionInfo m_lambdaFunctionInfo;
343 bool m_lambdaFunctionInfoHasBeenSet = false;
344 };
345
346} // namespace Model
347} // namespace CodeDeploy
348} // namespace Aws
#define AWS_CODEDEPLOY_API
void SetStatus(const TargetStatus &value)
Definition: LambdaTarget.h:190
void SetTargetArn(const Aws::String &value)
Definition: LambdaTarget.h:149
const Aws::Vector< LifecycleEvent > & GetLifecycleEvents() const
Definition: LambdaTarget.h:248
LambdaTarget & WithTargetId(const Aws::String &value)
Definition: LambdaTarget.h:121
void SetTargetId(Aws::String &&value)
Definition: LambdaTarget.h:109
const TargetStatus & GetStatus() const
Definition: LambdaTarget.h:180
void SetDeploymentId(Aws::String &&value)
Definition: LambdaTarget.h:64
AWS_CODEDEPLOY_API LambdaTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
LambdaTarget & AddLifecycleEvents(const LifecycleEvent &value)
Definition: LambdaTarget.h:278
LambdaTarget & WithLifecycleEvents(const Aws::Vector< LifecycleEvent > &value)
Definition: LambdaTarget.h:268
LambdaTarget & WithLambdaFunctionInfo(LambdaFunctionInfo &&value)
Definition: LambdaTarget.h:320
const Aws::String & GetDeploymentId() const
Definition: LambdaTarget.h:49
LambdaTarget & WithLastUpdatedAt(const Aws::Utils::DateTime &value)
Definition: LambdaTarget.h:236
LambdaTarget & WithLifecycleEvents(Aws::Vector< LifecycleEvent > &&value)
Definition: LambdaTarget.h:273
LambdaTarget & WithTargetArn(const Aws::String &value)
Definition: LambdaTarget.h:164
void SetLambdaFunctionInfo(LambdaFunctionInfo &&value)
Definition: LambdaTarget.h:308
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTargetId(const Aws::String &value)
Definition: LambdaTarget.h:103
LambdaTarget & WithTargetArn(const char *value)
Definition: LambdaTarget.h:174
void SetDeploymentId(const Aws::String &value)
Definition: LambdaTarget.h:59
void SetDeploymentId(const char *value)
Definition: LambdaTarget.h:69
const Aws::String & GetTargetId() const
Definition: LambdaTarget.h:91
LambdaTarget & WithStatus(TargetStatus &&value)
Definition: LambdaTarget.h:205
LambdaTarget & WithTargetId(const char *value)
Definition: LambdaTarget.h:133
void SetTargetId(const char *value)
Definition: LambdaTarget.h:115
void SetLifecycleEvents(Aws::Vector< LifecycleEvent > &&value)
Definition: LambdaTarget.h:263
void SetLifecycleEvents(const Aws::Vector< LifecycleEvent > &value)
Definition: LambdaTarget.h:258
void SetLastUpdatedAt(Aws::Utils::DateTime &&value)
Definition: LambdaTarget.h:230
void SetTargetArn(const char *value)
Definition: LambdaTarget.h:159
void SetLambdaFunctionInfo(const LambdaFunctionInfo &value)
Definition: LambdaTarget.h:302
const Aws::String & GetTargetArn() const
Definition: LambdaTarget.h:139
void SetLastUpdatedAt(const Aws::Utils::DateTime &value)
Definition: LambdaTarget.h:224
LambdaTarget & WithLastUpdatedAt(Aws::Utils::DateTime &&value)
Definition: LambdaTarget.h:242
const Aws::Utils::DateTime & GetLastUpdatedAt() const
Definition: LambdaTarget.h:212
LambdaTarget & WithLambdaFunctionInfo(const LambdaFunctionInfo &value)
Definition: LambdaTarget.h:314
LambdaTarget & WithStatus(const TargetStatus &value)
Definition: LambdaTarget.h:200
LambdaTarget & WithTargetId(Aws::String &&value)
Definition: LambdaTarget.h:127
void SetTargetArn(Aws::String &&value)
Definition: LambdaTarget.h:154
void SetStatus(TargetStatus &&value)
Definition: LambdaTarget.h:195
AWS_CODEDEPLOY_API LambdaTarget(Aws::Utils::Json::JsonView jsonValue)
const LambdaFunctionInfo & GetLambdaFunctionInfo() const
Definition: LambdaTarget.h:290
LambdaTarget & WithDeploymentId(Aws::String &&value)
Definition: LambdaTarget.h:79
LambdaTarget & WithDeploymentId(const char *value)
Definition: LambdaTarget.h:84
LambdaTarget & AddLifecycleEvents(LifecycleEvent &&value)
Definition: LambdaTarget.h:283
LambdaTarget & WithDeploymentId(const Aws::String &value)
Definition: LambdaTarget.h:74
LambdaTarget & WithTargetArn(Aws::String &&value)
Definition: LambdaTarget.h:169
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector