AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LambdaFunctionRecipeSource.h
1
6#pragma once
7#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/greengrassv2/model/LambdaExecutionParameters.h>
12#include <aws/greengrassv2/model/ComponentPlatform.h>
13#include <aws/greengrassv2/model/ComponentDependencyRequirement.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace GreengrassV2
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_GREENGRASSV2_API LambdaFunctionRecipeSource();
43 AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
53 inline const Aws::String& GetLambdaArn() const{ return m_lambdaArn; }
54 inline bool LambdaArnHasBeenSet() const { return m_lambdaArnHasBeenSet; }
55 inline void SetLambdaArn(const Aws::String& value) { m_lambdaArnHasBeenSet = true; m_lambdaArn = value; }
56 inline void SetLambdaArn(Aws::String&& value) { m_lambdaArnHasBeenSet = true; m_lambdaArn = std::move(value); }
57 inline void SetLambdaArn(const char* value) { m_lambdaArnHasBeenSet = true; m_lambdaArn.assign(value); }
58 inline LambdaFunctionRecipeSource& WithLambdaArn(const Aws::String& value) { SetLambdaArn(value); return *this;}
59 inline LambdaFunctionRecipeSource& WithLambdaArn(Aws::String&& value) { SetLambdaArn(std::move(value)); return *this;}
60 inline LambdaFunctionRecipeSource& WithLambdaArn(const char* value) { SetLambdaArn(value); return *this;}
62
64
68 inline const Aws::String& GetComponentName() const{ return m_componentName; }
69 inline bool ComponentNameHasBeenSet() const { return m_componentNameHasBeenSet; }
70 inline void SetComponentName(const Aws::String& value) { m_componentNameHasBeenSet = true; m_componentName = value; }
71 inline void SetComponentName(Aws::String&& value) { m_componentNameHasBeenSet = true; m_componentName = std::move(value); }
72 inline void SetComponentName(const char* value) { m_componentNameHasBeenSet = true; m_componentName.assign(value); }
73 inline LambdaFunctionRecipeSource& WithComponentName(const Aws::String& value) { SetComponentName(value); return *this;}
74 inline LambdaFunctionRecipeSource& WithComponentName(Aws::String&& value) { SetComponentName(std::move(value)); return *this;}
75 inline LambdaFunctionRecipeSource& WithComponentName(const char* value) { SetComponentName(value); return *this;}
77
79
84 inline const Aws::String& GetComponentVersion() const{ return m_componentVersion; }
85 inline bool ComponentVersionHasBeenSet() const { return m_componentVersionHasBeenSet; }
86 inline void SetComponentVersion(const Aws::String& value) { m_componentVersionHasBeenSet = true; m_componentVersion = value; }
87 inline void SetComponentVersion(Aws::String&& value) { m_componentVersionHasBeenSet = true; m_componentVersion = std::move(value); }
88 inline void SetComponentVersion(const char* value) { m_componentVersionHasBeenSet = true; m_componentVersion.assign(value); }
90 inline LambdaFunctionRecipeSource& WithComponentVersion(Aws::String&& value) { SetComponentVersion(std::move(value)); return *this;}
91 inline LambdaFunctionRecipeSource& WithComponentVersion(const char* value) { SetComponentVersion(value); return *this;}
93
95
98 inline const Aws::Vector<ComponentPlatform>& GetComponentPlatforms() const{ return m_componentPlatforms; }
99 inline bool ComponentPlatformsHasBeenSet() const { return m_componentPlatformsHasBeenSet; }
100 inline void SetComponentPlatforms(const Aws::Vector<ComponentPlatform>& value) { m_componentPlatformsHasBeenSet = true; m_componentPlatforms = value; }
101 inline void SetComponentPlatforms(Aws::Vector<ComponentPlatform>&& value) { m_componentPlatformsHasBeenSet = true; m_componentPlatforms = std::move(value); }
104 inline LambdaFunctionRecipeSource& AddComponentPlatforms(const ComponentPlatform& value) { m_componentPlatformsHasBeenSet = true; m_componentPlatforms.push_back(value); return *this; }
105 inline LambdaFunctionRecipeSource& AddComponentPlatforms(ComponentPlatform&& value) { m_componentPlatformsHasBeenSet = true; m_componentPlatforms.push_back(std::move(value)); return *this; }
107
109
112 inline const Aws::Map<Aws::String, ComponentDependencyRequirement>& GetComponentDependencies() const{ return m_componentDependencies; }
113 inline bool ComponentDependenciesHasBeenSet() const { return m_componentDependenciesHasBeenSet; }
114 inline void SetComponentDependencies(const Aws::Map<Aws::String, ComponentDependencyRequirement>& value) { m_componentDependenciesHasBeenSet = true; m_componentDependencies = value; }
115 inline void SetComponentDependencies(Aws::Map<Aws::String, ComponentDependencyRequirement>&& value) { m_componentDependenciesHasBeenSet = true; m_componentDependencies = std::move(value); }
118 inline LambdaFunctionRecipeSource& AddComponentDependencies(const Aws::String& key, const ComponentDependencyRequirement& value) { m_componentDependenciesHasBeenSet = true; m_componentDependencies.emplace(key, value); return *this; }
119 inline LambdaFunctionRecipeSource& AddComponentDependencies(Aws::String&& key, const ComponentDependencyRequirement& value) { m_componentDependenciesHasBeenSet = true; m_componentDependencies.emplace(std::move(key), value); return *this; }
120 inline LambdaFunctionRecipeSource& AddComponentDependencies(const Aws::String& key, ComponentDependencyRequirement&& value) { m_componentDependenciesHasBeenSet = true; m_componentDependencies.emplace(key, std::move(value)); return *this; }
121 inline LambdaFunctionRecipeSource& AddComponentDependencies(Aws::String&& key, ComponentDependencyRequirement&& value) { m_componentDependenciesHasBeenSet = true; m_componentDependencies.emplace(std::move(key), std::move(value)); return *this; }
122 inline LambdaFunctionRecipeSource& AddComponentDependencies(const char* key, ComponentDependencyRequirement&& value) { m_componentDependenciesHasBeenSet = true; m_componentDependencies.emplace(key, std::move(value)); return *this; }
123 inline LambdaFunctionRecipeSource& AddComponentDependencies(const char* key, const ComponentDependencyRequirement& value) { m_componentDependenciesHasBeenSet = true; m_componentDependencies.emplace(key, value); return *this; }
125
127
131 inline const LambdaExecutionParameters& GetComponentLambdaParameters() const{ return m_componentLambdaParameters; }
132 inline bool ComponentLambdaParametersHasBeenSet() const { return m_componentLambdaParametersHasBeenSet; }
133 inline void SetComponentLambdaParameters(const LambdaExecutionParameters& value) { m_componentLambdaParametersHasBeenSet = true; m_componentLambdaParameters = value; }
134 inline void SetComponentLambdaParameters(LambdaExecutionParameters&& value) { m_componentLambdaParametersHasBeenSet = true; m_componentLambdaParameters = std::move(value); }
138 private:
139
140 Aws::String m_lambdaArn;
141 bool m_lambdaArnHasBeenSet = false;
142
143 Aws::String m_componentName;
144 bool m_componentNameHasBeenSet = false;
145
146 Aws::String m_componentVersion;
147 bool m_componentVersionHasBeenSet = false;
148
149 Aws::Vector<ComponentPlatform> m_componentPlatforms;
150 bool m_componentPlatformsHasBeenSet = false;
151
153 bool m_componentDependenciesHasBeenSet = false;
154
155 LambdaExecutionParameters m_componentLambdaParameters;
156 bool m_componentLambdaParametersHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace GreengrassV2
161} // namespace Aws
LambdaFunctionRecipeSource & WithComponentVersion(Aws::String &&value)
void SetComponentPlatforms(const Aws::Vector< ComponentPlatform > &value)
AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const
const LambdaExecutionParameters & GetComponentLambdaParameters() const
LambdaFunctionRecipeSource & AddComponentDependencies(const char *key, ComponentDependencyRequirement &&value)
void SetComponentDependencies(const Aws::Map< Aws::String, ComponentDependencyRequirement > &value)
LambdaFunctionRecipeSource & AddComponentDependencies(const Aws::String &key, const ComponentDependencyRequirement &value)
const Aws::Map< Aws::String, ComponentDependencyRequirement > & GetComponentDependencies() const
LambdaFunctionRecipeSource & AddComponentDependencies(const Aws::String &key, ComponentDependencyRequirement &&value)
void SetComponentPlatforms(Aws::Vector< ComponentPlatform > &&value)
LambdaFunctionRecipeSource & WithComponentDependencies(Aws::Map< Aws::String, ComponentDependencyRequirement > &&value)
void SetComponentLambdaParameters(LambdaExecutionParameters &&value)
LambdaFunctionRecipeSource & AddComponentDependencies(const char *key, const ComponentDependencyRequirement &value)
AWS_GREENGRASSV2_API LambdaFunctionRecipeSource(Aws::Utils::Json::JsonView jsonValue)
LambdaFunctionRecipeSource & WithLambdaArn(const char *value)
LambdaFunctionRecipeSource & AddComponentDependencies(Aws::String &&key, ComponentDependencyRequirement &&value)
void SetComponentLambdaParameters(const LambdaExecutionParameters &value)
LambdaFunctionRecipeSource & WithComponentVersion(const char *value)
LambdaFunctionRecipeSource & WithComponentPlatforms(Aws::Vector< ComponentPlatform > &&value)
AWS_GREENGRASSV2_API LambdaFunctionRecipeSource & operator=(Aws::Utils::Json::JsonView jsonValue)
LambdaFunctionRecipeSource & WithComponentName(Aws::String &&value)
LambdaFunctionRecipeSource & WithComponentLambdaParameters(LambdaExecutionParameters &&value)
LambdaFunctionRecipeSource & WithComponentName(const Aws::String &value)
LambdaFunctionRecipeSource & WithComponentLambdaParameters(const LambdaExecutionParameters &value)
LambdaFunctionRecipeSource & WithComponentVersion(const Aws::String &value)
LambdaFunctionRecipeSource & WithComponentPlatforms(const Aws::Vector< ComponentPlatform > &value)
const Aws::Vector< ComponentPlatform > & GetComponentPlatforms() const
LambdaFunctionRecipeSource & WithLambdaArn(Aws::String &&value)
LambdaFunctionRecipeSource & WithLambdaArn(const Aws::String &value)
LambdaFunctionRecipeSource & WithComponentDependencies(const Aws::Map< Aws::String, ComponentDependencyRequirement > &value)
LambdaFunctionRecipeSource & AddComponentPlatforms(ComponentPlatform &&value)
LambdaFunctionRecipeSource & WithComponentName(const char *value)
LambdaFunctionRecipeSource & AddComponentPlatforms(const ComponentPlatform &value)
LambdaFunctionRecipeSource & AddComponentDependencies(Aws::String &&key, const ComponentDependencyRequirement &value)
void SetComponentDependencies(Aws::Map< Aws::String, ComponentDependencyRequirement > &&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