AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
LambdaFunctionRecipeSource.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
11#include <aws/greengrassv2/model/ComponentDependencyRequirement.h>
12#include <aws/greengrassv2/model/ComponentPlatform.h>
13#include <aws/greengrassv2/model/LambdaExecutionParameters.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace GreengrassV2 {
25namespace Model {
26
34 public:
35 AWS_GREENGRASSV2_API LambdaFunctionRecipeSource() = default;
38 AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
47 inline const Aws::String& GetLambdaArn() const { return m_lambdaArn; }
48 inline bool LambdaArnHasBeenSet() const { return m_lambdaArnHasBeenSet; }
49 template <typename LambdaArnT = Aws::String>
50 void SetLambdaArn(LambdaArnT&& value) {
51 m_lambdaArnHasBeenSet = true;
52 m_lambdaArn = std::forward<LambdaArnT>(value);
53 }
54 template <typename LambdaArnT = Aws::String>
56 SetLambdaArn(std::forward<LambdaArnT>(value));
57 return *this;
58 }
60
62
66 inline const Aws::String& GetComponentName() const { return m_componentName; }
67 inline bool ComponentNameHasBeenSet() const { return m_componentNameHasBeenSet; }
68 template <typename ComponentNameT = Aws::String>
69 void SetComponentName(ComponentNameT&& value) {
70 m_componentNameHasBeenSet = true;
71 m_componentName = std::forward<ComponentNameT>(value);
72 }
73 template <typename ComponentNameT = Aws::String>
75 SetComponentName(std::forward<ComponentNameT>(value));
76 return *this;
77 }
79
81
86 inline const Aws::String& GetComponentVersion() const { return m_componentVersion; }
87 inline bool ComponentVersionHasBeenSet() const { return m_componentVersionHasBeenSet; }
88 template <typename ComponentVersionT = Aws::String>
89 void SetComponentVersion(ComponentVersionT&& value) {
90 m_componentVersionHasBeenSet = true;
91 m_componentVersion = std::forward<ComponentVersionT>(value);
92 }
93 template <typename ComponentVersionT = Aws::String>
95 SetComponentVersion(std::forward<ComponentVersionT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::Vector<ComponentPlatform>& GetComponentPlatforms() const { return m_componentPlatforms; }
105 inline bool ComponentPlatformsHasBeenSet() const { return m_componentPlatformsHasBeenSet; }
106 template <typename ComponentPlatformsT = Aws::Vector<ComponentPlatform>>
107 void SetComponentPlatforms(ComponentPlatformsT&& value) {
108 m_componentPlatformsHasBeenSet = true;
109 m_componentPlatforms = std::forward<ComponentPlatformsT>(value);
110 }
111 template <typename ComponentPlatformsT = Aws::Vector<ComponentPlatform>>
113 SetComponentPlatforms(std::forward<ComponentPlatformsT>(value));
114 return *this;
115 }
116 template <typename ComponentPlatformsT = ComponentPlatform>
117 LambdaFunctionRecipeSource& AddComponentPlatforms(ComponentPlatformsT&& value) {
118 m_componentPlatformsHasBeenSet = true;
119 m_componentPlatforms.emplace_back(std::forward<ComponentPlatformsT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::Map<Aws::String, ComponentDependencyRequirement>& GetComponentDependencies() const { return m_componentDependencies; }
129 inline bool ComponentDependenciesHasBeenSet() const { return m_componentDependenciesHasBeenSet; }
130 template <typename ComponentDependenciesT = Aws::Map<Aws::String, ComponentDependencyRequirement>>
131 void SetComponentDependencies(ComponentDependenciesT&& value) {
132 m_componentDependenciesHasBeenSet = true;
133 m_componentDependencies = std::forward<ComponentDependenciesT>(value);
134 }
135 template <typename ComponentDependenciesT = Aws::Map<Aws::String, ComponentDependencyRequirement>>
136 LambdaFunctionRecipeSource& WithComponentDependencies(ComponentDependenciesT&& value) {
137 SetComponentDependencies(std::forward<ComponentDependenciesT>(value));
138 return *this;
139 }
140 template <typename ComponentDependenciesKeyT = Aws::String, typename ComponentDependenciesValueT = ComponentDependencyRequirement>
141 LambdaFunctionRecipeSource& AddComponentDependencies(ComponentDependenciesKeyT&& key, ComponentDependenciesValueT&& value) {
142 m_componentDependenciesHasBeenSet = true;
143 m_componentDependencies.emplace(std::forward<ComponentDependenciesKeyT>(key), std::forward<ComponentDependenciesValueT>(value));
144 return *this;
145 }
147
149
153 inline const LambdaExecutionParameters& GetComponentLambdaParameters() const { return m_componentLambdaParameters; }
154 inline bool ComponentLambdaParametersHasBeenSet() const { return m_componentLambdaParametersHasBeenSet; }
155 template <typename ComponentLambdaParametersT = LambdaExecutionParameters>
156 void SetComponentLambdaParameters(ComponentLambdaParametersT&& value) {
157 m_componentLambdaParametersHasBeenSet = true;
158 m_componentLambdaParameters = std::forward<ComponentLambdaParametersT>(value);
159 }
160 template <typename ComponentLambdaParametersT = LambdaExecutionParameters>
161 LambdaFunctionRecipeSource& WithComponentLambdaParameters(ComponentLambdaParametersT&& value) {
162 SetComponentLambdaParameters(std::forward<ComponentLambdaParametersT>(value));
163 return *this;
164 }
166 private:
167 Aws::String m_lambdaArn;
168
169 Aws::String m_componentName;
170
171 Aws::String m_componentVersion;
172
173 Aws::Vector<ComponentPlatform> m_componentPlatforms;
174
176
177 LambdaExecutionParameters m_componentLambdaParameters;
178 bool m_lambdaArnHasBeenSet = false;
179 bool m_componentNameHasBeenSet = false;
180 bool m_componentVersionHasBeenSet = false;
181 bool m_componentPlatformsHasBeenSet = false;
182 bool m_componentDependenciesHasBeenSet = false;
183 bool m_componentLambdaParametersHasBeenSet = false;
184};
185
186} // namespace Model
187} // namespace GreengrassV2
188} // namespace Aws
AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const
const LambdaExecutionParameters & GetComponentLambdaParameters() const
LambdaFunctionRecipeSource & AddComponentPlatforms(ComponentPlatformsT &&value)
const Aws::Map< Aws::String, ComponentDependencyRequirement > & GetComponentDependencies() const
LambdaFunctionRecipeSource & WithComponentVersion(ComponentVersionT &&value)
AWS_GREENGRASSV2_API LambdaFunctionRecipeSource(Aws::Utils::Json::JsonView jsonValue)
LambdaFunctionRecipeSource & WithLambdaArn(LambdaArnT &&value)
LambdaFunctionRecipeSource & WithComponentPlatforms(ComponentPlatformsT &&value)
LambdaFunctionRecipeSource & WithComponentDependencies(ComponentDependenciesT &&value)
AWS_GREENGRASSV2_API LambdaFunctionRecipeSource & operator=(Aws::Utils::Json::JsonView jsonValue)
LambdaFunctionRecipeSource & AddComponentDependencies(ComponentDependenciesKeyT &&key, ComponentDependenciesValueT &&value)
const Aws::Vector< ComponentPlatform > & GetComponentPlatforms() const
void SetComponentLambdaParameters(ComponentLambdaParametersT &&value)
AWS_GREENGRASSV2_API LambdaFunctionRecipeSource()=default
LambdaFunctionRecipeSource & WithComponentLambdaParameters(ComponentLambdaParametersT &&value)
LambdaFunctionRecipeSource & WithComponentName(ComponentNameT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue