AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetEventSources(const Aws::Vector<LambdaEventSource>& value) { m_eventSourcesHasBeenSet = true; m_eventSources = value; }
56 inline void SetEventSources(Aws::Vector<LambdaEventSource>&& value) { m_eventSourcesHasBeenSet = true; m_eventSources = std::move(value); }
59 inline LambdaExecutionParameters& AddEventSources(const LambdaEventSource& value) { m_eventSourcesHasBeenSet = true; m_eventSources.push_back(value); return *this; }
60 inline LambdaExecutionParameters& AddEventSources(LambdaEventSource&& value) { m_eventSourcesHasBeenSet = true; m_eventSources.push_back(std::move(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 const LambdaInputPayloadEncodingType& GetInputPayloadEncodingType() const{ return m_inputPayloadEncodingType; }
141 inline bool InputPayloadEncodingTypeHasBeenSet() const { return m_inputPayloadEncodingTypeHasBeenSet; }
142 inline void SetInputPayloadEncodingType(const LambdaInputPayloadEncodingType& value) { m_inputPayloadEncodingTypeHasBeenSet = true; m_inputPayloadEncodingType = value; }
143 inline void SetInputPayloadEncodingType(LambdaInputPayloadEncodingType&& value) { m_inputPayloadEncodingTypeHasBeenSet = true; m_inputPayloadEncodingType = std::move(value); }
147
149
152 inline const Aws::Vector<Aws::String>& GetExecArgs() const{ return m_execArgs; }
153 inline bool ExecArgsHasBeenSet() const { return m_execArgsHasBeenSet; }
154 inline void SetExecArgs(const Aws::Vector<Aws::String>& value) { m_execArgsHasBeenSet = true; m_execArgs = value; }
155 inline void SetExecArgs(Aws::Vector<Aws::String>&& value) { m_execArgsHasBeenSet = true; m_execArgs = std::move(value); }
156 inline LambdaExecutionParameters& WithExecArgs(const Aws::Vector<Aws::String>& value) { SetExecArgs(value); return *this;}
157 inline LambdaExecutionParameters& WithExecArgs(Aws::Vector<Aws::String>&& value) { SetExecArgs(std::move(value)); return *this;}
158 inline LambdaExecutionParameters& AddExecArgs(const Aws::String& value) { m_execArgsHasBeenSet = true; m_execArgs.push_back(value); return *this; }
159 inline LambdaExecutionParameters& AddExecArgs(Aws::String&& value) { m_execArgsHasBeenSet = true; m_execArgs.push_back(std::move(value)); return *this; }
160 inline LambdaExecutionParameters& AddExecArgs(const char* value) { m_execArgsHasBeenSet = true; m_execArgs.push_back(value); return *this; }
162
164
168 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironmentVariables() const{ return m_environmentVariables; }
169 inline bool EnvironmentVariablesHasBeenSet() const { return m_environmentVariablesHasBeenSet; }
170 inline void SetEnvironmentVariables(const Aws::Map<Aws::String, Aws::String>& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables = value; }
171 inline void SetEnvironmentVariables(Aws::Map<Aws::String, Aws::String>&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables = std::move(value); }
174 inline LambdaExecutionParameters& AddEnvironmentVariables(const Aws::String& key, const Aws::String& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(key, value); return *this; }
175 inline LambdaExecutionParameters& AddEnvironmentVariables(Aws::String&& key, const Aws::String& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(std::move(key), value); return *this; }
176 inline LambdaExecutionParameters& AddEnvironmentVariables(const Aws::String& key, Aws::String&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(key, std::move(value)); return *this; }
177 inline LambdaExecutionParameters& AddEnvironmentVariables(Aws::String&& key, Aws::String&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(std::move(key), std::move(value)); return *this; }
178 inline LambdaExecutionParameters& AddEnvironmentVariables(const char* key, Aws::String&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(key, std::move(value)); return *this; }
179 inline LambdaExecutionParameters& AddEnvironmentVariables(Aws::String&& key, const char* value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(std::move(key), value); return *this; }
180 inline LambdaExecutionParameters& AddEnvironmentVariables(const char* key, const char* value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(key, value); return *this; }
182
184
187 inline const LambdaLinuxProcessParams& GetLinuxProcessParams() const{ return m_linuxProcessParams; }
188 inline bool LinuxProcessParamsHasBeenSet() const { return m_linuxProcessParamsHasBeenSet; }
189 inline void SetLinuxProcessParams(const LambdaLinuxProcessParams& value) { m_linuxProcessParamsHasBeenSet = true; m_linuxProcessParams = value; }
190 inline void SetLinuxProcessParams(LambdaLinuxProcessParams&& value) { m_linuxProcessParamsHasBeenSet = true; m_linuxProcessParams = std::move(value); }
194 private:
195
196 Aws::Vector<LambdaEventSource> m_eventSources;
197 bool m_eventSourcesHasBeenSet = false;
198
199 int m_maxQueueSize;
200 bool m_maxQueueSizeHasBeenSet = false;
201
202 int m_maxInstancesCount;
203 bool m_maxInstancesCountHasBeenSet = false;
204
205 int m_maxIdleTimeInSeconds;
206 bool m_maxIdleTimeInSecondsHasBeenSet = false;
207
208 int m_timeoutInSeconds;
209 bool m_timeoutInSecondsHasBeenSet = false;
210
211 int m_statusTimeoutInSeconds;
212 bool m_statusTimeoutInSecondsHasBeenSet = false;
213
214 bool m_pinned;
215 bool m_pinnedHasBeenSet = false;
216
217 LambdaInputPayloadEncodingType m_inputPayloadEncodingType;
218 bool m_inputPayloadEncodingTypeHasBeenSet = false;
219
220 Aws::Vector<Aws::String> m_execArgs;
221 bool m_execArgsHasBeenSet = false;
222
223 Aws::Map<Aws::String, Aws::String> m_environmentVariables;
224 bool m_environmentVariablesHasBeenSet = false;
225
226 LambdaLinuxProcessParams m_linuxProcessParams;
227 bool m_linuxProcessParamsHasBeenSet = false;
228 };
229
230} // namespace Model
231} // namespace GreengrassV2
232} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetEnvironmentVariables() const
LambdaExecutionParameters & WithExecArgs(Aws::Vector< Aws::String > &&value)
LambdaExecutionParameters & AddExecArgs(const char *value)
LambdaExecutionParameters & WithMaxInstancesCount(int value)
AWS_GREENGRASSV2_API LambdaExecutionParameters(Aws::Utils::Json::JsonView jsonValue)
LambdaExecutionParameters & AddEnvironmentVariables(const Aws::String &key, const Aws::String &value)
LambdaExecutionParameters & AddEnvironmentVariables(const char *key, const char *value)
LambdaExecutionParameters & WithTimeoutInSeconds(int value)
LambdaExecutionParameters & WithInputPayloadEncodingType(LambdaInputPayloadEncodingType &&value)
LambdaExecutionParameters & AddEventSources(LambdaEventSource &&value)
void SetEnvironmentVariables(Aws::Map< Aws::String, Aws::String > &&value)
void SetInputPayloadEncodingType(const LambdaInputPayloadEncodingType &value)
LambdaExecutionParameters & WithLinuxProcessParams(const LambdaLinuxProcessParams &value)
void SetEventSources(const Aws::Vector< LambdaEventSource > &value)
LambdaExecutionParameters & AddEventSources(const LambdaEventSource &value)
const Aws::Vector< Aws::String > & GetExecArgs() const
void SetLinuxProcessParams(const LambdaLinuxProcessParams &value)
LambdaExecutionParameters & WithEventSources(const Aws::Vector< LambdaEventSource > &value)
LambdaExecutionParameters & AddEnvironmentVariables(Aws::String &&key, Aws::String &&value)
const Aws::Vector< LambdaEventSource > & GetEventSources() const
LambdaExecutionParameters & WithMaxQueueSize(int value)
AWS_GREENGRASSV2_API LambdaExecutionParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
LambdaExecutionParameters & WithEnvironmentVariables(const Aws::Map< Aws::String, Aws::String > &value)
void SetLinuxProcessParams(LambdaLinuxProcessParams &&value)
LambdaExecutionParameters & WithMaxIdleTimeInSeconds(int value)
void SetExecArgs(const Aws::Vector< Aws::String > &value)
LambdaExecutionParameters & WithEventSources(Aws::Vector< LambdaEventSource > &&value)
void SetInputPayloadEncodingType(LambdaInputPayloadEncodingType &&value)
const LambdaInputPayloadEncodingType & GetInputPayloadEncodingType() const
LambdaExecutionParameters & AddExecArgs(const Aws::String &value)
LambdaExecutionParameters & WithExecArgs(const Aws::Vector< Aws::String > &value)
LambdaExecutionParameters & AddEnvironmentVariables(Aws::String &&key, const Aws::String &value)
void SetEnvironmentVariables(const Aws::Map< Aws::String, Aws::String > &value)
LambdaExecutionParameters & WithLinuxProcessParams(LambdaLinuxProcessParams &&value)
LambdaExecutionParameters & AddExecArgs(Aws::String &&value)
void SetEventSources(Aws::Vector< LambdaEventSource > &&value)
LambdaExecutionParameters & AddEnvironmentVariables(const Aws::String &key, Aws::String &&value)
LambdaExecutionParameters & WithEnvironmentVariables(Aws::Map< Aws::String, Aws::String > &&value)
LambdaExecutionParameters & AddEnvironmentVariables(const char *key, Aws::String &&value)
AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const
const LambdaLinuxProcessParams & GetLinuxProcessParams() const
LambdaExecutionParameters & AddEnvironmentVariables(Aws::String &&key, const char *value)
LambdaExecutionParameters & WithInputPayloadEncodingType(const LambdaInputPayloadEncodingType &value)
LambdaExecutionParameters & WithStatusTimeoutInSeconds(int 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