AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
LambdaExecutionParameters.h
1
6#pragma once
7#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/greengrassv2/model/LambdaInputPayloadEncodingType.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/greengrassv2/model/LambdaLinuxProcessParams.h>
12#include <aws/greengrassv2/model/LambdaEventSource.h>
13#include <aws/core/utils/memory/stl/AWSString.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 LambdaExecutionParameters() = default;
43 AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
53 inline const Aws::Vector<LambdaEventSource>& GetEventSources() const { return m_eventSources; }
54 inline bool EventSourcesHasBeenSet() const { return m_eventSourcesHasBeenSet; }
55 template<typename EventSourcesT = Aws::Vector<LambdaEventSource>>
56 void SetEventSources(EventSourcesT&& value) { m_eventSourcesHasBeenSet = true; m_eventSources = std::forward<EventSourcesT>(value); }
57 template<typename EventSourcesT = Aws::Vector<LambdaEventSource>>
58 LambdaExecutionParameters& WithEventSources(EventSourcesT&& value) { SetEventSources(std::forward<EventSourcesT>(value)); return *this;}
59 template<typename EventSourcesT = LambdaEventSource>
60 LambdaExecutionParameters& AddEventSources(EventSourcesT&& value) { m_eventSourcesHasBeenSet = true; m_eventSources.emplace_back(std::forward<EventSourcesT>(value)); return *this; }
62
64
69 inline int GetMaxQueueSize() const { return m_maxQueueSize; }
70 inline bool MaxQueueSizeHasBeenSet() const { return m_maxQueueSizeHasBeenSet; }
71 inline void SetMaxQueueSize(int value) { m_maxQueueSizeHasBeenSet = true; m_maxQueueSize = value; }
72 inline LambdaExecutionParameters& WithMaxQueueSize(int value) { SetMaxQueueSize(value); return *this;}
74
76
80 inline int GetMaxInstancesCount() const { return m_maxInstancesCount; }
81 inline bool MaxInstancesCountHasBeenSet() const { return m_maxInstancesCountHasBeenSet; }
82 inline void SetMaxInstancesCount(int value) { m_maxInstancesCountHasBeenSet = true; m_maxInstancesCount = value; }
83 inline LambdaExecutionParameters& WithMaxInstancesCount(int value) { SetMaxInstancesCount(value); return *this;}
85
87
91 inline int GetMaxIdleTimeInSeconds() const { return m_maxIdleTimeInSeconds; }
92 inline bool MaxIdleTimeInSecondsHasBeenSet() const { return m_maxIdleTimeInSecondsHasBeenSet; }
93 inline void SetMaxIdleTimeInSeconds(int value) { m_maxIdleTimeInSecondsHasBeenSet = true; m_maxIdleTimeInSeconds = value; }
96
98
102 inline int GetTimeoutInSeconds() const { return m_timeoutInSeconds; }
103 inline bool TimeoutInSecondsHasBeenSet() const { return m_timeoutInSecondsHasBeenSet; }
104 inline void SetTimeoutInSeconds(int value) { m_timeoutInSecondsHasBeenSet = true; m_timeoutInSeconds = value; }
105 inline LambdaExecutionParameters& WithTimeoutInSeconds(int value) { SetTimeoutInSeconds(value); return *this;}
107
109
113 inline int GetStatusTimeoutInSeconds() const { return m_statusTimeoutInSeconds; }
114 inline bool StatusTimeoutInSecondsHasBeenSet() const { return m_statusTimeoutInSecondsHasBeenSet; }
115 inline void SetStatusTimeoutInSeconds(int value) { m_statusTimeoutInSecondsHasBeenSet = true; m_statusTimeoutInSeconds = value; }
118
120
129 inline bool GetPinned() const { return m_pinned; }
130 inline bool PinnedHasBeenSet() const { return m_pinnedHasBeenSet; }
131 inline void SetPinned(bool value) { m_pinnedHasBeenSet = true; m_pinned = value; }
132 inline LambdaExecutionParameters& WithPinned(bool value) { SetPinned(value); return *this;}
134
136
140 inline LambdaInputPayloadEncodingType GetInputPayloadEncodingType() const { return m_inputPayloadEncodingType; }
141 inline bool InputPayloadEncodingTypeHasBeenSet() const { return m_inputPayloadEncodingTypeHasBeenSet; }
142 inline void SetInputPayloadEncodingType(LambdaInputPayloadEncodingType value) { m_inputPayloadEncodingTypeHasBeenSet = true; m_inputPayloadEncodingType = value; }
145
147
150 inline const Aws::Vector<Aws::String>& GetExecArgs() const { return m_execArgs; }
151 inline bool ExecArgsHasBeenSet() const { return m_execArgsHasBeenSet; }
152 template<typename ExecArgsT = Aws::Vector<Aws::String>>
153 void SetExecArgs(ExecArgsT&& value) { m_execArgsHasBeenSet = true; m_execArgs = std::forward<ExecArgsT>(value); }
154 template<typename ExecArgsT = Aws::Vector<Aws::String>>
155 LambdaExecutionParameters& WithExecArgs(ExecArgsT&& value) { SetExecArgs(std::forward<ExecArgsT>(value)); return *this;}
156 template<typename ExecArgsT = Aws::String>
157 LambdaExecutionParameters& AddExecArgs(ExecArgsT&& value) { m_execArgsHasBeenSet = true; m_execArgs.emplace_back(std::forward<ExecArgsT>(value)); return *this; }
159
161
165 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironmentVariables() const { return m_environmentVariables; }
166 inline bool EnvironmentVariablesHasBeenSet() const { return m_environmentVariablesHasBeenSet; }
167 template<typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
168 void SetEnvironmentVariables(EnvironmentVariablesT&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables = std::forward<EnvironmentVariablesT>(value); }
169 template<typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
170 LambdaExecutionParameters& WithEnvironmentVariables(EnvironmentVariablesT&& value) { SetEnvironmentVariables(std::forward<EnvironmentVariablesT>(value)); return *this;}
171 template<typename EnvironmentVariablesKeyT = Aws::String, typename EnvironmentVariablesValueT = Aws::String>
172 LambdaExecutionParameters& AddEnvironmentVariables(EnvironmentVariablesKeyT&& key, EnvironmentVariablesValueT&& value) {
173 m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(std::forward<EnvironmentVariablesKeyT>(key), std::forward<EnvironmentVariablesValueT>(value)); return *this;
174 }
176
178
181 inline const LambdaLinuxProcessParams& GetLinuxProcessParams() const { return m_linuxProcessParams; }
182 inline bool LinuxProcessParamsHasBeenSet() const { return m_linuxProcessParamsHasBeenSet; }
183 template<typename LinuxProcessParamsT = LambdaLinuxProcessParams>
184 void SetLinuxProcessParams(LinuxProcessParamsT&& value) { m_linuxProcessParamsHasBeenSet = true; m_linuxProcessParams = std::forward<LinuxProcessParamsT>(value); }
185 template<typename LinuxProcessParamsT = LambdaLinuxProcessParams>
186 LambdaExecutionParameters& WithLinuxProcessParams(LinuxProcessParamsT&& value) { SetLinuxProcessParams(std::forward<LinuxProcessParamsT>(value)); return *this;}
188 private:
189
190 Aws::Vector<LambdaEventSource> m_eventSources;
191 bool m_eventSourcesHasBeenSet = false;
192
193 int m_maxQueueSize{0};
194 bool m_maxQueueSizeHasBeenSet = false;
195
196 int m_maxInstancesCount{0};
197 bool m_maxInstancesCountHasBeenSet = false;
198
199 int m_maxIdleTimeInSeconds{0};
200 bool m_maxIdleTimeInSecondsHasBeenSet = false;
201
202 int m_timeoutInSeconds{0};
203 bool m_timeoutInSecondsHasBeenSet = false;
204
205 int m_statusTimeoutInSeconds{0};
206 bool m_statusTimeoutInSecondsHasBeenSet = false;
207
208 bool m_pinned{false};
209 bool m_pinnedHasBeenSet = false;
210
212 bool m_inputPayloadEncodingTypeHasBeenSet = false;
213
214 Aws::Vector<Aws::String> m_execArgs;
215 bool m_execArgsHasBeenSet = false;
216
217 Aws::Map<Aws::String, Aws::String> m_environmentVariables;
218 bool m_environmentVariablesHasBeenSet = false;
219
220 LambdaLinuxProcessParams m_linuxProcessParams;
221 bool m_linuxProcessParamsHasBeenSet = false;
222 };
223
224} // namespace Model
225} // namespace GreengrassV2
226} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetEnvironmentVariables() const
void SetInputPayloadEncodingType(LambdaInputPayloadEncodingType value)
LambdaExecutionParameters & WithMaxInstancesCount(int value)
AWS_GREENGRASSV2_API LambdaExecutionParameters(Aws::Utils::Json::JsonView jsonValue)
LambdaExecutionParameters & AddExecArgs(ExecArgsT &&value)
LambdaExecutionParameters & WithTimeoutInSeconds(int value)
const Aws::Vector< Aws::String > & GetExecArgs() const
LambdaExecutionParameters & WithInputPayloadEncodingType(LambdaInputPayloadEncodingType value)
const Aws::Vector< LambdaEventSource > & GetEventSources() const
LambdaExecutionParameters & WithMaxQueueSize(int value)
AWS_GREENGRASSV2_API LambdaExecutionParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
LambdaExecutionParameters & WithMaxIdleTimeInSeconds(int value)
LambdaExecutionParameters & WithEnvironmentVariables(EnvironmentVariablesT &&value)
LambdaExecutionParameters & WithExecArgs(ExecArgsT &&value)
LambdaExecutionParameters & AddEnvironmentVariables(EnvironmentVariablesKeyT &&key, EnvironmentVariablesValueT &&value)
LambdaExecutionParameters & WithLinuxProcessParams(LinuxProcessParamsT &&value)
LambdaExecutionParameters & AddEventSources(EventSourcesT &&value)
LambdaInputPayloadEncodingType GetInputPayloadEncodingType() const
AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const
const LambdaLinuxProcessParams & GetLinuxProcessParams() const
LambdaExecutionParameters & WithStatusTimeoutInSeconds(int value)
AWS_GREENGRASSV2_API LambdaExecutionParameters()=default
LambdaExecutionParameters & WithEventSources(EventSourcesT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue