AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
LambdaFunctionInfo.h
Go to the documentation of this file.
1
6#pragma once
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CodeDeploy
22{
23namespace Model
24{
25
33 {
34 public:
39
40
44 inline const Aws::String& GetFunctionName() const{ return m_functionName; }
45
49 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
50
54 inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
55
59 inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); }
60
64 inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
65
69 inline LambdaFunctionInfo& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
70
74 inline LambdaFunctionInfo& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
75
79 inline LambdaFunctionInfo& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
80
81
87 inline const Aws::String& GetFunctionAlias() const{ return m_functionAlias; }
88
94 inline bool FunctionAliasHasBeenSet() const { return m_functionAliasHasBeenSet; }
95
101 inline void SetFunctionAlias(const Aws::String& value) { m_functionAliasHasBeenSet = true; m_functionAlias = value; }
102
108 inline void SetFunctionAlias(Aws::String&& value) { m_functionAliasHasBeenSet = true; m_functionAlias = std::move(value); }
109
115 inline void SetFunctionAlias(const char* value) { m_functionAliasHasBeenSet = true; m_functionAlias.assign(value); }
116
122 inline LambdaFunctionInfo& WithFunctionAlias(const Aws::String& value) { SetFunctionAlias(value); return *this;}
123
129 inline LambdaFunctionInfo& WithFunctionAlias(Aws::String&& value) { SetFunctionAlias(std::move(value)); return *this;}
130
136 inline LambdaFunctionInfo& WithFunctionAlias(const char* value) { SetFunctionAlias(value); return *this;}
137
138
142 inline const Aws::String& GetCurrentVersion() const{ return m_currentVersion; }
143
147 inline bool CurrentVersionHasBeenSet() const { return m_currentVersionHasBeenSet; }
148
152 inline void SetCurrentVersion(const Aws::String& value) { m_currentVersionHasBeenSet = true; m_currentVersion = value; }
153
157 inline void SetCurrentVersion(Aws::String&& value) { m_currentVersionHasBeenSet = true; m_currentVersion = std::move(value); }
158
162 inline void SetCurrentVersion(const char* value) { m_currentVersionHasBeenSet = true; m_currentVersion.assign(value); }
163
167 inline LambdaFunctionInfo& WithCurrentVersion(const Aws::String& value) { SetCurrentVersion(value); return *this;}
168
172 inline LambdaFunctionInfo& WithCurrentVersion(Aws::String&& value) { SetCurrentVersion(std::move(value)); return *this;}
173
177 inline LambdaFunctionInfo& WithCurrentVersion(const char* value) { SetCurrentVersion(value); return *this;}
178
179
184 inline const Aws::String& GetTargetVersion() const{ return m_targetVersion; }
185
190 inline bool TargetVersionHasBeenSet() const { return m_targetVersionHasBeenSet; }
191
196 inline void SetTargetVersion(const Aws::String& value) { m_targetVersionHasBeenSet = true; m_targetVersion = value; }
197
202 inline void SetTargetVersion(Aws::String&& value) { m_targetVersionHasBeenSet = true; m_targetVersion = std::move(value); }
203
208 inline void SetTargetVersion(const char* value) { m_targetVersionHasBeenSet = true; m_targetVersion.assign(value); }
209
214 inline LambdaFunctionInfo& WithTargetVersion(const Aws::String& value) { SetTargetVersion(value); return *this;}
215
220 inline LambdaFunctionInfo& WithTargetVersion(Aws::String&& value) { SetTargetVersion(std::move(value)); return *this;}
221
226 inline LambdaFunctionInfo& WithTargetVersion(const char* value) { SetTargetVersion(value); return *this;}
227
228
233 inline double GetTargetVersionWeight() const{ return m_targetVersionWeight; }
234
239 inline bool TargetVersionWeightHasBeenSet() const { return m_targetVersionWeightHasBeenSet; }
240
245 inline void SetTargetVersionWeight(double value) { m_targetVersionWeightHasBeenSet = true; m_targetVersionWeight = value; }
246
251 inline LambdaFunctionInfo& WithTargetVersionWeight(double value) { SetTargetVersionWeight(value); return *this;}
252
253 private:
254
255 Aws::String m_functionName;
256 bool m_functionNameHasBeenSet = false;
257
258 Aws::String m_functionAlias;
259 bool m_functionAliasHasBeenSet = false;
260
261 Aws::String m_currentVersion;
262 bool m_currentVersionHasBeenSet = false;
263
264 Aws::String m_targetVersion;
265 bool m_targetVersionHasBeenSet = false;
266
267 double m_targetVersionWeight;
268 bool m_targetVersionWeightHasBeenSet = false;
269 };
270
271} // namespace Model
272} // namespace CodeDeploy
273} // namespace Aws
#define AWS_CODEDEPLOY_API
void SetFunctionAlias(const Aws::String &value)
const Aws::String & GetFunctionName() const
LambdaFunctionInfo & WithCurrentVersion(const Aws::String &value)
const Aws::String & GetCurrentVersion() const
LambdaFunctionInfo & WithTargetVersion(const char *value)
LambdaFunctionInfo & WithFunctionName(Aws::String &&value)
const Aws::String & GetTargetVersion() const
void SetTargetVersion(const Aws::String &value)
void SetCurrentVersion(const Aws::String &value)
LambdaFunctionInfo & WithFunctionName(const char *value)
AWS_CODEDEPLOY_API LambdaFunctionInfo(Aws::Utils::Json::JsonView jsonValue)
LambdaFunctionInfo & WithTargetVersionWeight(double value)
AWS_CODEDEPLOY_API LambdaFunctionInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetFunctionAlias() const
LambdaFunctionInfo & WithFunctionAlias(Aws::String &&value)
void SetFunctionName(const Aws::String &value)
LambdaFunctionInfo & WithFunctionAlias(const char *value)
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
LambdaFunctionInfo & WithTargetVersion(Aws::String &&value)
LambdaFunctionInfo & WithTargetVersion(const Aws::String &value)
LambdaFunctionInfo & WithFunctionName(const Aws::String &value)
LambdaFunctionInfo & WithFunctionAlias(const Aws::String &value)
LambdaFunctionInfo & WithCurrentVersion(Aws::String &&value)
LambdaFunctionInfo & WithCurrentVersion(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String