AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
48 inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); }
49 inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
50 inline LambdaFunctionInfo& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
51 inline LambdaFunctionInfo& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
52 inline LambdaFunctionInfo& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
54
56
61 inline const Aws::String& GetFunctionAlias() const{ return m_functionAlias; }
62 inline bool FunctionAliasHasBeenSet() const { return m_functionAliasHasBeenSet; }
63 inline void SetFunctionAlias(const Aws::String& value) { m_functionAliasHasBeenSet = true; m_functionAlias = value; }
64 inline void SetFunctionAlias(Aws::String&& value) { m_functionAliasHasBeenSet = true; m_functionAlias = std::move(value); }
65 inline void SetFunctionAlias(const char* value) { m_functionAliasHasBeenSet = true; m_functionAlias.assign(value); }
66 inline LambdaFunctionInfo& WithFunctionAlias(const Aws::String& value) { SetFunctionAlias(value); return *this;}
67 inline LambdaFunctionInfo& WithFunctionAlias(Aws::String&& value) { SetFunctionAlias(std::move(value)); return *this;}
68 inline LambdaFunctionInfo& WithFunctionAlias(const char* value) { SetFunctionAlias(value); return *this;}
70
72
75 inline const Aws::String& GetCurrentVersion() const{ return m_currentVersion; }
76 inline bool CurrentVersionHasBeenSet() const { return m_currentVersionHasBeenSet; }
77 inline void SetCurrentVersion(const Aws::String& value) { m_currentVersionHasBeenSet = true; m_currentVersion = value; }
78 inline void SetCurrentVersion(Aws::String&& value) { m_currentVersionHasBeenSet = true; m_currentVersion = std::move(value); }
79 inline void SetCurrentVersion(const char* value) { m_currentVersionHasBeenSet = true; m_currentVersion.assign(value); }
80 inline LambdaFunctionInfo& WithCurrentVersion(const Aws::String& value) { SetCurrentVersion(value); return *this;}
81 inline LambdaFunctionInfo& WithCurrentVersion(Aws::String&& value) { SetCurrentVersion(std::move(value)); return *this;}
82 inline LambdaFunctionInfo& WithCurrentVersion(const char* value) { SetCurrentVersion(value); return *this;}
84
86
90 inline const Aws::String& GetTargetVersion() const{ return m_targetVersion; }
91 inline bool TargetVersionHasBeenSet() const { return m_targetVersionHasBeenSet; }
92 inline void SetTargetVersion(const Aws::String& value) { m_targetVersionHasBeenSet = true; m_targetVersion = value; }
93 inline void SetTargetVersion(Aws::String&& value) { m_targetVersionHasBeenSet = true; m_targetVersion = std::move(value); }
94 inline void SetTargetVersion(const char* value) { m_targetVersionHasBeenSet = true; m_targetVersion.assign(value); }
95 inline LambdaFunctionInfo& WithTargetVersion(const Aws::String& value) { SetTargetVersion(value); return *this;}
96 inline LambdaFunctionInfo& WithTargetVersion(Aws::String&& value) { SetTargetVersion(std::move(value)); return *this;}
97 inline LambdaFunctionInfo& WithTargetVersion(const char* value) { SetTargetVersion(value); return *this;}
99
101
105 inline double GetTargetVersionWeight() const{ return m_targetVersionWeight; }
106 inline bool TargetVersionWeightHasBeenSet() const { return m_targetVersionWeightHasBeenSet; }
107 inline void SetTargetVersionWeight(double value) { m_targetVersionWeightHasBeenSet = true; m_targetVersionWeight = value; }
108 inline LambdaFunctionInfo& WithTargetVersionWeight(double value) { SetTargetVersionWeight(value); return *this;}
110 private:
111
112 Aws::String m_functionName;
113 bool m_functionNameHasBeenSet = false;
114
115 Aws::String m_functionAlias;
116 bool m_functionAliasHasBeenSet = false;
117
118 Aws::String m_currentVersion;
119 bool m_currentVersionHasBeenSet = false;
120
121 Aws::String m_targetVersion;
122 bool m_targetVersionHasBeenSet = false;
123
124 double m_targetVersionWeight;
125 bool m_targetVersionWeightHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace CodeDeploy
130} // namespace Aws
void SetFunctionAlias(const Aws::String &value)
LambdaFunctionInfo & WithCurrentVersion(const Aws::String &value)
const Aws::String & GetCurrentVersion() const
LambdaFunctionInfo & WithTargetVersion(const char *value)
LambdaFunctionInfo & WithFunctionName(Aws::String &&value)
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)
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
Aws::Utils::Json::JsonValue JsonValue