AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
LambdaFunctionInfo.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CodeDeploy {
20namespace Model {
21
29 public:
30 AWS_CODEDEPLOY_API LambdaFunctionInfo() = default;
31 AWS_CODEDEPLOY_API LambdaFunctionInfo(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetFunctionName() const { return m_functionName; }
40 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
41 template <typename FunctionNameT = Aws::String>
42 void SetFunctionName(FunctionNameT&& value) {
43 m_functionNameHasBeenSet = true;
44 m_functionName = std::forward<FunctionNameT>(value);
45 }
46 template <typename FunctionNameT = Aws::String>
47 LambdaFunctionInfo& WithFunctionName(FunctionNameT&& value) {
48 SetFunctionName(std::forward<FunctionNameT>(value));
49 return *this;
50 }
52
54
59 inline const Aws::String& GetFunctionAlias() const { return m_functionAlias; }
60 inline bool FunctionAliasHasBeenSet() const { return m_functionAliasHasBeenSet; }
61 template <typename FunctionAliasT = Aws::String>
62 void SetFunctionAlias(FunctionAliasT&& value) {
63 m_functionAliasHasBeenSet = true;
64 m_functionAlias = std::forward<FunctionAliasT>(value);
65 }
66 template <typename FunctionAliasT = Aws::String>
67 LambdaFunctionInfo& WithFunctionAlias(FunctionAliasT&& value) {
68 SetFunctionAlias(std::forward<FunctionAliasT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetCurrentVersion() const { return m_currentVersion; }
78 inline bool CurrentVersionHasBeenSet() const { return m_currentVersionHasBeenSet; }
79 template <typename CurrentVersionT = Aws::String>
80 void SetCurrentVersion(CurrentVersionT&& value) {
81 m_currentVersionHasBeenSet = true;
82 m_currentVersion = std::forward<CurrentVersionT>(value);
83 }
84 template <typename CurrentVersionT = Aws::String>
85 LambdaFunctionInfo& WithCurrentVersion(CurrentVersionT&& value) {
86 SetCurrentVersion(std::forward<CurrentVersionT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::String& GetTargetVersion() const { return m_targetVersion; }
97 inline bool TargetVersionHasBeenSet() const { return m_targetVersionHasBeenSet; }
98 template <typename TargetVersionT = Aws::String>
99 void SetTargetVersion(TargetVersionT&& value) {
100 m_targetVersionHasBeenSet = true;
101 m_targetVersion = std::forward<TargetVersionT>(value);
102 }
103 template <typename TargetVersionT = Aws::String>
104 LambdaFunctionInfo& WithTargetVersion(TargetVersionT&& value) {
105 SetTargetVersion(std::forward<TargetVersionT>(value));
106 return *this;
107 }
109
111
115 inline double GetTargetVersionWeight() const { return m_targetVersionWeight; }
116 inline bool TargetVersionWeightHasBeenSet() const { return m_targetVersionWeightHasBeenSet; }
117 inline void SetTargetVersionWeight(double value) {
118 m_targetVersionWeightHasBeenSet = true;
119 m_targetVersionWeight = value;
120 }
123 return *this;
124 }
126 private:
127 Aws::String m_functionName;
128
129 Aws::String m_functionAlias;
130
131 Aws::String m_currentVersion;
132
133 Aws::String m_targetVersion;
134
135 double m_targetVersionWeight{0.0};
136 bool m_functionNameHasBeenSet = false;
137 bool m_functionAliasHasBeenSet = false;
138 bool m_currentVersionHasBeenSet = false;
139 bool m_targetVersionHasBeenSet = false;
140 bool m_targetVersionWeightHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace CodeDeploy
145} // namespace Aws
AWS_CODEDEPLOY_API LambdaFunctionInfo()=default
const Aws::String & GetCurrentVersion() const
AWS_CODEDEPLOY_API LambdaFunctionInfo(Aws::Utils::Json::JsonView jsonValue)
LambdaFunctionInfo & WithTargetVersionWeight(double value)
AWS_CODEDEPLOY_API LambdaFunctionInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetFunctionAlias(FunctionAliasT &&value)
void SetCurrentVersion(CurrentVersionT &&value)
LambdaFunctionInfo & WithTargetVersion(TargetVersionT &&value)
LambdaFunctionInfo & WithCurrentVersion(CurrentVersionT &&value)
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTargetVersion(TargetVersionT &&value)
LambdaFunctionInfo & WithFunctionName(FunctionNameT &&value)
LambdaFunctionInfo & WithFunctionAlias(FunctionAliasT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue