AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#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:
35 AWS_CODEDEPLOY_API LambdaFunctionInfo() = default;
36 AWS_CODEDEPLOY_API LambdaFunctionInfo(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetFunctionName() const { return m_functionName; }
46 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
47 template<typename FunctionNameT = Aws::String>
48 void SetFunctionName(FunctionNameT&& value) { m_functionNameHasBeenSet = true; m_functionName = std::forward<FunctionNameT>(value); }
49 template<typename FunctionNameT = Aws::String>
50 LambdaFunctionInfo& WithFunctionName(FunctionNameT&& value) { SetFunctionName(std::forward<FunctionNameT>(value)); return *this;}
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) { m_functionAliasHasBeenSet = true; m_functionAlias = std::forward<FunctionAliasT>(value); }
63 template<typename FunctionAliasT = Aws::String>
64 LambdaFunctionInfo& WithFunctionAlias(FunctionAliasT&& value) { SetFunctionAlias(std::forward<FunctionAliasT>(value)); return *this;}
66
68
71 inline const Aws::String& GetCurrentVersion() const { return m_currentVersion; }
72 inline bool CurrentVersionHasBeenSet() const { return m_currentVersionHasBeenSet; }
73 template<typename CurrentVersionT = Aws::String>
74 void SetCurrentVersion(CurrentVersionT&& value) { m_currentVersionHasBeenSet = true; m_currentVersion = std::forward<CurrentVersionT>(value); }
75 template<typename CurrentVersionT = Aws::String>
76 LambdaFunctionInfo& WithCurrentVersion(CurrentVersionT&& value) { SetCurrentVersion(std::forward<CurrentVersionT>(value)); return *this;}
78
80
84 inline const Aws::String& GetTargetVersion() const { return m_targetVersion; }
85 inline bool TargetVersionHasBeenSet() const { return m_targetVersionHasBeenSet; }
86 template<typename TargetVersionT = Aws::String>
87 void SetTargetVersion(TargetVersionT&& value) { m_targetVersionHasBeenSet = true; m_targetVersion = std::forward<TargetVersionT>(value); }
88 template<typename TargetVersionT = Aws::String>
89 LambdaFunctionInfo& WithTargetVersion(TargetVersionT&& value) { SetTargetVersion(std::forward<TargetVersionT>(value)); return *this;}
91
93
97 inline double GetTargetVersionWeight() const { return m_targetVersionWeight; }
98 inline bool TargetVersionWeightHasBeenSet() const { return m_targetVersionWeightHasBeenSet; }
99 inline void SetTargetVersionWeight(double value) { m_targetVersionWeightHasBeenSet = true; m_targetVersionWeight = value; }
100 inline LambdaFunctionInfo& WithTargetVersionWeight(double value) { SetTargetVersionWeight(value); return *this;}
102 private:
103
104 Aws::String m_functionName;
105 bool m_functionNameHasBeenSet = false;
106
107 Aws::String m_functionAlias;
108 bool m_functionAliasHasBeenSet = false;
109
110 Aws::String m_currentVersion;
111 bool m_currentVersionHasBeenSet = false;
112
113 Aws::String m_targetVersion;
114 bool m_targetVersionHasBeenSet = false;
115
116 double m_targetVersionWeight{0.0};
117 bool m_targetVersionWeightHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace CodeDeploy
122} // 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