AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
FunctionConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/greengrass/Greengrass_EXPORTS.h>
9#include <aws/greengrass/model/EncodingType.h>
10#include <aws/greengrass/model/FunctionConfigurationEnvironment.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Greengrass {
22namespace Model {
23
30 public:
31 AWS_GREENGRASS_API FunctionConfiguration() = default;
34 AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline EncodingType GetEncodingType() const { return m_encodingType; }
42 inline bool EncodingTypeHasBeenSet() const { return m_encodingTypeHasBeenSet; }
43 inline void SetEncodingType(EncodingType value) {
44 m_encodingTypeHasBeenSet = true;
45 m_encodingType = value;
46 }
48 SetEncodingType(value);
49 return *this;
50 }
52
54
57 inline const FunctionConfigurationEnvironment& GetEnvironment() const { return m_environment; }
58 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
59 template <typename EnvironmentT = FunctionConfigurationEnvironment>
60 void SetEnvironment(EnvironmentT&& value) {
61 m_environmentHasBeenSet = true;
62 m_environment = std::forward<EnvironmentT>(value);
63 }
64 template <typename EnvironmentT = FunctionConfigurationEnvironment>
65 FunctionConfiguration& WithEnvironment(EnvironmentT&& value) {
66 SetEnvironment(std::forward<EnvironmentT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetExecArgs() const { return m_execArgs; }
76 inline bool ExecArgsHasBeenSet() const { return m_execArgsHasBeenSet; }
77 template <typename ExecArgsT = Aws::String>
78 void SetExecArgs(ExecArgsT&& value) {
79 m_execArgsHasBeenSet = true;
80 m_execArgs = std::forward<ExecArgsT>(value);
81 }
82 template <typename ExecArgsT = Aws::String>
83 FunctionConfiguration& WithExecArgs(ExecArgsT&& value) {
84 SetExecArgs(std::forward<ExecArgsT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetExecutable() const { return m_executable; }
94 inline bool ExecutableHasBeenSet() const { return m_executableHasBeenSet; }
95 template <typename ExecutableT = Aws::String>
96 void SetExecutable(ExecutableT&& value) {
97 m_executableHasBeenSet = true;
98 m_executable = std::forward<ExecutableT>(value);
99 }
100 template <typename ExecutableT = Aws::String>
101 FunctionConfiguration& WithExecutable(ExecutableT&& value) {
102 SetExecutable(std::forward<ExecutableT>(value));
103 return *this;
104 }
106
108
113 inline int GetMemorySize() const { return m_memorySize; }
114 inline bool MemorySizeHasBeenSet() const { return m_memorySizeHasBeenSet; }
115 inline void SetMemorySize(int value) {
116 m_memorySizeHasBeenSet = true;
117 m_memorySize = value;
118 }
120 SetMemorySize(value);
121 return *this;
122 }
124
126
130 inline bool GetPinned() const { return m_pinned; }
131 inline bool PinnedHasBeenSet() const { return m_pinnedHasBeenSet; }
132 inline void SetPinned(bool value) {
133 m_pinnedHasBeenSet = true;
134 m_pinned = value;
135 }
136 inline FunctionConfiguration& WithPinned(bool value) {
137 SetPinned(value);
138 return *this;
139 }
141
143
148 inline int GetTimeout() const { return m_timeout; }
149 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
150 inline void SetTimeout(int value) {
151 m_timeoutHasBeenSet = true;
152 m_timeout = value;
153 }
155 SetTimeout(value);
156 return *this;
157 }
159
161
165 inline const Aws::String& GetFunctionRuntimeOverride() const { return m_functionRuntimeOverride; }
166 inline bool FunctionRuntimeOverrideHasBeenSet() const { return m_functionRuntimeOverrideHasBeenSet; }
167 template <typename FunctionRuntimeOverrideT = Aws::String>
168 void SetFunctionRuntimeOverride(FunctionRuntimeOverrideT&& value) {
169 m_functionRuntimeOverrideHasBeenSet = true;
170 m_functionRuntimeOverride = std::forward<FunctionRuntimeOverrideT>(value);
171 }
172 template <typename FunctionRuntimeOverrideT = Aws::String>
173 FunctionConfiguration& WithFunctionRuntimeOverride(FunctionRuntimeOverrideT&& value) {
174 SetFunctionRuntimeOverride(std::forward<FunctionRuntimeOverrideT>(value));
175 return *this;
176 }
178 private:
179 EncodingType m_encodingType{EncodingType::NOT_SET};
180
181 FunctionConfigurationEnvironment m_environment;
182
183 Aws::String m_execArgs;
184
185 Aws::String m_executable;
186
187 int m_memorySize{0};
188
189 bool m_pinned{false};
190
191 int m_timeout{0};
192
193 Aws::String m_functionRuntimeOverride;
194 bool m_encodingTypeHasBeenSet = false;
195 bool m_environmentHasBeenSet = false;
196 bool m_execArgsHasBeenSet = false;
197 bool m_executableHasBeenSet = false;
198 bool m_memorySizeHasBeenSet = false;
199 bool m_pinnedHasBeenSet = false;
200 bool m_timeoutHasBeenSet = false;
201 bool m_functionRuntimeOverrideHasBeenSet = false;
202};
203
204} // namespace Model
205} // namespace Greengrass
206} // namespace Aws
FunctionConfiguration & WithFunctionRuntimeOverride(FunctionRuntimeOverrideT &&value)
FunctionConfiguration & WithTimeout(int value)
FunctionConfiguration & WithExecutable(ExecutableT &&value)
FunctionConfiguration & WithPinned(bool value)
const FunctionConfigurationEnvironment & GetEnvironment() const
FunctionConfiguration & WithMemorySize(int value)
FunctionConfiguration & WithEncodingType(EncodingType value)
FunctionConfiguration & WithExecArgs(ExecArgsT &&value)
AWS_GREENGRASS_API FunctionConfiguration()=default
AWS_GREENGRASS_API FunctionConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
FunctionConfiguration & WithEnvironment(EnvironmentT &&value)
void SetFunctionRuntimeOverride(FunctionRuntimeOverrideT &&value)
AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GREENGRASS_API FunctionConfiguration(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue