AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename LambdaArnT = Aws::String>
56 void SetLambdaArn(LambdaArnT&& value) { m_lambdaArnHasBeenSet = true; m_lambdaArn = std::forward<LambdaArnT>(value); }
57 template<typename LambdaArnT = Aws::String>
58 LambdaFunctionRecipeSource& WithLambdaArn(LambdaArnT&& value) { SetLambdaArn(std::forward<LambdaArnT>(value)); return *this;}
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) { m_componentNameHasBeenSet = true; m_componentName = std::forward<ComponentNameT>(value); }
70 template<typename ComponentNameT = Aws::String>
71 LambdaFunctionRecipeSource& WithComponentName(ComponentNameT&& value) { SetComponentName(std::forward<ComponentNameT>(value)); return *this;}
73
75
80 inline const Aws::String& GetComponentVersion() const { return m_componentVersion; }
81 inline bool ComponentVersionHasBeenSet() const { return m_componentVersionHasBeenSet; }
82 template<typename ComponentVersionT = Aws::String>
83 void SetComponentVersion(ComponentVersionT&& value) { m_componentVersionHasBeenSet = true; m_componentVersion = std::forward<ComponentVersionT>(value); }
84 template<typename ComponentVersionT = Aws::String>
85 LambdaFunctionRecipeSource& WithComponentVersion(ComponentVersionT&& value) { SetComponentVersion(std::forward<ComponentVersionT>(value)); return *this;}
87
89
92 inline const Aws::Vector<ComponentPlatform>& GetComponentPlatforms() const { return m_componentPlatforms; }
93 inline bool ComponentPlatformsHasBeenSet() const { return m_componentPlatformsHasBeenSet; }
94 template<typename ComponentPlatformsT = Aws::Vector<ComponentPlatform>>
95 void SetComponentPlatforms(ComponentPlatformsT&& value) { m_componentPlatformsHasBeenSet = true; m_componentPlatforms = std::forward<ComponentPlatformsT>(value); }
96 template<typename ComponentPlatformsT = Aws::Vector<ComponentPlatform>>
97 LambdaFunctionRecipeSource& WithComponentPlatforms(ComponentPlatformsT&& value) { SetComponentPlatforms(std::forward<ComponentPlatformsT>(value)); return *this;}
98 template<typename ComponentPlatformsT = ComponentPlatform>
99 LambdaFunctionRecipeSource& AddComponentPlatforms(ComponentPlatformsT&& value) { m_componentPlatformsHasBeenSet = true; m_componentPlatforms.emplace_back(std::forward<ComponentPlatformsT>(value)); return *this; }
101
103
106 inline const Aws::Map<Aws::String, ComponentDependencyRequirement>& GetComponentDependencies() const { return m_componentDependencies; }
107 inline bool ComponentDependenciesHasBeenSet() const { return m_componentDependenciesHasBeenSet; }
108 template<typename ComponentDependenciesT = Aws::Map<Aws::String, ComponentDependencyRequirement>>
109 void SetComponentDependencies(ComponentDependenciesT&& value) { m_componentDependenciesHasBeenSet = true; m_componentDependencies = std::forward<ComponentDependenciesT>(value); }
110 template<typename ComponentDependenciesT = Aws::Map<Aws::String, ComponentDependencyRequirement>>
111 LambdaFunctionRecipeSource& WithComponentDependencies(ComponentDependenciesT&& value) { SetComponentDependencies(std::forward<ComponentDependenciesT>(value)); return *this;}
112 template<typename ComponentDependenciesKeyT = Aws::String, typename ComponentDependenciesValueT = ComponentDependencyRequirement>
113 LambdaFunctionRecipeSource& AddComponentDependencies(ComponentDependenciesKeyT&& key, ComponentDependenciesValueT&& value) {
114 m_componentDependenciesHasBeenSet = true; m_componentDependencies.emplace(std::forward<ComponentDependenciesKeyT>(key), std::forward<ComponentDependenciesValueT>(value)); return *this;
115 }
117
119
123 inline const LambdaExecutionParameters& GetComponentLambdaParameters() const { return m_componentLambdaParameters; }
124 inline bool ComponentLambdaParametersHasBeenSet() const { return m_componentLambdaParametersHasBeenSet; }
125 template<typename ComponentLambdaParametersT = LambdaExecutionParameters>
126 void SetComponentLambdaParameters(ComponentLambdaParametersT&& value) { m_componentLambdaParametersHasBeenSet = true; m_componentLambdaParameters = std::forward<ComponentLambdaParametersT>(value); }
127 template<typename ComponentLambdaParametersT = LambdaExecutionParameters>
128 LambdaFunctionRecipeSource& WithComponentLambdaParameters(ComponentLambdaParametersT&& value) { SetComponentLambdaParameters(std::forward<ComponentLambdaParametersT>(value)); return *this;}
130 private:
131
132 Aws::String m_lambdaArn;
133 bool m_lambdaArnHasBeenSet = false;
134
135 Aws::String m_componentName;
136 bool m_componentNameHasBeenSet = false;
137
138 Aws::String m_componentVersion;
139 bool m_componentVersionHasBeenSet = false;
140
141 Aws::Vector<ComponentPlatform> m_componentPlatforms;
142 bool m_componentPlatformsHasBeenSet = false;
143
145 bool m_componentDependenciesHasBeenSet = false;
146
147 LambdaExecutionParameters m_componentLambdaParameters;
148 bool m_componentLambdaParametersHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace GreengrassV2
153} // 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