AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
LambdaTarget.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/codedeploy/model/LambdaFunctionInfo.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
34 public:
35 AWS_CODEDEPLOY_API LambdaTarget() = default;
36 AWS_CODEDEPLOY_API LambdaTarget(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CODEDEPLOY_API LambdaTarget& 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 LambdaTarget& 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 LambdaTarget& 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 LambdaTarget& WithTargetArn(TargetArnT&& value) {
90 SetTargetArn(std::forward<TargetArnT>(value));
91 return *this;
92 }
94
96
99 inline TargetStatus GetStatus() const { return m_status; }
100 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
101 inline void SetStatus(TargetStatus value) {
102 m_statusHasBeenSet = true;
103 m_status = value;
104 }
106 SetStatus(value);
107 return *this;
108 }
110
112
116 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
117 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
118 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
119 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
120 m_lastUpdatedAtHasBeenSet = true;
121 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
122 }
123 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
124 LambdaTarget& WithLastUpdatedAt(LastUpdatedAtT&& value) {
125 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::Vector<LifecycleEvent>& GetLifecycleEvents() const { return m_lifecycleEvents; }
135 inline bool LifecycleEventsHasBeenSet() const { return m_lifecycleEventsHasBeenSet; }
136 template <typename LifecycleEventsT = Aws::Vector<LifecycleEvent>>
137 void SetLifecycleEvents(LifecycleEventsT&& value) {
138 m_lifecycleEventsHasBeenSet = true;
139 m_lifecycleEvents = std::forward<LifecycleEventsT>(value);
140 }
141 template <typename LifecycleEventsT = Aws::Vector<LifecycleEvent>>
142 LambdaTarget& WithLifecycleEvents(LifecycleEventsT&& value) {
143 SetLifecycleEvents(std::forward<LifecycleEventsT>(value));
144 return *this;
145 }
146 template <typename LifecycleEventsT = LifecycleEvent>
147 LambdaTarget& AddLifecycleEvents(LifecycleEventsT&& value) {
148 m_lifecycleEventsHasBeenSet = true;
149 m_lifecycleEvents.emplace_back(std::forward<LifecycleEventsT>(value));
150 return *this;
151 }
153
155
159 inline const LambdaFunctionInfo& GetLambdaFunctionInfo() const { return m_lambdaFunctionInfo; }
160 inline bool LambdaFunctionInfoHasBeenSet() const { return m_lambdaFunctionInfoHasBeenSet; }
161 template <typename LambdaFunctionInfoT = LambdaFunctionInfo>
162 void SetLambdaFunctionInfo(LambdaFunctionInfoT&& value) {
163 m_lambdaFunctionInfoHasBeenSet = true;
164 m_lambdaFunctionInfo = std::forward<LambdaFunctionInfoT>(value);
165 }
166 template <typename LambdaFunctionInfoT = LambdaFunctionInfo>
167 LambdaTarget& WithLambdaFunctionInfo(LambdaFunctionInfoT&& value) {
168 SetLambdaFunctionInfo(std::forward<LambdaFunctionInfoT>(value));
169 return *this;
170 }
172 private:
173 Aws::String m_deploymentId;
174
175 Aws::String m_targetId;
176
177 Aws::String m_targetArn;
178
180
181 Aws::Utils::DateTime m_lastUpdatedAt{};
182
183 Aws::Vector<LifecycleEvent> m_lifecycleEvents;
184
185 LambdaFunctionInfo m_lambdaFunctionInfo;
186 bool m_deploymentIdHasBeenSet = false;
187 bool m_targetIdHasBeenSet = false;
188 bool m_targetArnHasBeenSet = false;
189 bool m_statusHasBeenSet = false;
190 bool m_lastUpdatedAtHasBeenSet = false;
191 bool m_lifecycleEventsHasBeenSet = false;
192 bool m_lambdaFunctionInfoHasBeenSet = false;
193};
194
195} // namespace Model
196} // namespace CodeDeploy
197} // namespace Aws
const Aws::Vector< LifecycleEvent > & GetLifecycleEvents() const
LambdaTarget & WithLastUpdatedAt(LastUpdatedAtT &&value)
LambdaTarget & WithDeploymentId(DeploymentIdT &&value)
AWS_CODEDEPLOY_API LambdaTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLastUpdatedAt(LastUpdatedAtT &&value)
const Aws::String & GetDeploymentId() const
void SetDeploymentId(DeploymentIdT &&value)
void SetLambdaFunctionInfo(LambdaFunctionInfoT &&value)
void SetTargetArn(TargetArnT &&value)
void SetStatus(TargetStatus value)
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
LambdaTarget & AddLifecycleEvents(LifecycleEventsT &&value)
LambdaTarget & WithTargetArn(TargetArnT &&value)
const Aws::String & GetTargetId() const
LambdaTarget & WithLambdaFunctionInfo(LambdaFunctionInfoT &&value)
LambdaTarget & WithLifecycleEvents(LifecycleEventsT &&value)
const Aws::String & GetTargetArn() const
const Aws::Utils::DateTime & GetLastUpdatedAt() const
LambdaTarget & WithStatus(TargetStatus value)
AWS_CODEDEPLOY_API LambdaTarget(Aws::Utils::Json::JsonView jsonValue)
void SetLifecycleEvents(LifecycleEventsT &&value)
const LambdaFunctionInfo & GetLambdaFunctionInfo() const
void SetTargetId(TargetIdT &&value)
LambdaTarget & WithTargetId(TargetIdT &&value)
AWS_CODEDEPLOY_API LambdaTarget()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue