AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LambdaTarget.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codedeploy/model/TargetStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/codedeploy/model/LambdaFunctionInfo.h>
13#include <aws/codedeploy/model/LifecycleEvent.h>
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:
40 AWS_CODEDEPLOY_API LambdaTarget() = default;
41 AWS_CODEDEPLOY_API LambdaTarget(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CODEDEPLOY_API LambdaTarget& operator=(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 template<typename DeploymentIdT = Aws::String>
53 void SetDeploymentId(DeploymentIdT&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::forward<DeploymentIdT>(value); }
54 template<typename DeploymentIdT = Aws::String>
55 LambdaTarget& WithDeploymentId(DeploymentIdT&& value) { SetDeploymentId(std::forward<DeploymentIdT>(value)); return *this;}
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) { m_targetIdHasBeenSet = true; m_targetId = std::forward<TargetIdT>(value); }
67 template<typename TargetIdT = Aws::String>
68 LambdaTarget& WithTargetId(TargetIdT&& value) { SetTargetId(std::forward<TargetIdT>(value)); return *this;}
70
72
75 inline const Aws::String& GetTargetArn() const { return m_targetArn; }
76 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
77 template<typename TargetArnT = Aws::String>
78 void SetTargetArn(TargetArnT&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::forward<TargetArnT>(value); }
79 template<typename TargetArnT = Aws::String>
80 LambdaTarget& WithTargetArn(TargetArnT&& value) { SetTargetArn(std::forward<TargetArnT>(value)); return *this;}
82
84
87 inline TargetStatus GetStatus() const { return m_status; }
88 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
89 inline void SetStatus(TargetStatus value) { m_statusHasBeenSet = true; m_status = value; }
90 inline LambdaTarget& WithStatus(TargetStatus value) { SetStatus(value); return *this;}
92
94
98 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
99 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
100 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
101 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
102 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
103 LambdaTarget& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
105
107
110 inline const Aws::Vector<LifecycleEvent>& GetLifecycleEvents() const { return m_lifecycleEvents; }
111 inline bool LifecycleEventsHasBeenSet() const { return m_lifecycleEventsHasBeenSet; }
112 template<typename LifecycleEventsT = Aws::Vector<LifecycleEvent>>
113 void SetLifecycleEvents(LifecycleEventsT&& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents = std::forward<LifecycleEventsT>(value); }
114 template<typename LifecycleEventsT = Aws::Vector<LifecycleEvent>>
115 LambdaTarget& WithLifecycleEvents(LifecycleEventsT&& value) { SetLifecycleEvents(std::forward<LifecycleEventsT>(value)); return *this;}
116 template<typename LifecycleEventsT = LifecycleEvent>
117 LambdaTarget& AddLifecycleEvents(LifecycleEventsT&& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents.emplace_back(std::forward<LifecycleEventsT>(value)); return *this; }
119
121
125 inline const LambdaFunctionInfo& GetLambdaFunctionInfo() const { return m_lambdaFunctionInfo; }
126 inline bool LambdaFunctionInfoHasBeenSet() const { return m_lambdaFunctionInfoHasBeenSet; }
127 template<typename LambdaFunctionInfoT = LambdaFunctionInfo>
128 void SetLambdaFunctionInfo(LambdaFunctionInfoT&& value) { m_lambdaFunctionInfoHasBeenSet = true; m_lambdaFunctionInfo = std::forward<LambdaFunctionInfoT>(value); }
129 template<typename LambdaFunctionInfoT = LambdaFunctionInfo>
130 LambdaTarget& WithLambdaFunctionInfo(LambdaFunctionInfoT&& value) { SetLambdaFunctionInfo(std::forward<LambdaFunctionInfoT>(value)); return *this;}
132 private:
133
134 Aws::String m_deploymentId;
135 bool m_deploymentIdHasBeenSet = false;
136
137 Aws::String m_targetId;
138 bool m_targetIdHasBeenSet = false;
139
140 Aws::String m_targetArn;
141 bool m_targetArnHasBeenSet = false;
142
144 bool m_statusHasBeenSet = false;
145
146 Aws::Utils::DateTime m_lastUpdatedAt{};
147 bool m_lastUpdatedAtHasBeenSet = false;
148
149 Aws::Vector<LifecycleEvent> m_lifecycleEvents;
150 bool m_lifecycleEventsHasBeenSet = false;
151
152 LambdaFunctionInfo m_lambdaFunctionInfo;
153 bool m_lambdaFunctionInfoHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace CodeDeploy
158} // 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