AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
53 inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::move(value); }
54 inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); }
55 inline LambdaTarget& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;}
56 inline LambdaTarget& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;}
57 inline LambdaTarget& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;}
59
61
65 inline const Aws::String& GetTargetId() const{ return m_targetId; }
66 inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
67 inline void SetTargetId(const Aws::String& value) { m_targetIdHasBeenSet = true; m_targetId = value; }
68 inline void SetTargetId(Aws::String&& value) { m_targetIdHasBeenSet = true; m_targetId = std::move(value); }
69 inline void SetTargetId(const char* value) { m_targetIdHasBeenSet = true; m_targetId.assign(value); }
70 inline LambdaTarget& WithTargetId(const Aws::String& value) { SetTargetId(value); return *this;}
71 inline LambdaTarget& WithTargetId(Aws::String&& value) { SetTargetId(std::move(value)); return *this;}
72 inline LambdaTarget& WithTargetId(const char* value) { SetTargetId(value); return *this;}
74
76
79 inline const Aws::String& GetTargetArn() const{ return m_targetArn; }
80 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
81 inline void SetTargetArn(const Aws::String& value) { m_targetArnHasBeenSet = true; m_targetArn = value; }
82 inline void SetTargetArn(Aws::String&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::move(value); }
83 inline void SetTargetArn(const char* value) { m_targetArnHasBeenSet = true; m_targetArn.assign(value); }
84 inline LambdaTarget& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;}
85 inline LambdaTarget& WithTargetArn(Aws::String&& value) { SetTargetArn(std::move(value)); return *this;}
86 inline LambdaTarget& WithTargetArn(const char* value) { SetTargetArn(value); return *this;}
88
90
93 inline const TargetStatus& GetStatus() const{ return m_status; }
94 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
95 inline void SetStatus(const TargetStatus& value) { m_statusHasBeenSet = true; m_status = value; }
96 inline void SetStatus(TargetStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
97 inline LambdaTarget& WithStatus(const TargetStatus& value) { SetStatus(value); return *this;}
98 inline LambdaTarget& WithStatus(TargetStatus&& value) { SetStatus(std::move(value)); return *this;}
100
102
106 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; }
107 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
108 inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; }
109 inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); }
110 inline LambdaTarget& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;}
111 inline LambdaTarget& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;}
113
115
118 inline const Aws::Vector<LifecycleEvent>& GetLifecycleEvents() const{ return m_lifecycleEvents; }
119 inline bool LifecycleEventsHasBeenSet() const { return m_lifecycleEventsHasBeenSet; }
120 inline void SetLifecycleEvents(const Aws::Vector<LifecycleEvent>& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents = value; }
121 inline void SetLifecycleEvents(Aws::Vector<LifecycleEvent>&& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents = std::move(value); }
123 inline LambdaTarget& WithLifecycleEvents(Aws::Vector<LifecycleEvent>&& value) { SetLifecycleEvents(std::move(value)); return *this;}
124 inline LambdaTarget& AddLifecycleEvents(const LifecycleEvent& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents.push_back(value); return *this; }
125 inline LambdaTarget& AddLifecycleEvents(LifecycleEvent&& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents.push_back(std::move(value)); return *this; }
127
129
133 inline const LambdaFunctionInfo& GetLambdaFunctionInfo() const{ return m_lambdaFunctionInfo; }
134 inline bool LambdaFunctionInfoHasBeenSet() const { return m_lambdaFunctionInfoHasBeenSet; }
135 inline void SetLambdaFunctionInfo(const LambdaFunctionInfo& value) { m_lambdaFunctionInfoHasBeenSet = true; m_lambdaFunctionInfo = value; }
136 inline void SetLambdaFunctionInfo(LambdaFunctionInfo&& value) { m_lambdaFunctionInfoHasBeenSet = true; m_lambdaFunctionInfo = std::move(value); }
138 inline LambdaTarget& WithLambdaFunctionInfo(LambdaFunctionInfo&& value) { SetLambdaFunctionInfo(std::move(value)); return *this;}
140 private:
141
142 Aws::String m_deploymentId;
143 bool m_deploymentIdHasBeenSet = false;
144
145 Aws::String m_targetId;
146 bool m_targetIdHasBeenSet = false;
147
148 Aws::String m_targetArn;
149 bool m_targetArnHasBeenSet = false;
150
151 TargetStatus m_status;
152 bool m_statusHasBeenSet = false;
153
154 Aws::Utils::DateTime m_lastUpdatedAt;
155 bool m_lastUpdatedAtHasBeenSet = false;
156
157 Aws::Vector<LifecycleEvent> m_lifecycleEvents;
158 bool m_lifecycleEventsHasBeenSet = false;
159
160 LambdaFunctionInfo m_lambdaFunctionInfo;
161 bool m_lambdaFunctionInfoHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace CodeDeploy
166} // namespace Aws
void SetStatus(const TargetStatus &value)
void SetTargetArn(const Aws::String &value)
const Aws::Vector< LifecycleEvent > & GetLifecycleEvents() const
LambdaTarget & WithTargetId(const Aws::String &value)
void SetTargetId(Aws::String &&value)
const TargetStatus & GetStatus() const
void SetDeploymentId(Aws::String &&value)
AWS_CODEDEPLOY_API LambdaTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
LambdaTarget & AddLifecycleEvents(const LifecycleEvent &value)
LambdaTarget & WithLifecycleEvents(const Aws::Vector< LifecycleEvent > &value)
LambdaTarget & WithLambdaFunctionInfo(LambdaFunctionInfo &&value)
const Aws::String & GetDeploymentId() const
LambdaTarget & WithLastUpdatedAt(const Aws::Utils::DateTime &value)
LambdaTarget & WithLifecycleEvents(Aws::Vector< LifecycleEvent > &&value)
LambdaTarget & WithTargetArn(const Aws::String &value)
void SetLambdaFunctionInfo(LambdaFunctionInfo &&value)
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTargetId(const Aws::String &value)
LambdaTarget & WithTargetArn(const char *value)
void SetDeploymentId(const Aws::String &value)
void SetDeploymentId(const char *value)
const Aws::String & GetTargetId() const
LambdaTarget & WithStatus(TargetStatus &&value)
LambdaTarget & WithTargetId(const char *value)
void SetTargetId(const char *value)
void SetLifecycleEvents(Aws::Vector< LifecycleEvent > &&value)
void SetLifecycleEvents(const Aws::Vector< LifecycleEvent > &value)
void SetLastUpdatedAt(Aws::Utils::DateTime &&value)
void SetTargetArn(const char *value)
void SetLambdaFunctionInfo(const LambdaFunctionInfo &value)
const Aws::String & GetTargetArn() const
void SetLastUpdatedAt(const Aws::Utils::DateTime &value)
LambdaTarget & WithLastUpdatedAt(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
LambdaTarget & WithLambdaFunctionInfo(const LambdaFunctionInfo &value)
LambdaTarget & WithStatus(const TargetStatus &value)
LambdaTarget & WithTargetId(Aws::String &&value)
void SetTargetArn(Aws::String &&value)
void SetStatus(TargetStatus &&value)
AWS_CODEDEPLOY_API LambdaTarget(Aws::Utils::Json::JsonView jsonValue)
const LambdaFunctionInfo & GetLambdaFunctionInfo() const
LambdaTarget & WithDeploymentId(Aws::String &&value)
LambdaTarget & WithDeploymentId(const char *value)
LambdaTarget & AddLifecycleEvents(LifecycleEvent &&value)
LambdaTarget & WithDeploymentId(const Aws::String &value)
LambdaTarget & WithTargetArn(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue