7#include <aws/greengrass/Greengrass_EXPORTS.h>
8#include <aws/greengrass/model/EncodingType.h>
9#include <aws/greengrass/model/FunctionConfigurationEnvironment.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
59 template<
typename EnvironmentT = FunctionConfigurationEnvironment>
60 void SetEnvironment(EnvironmentT&& value) { m_environmentHasBeenSet =
true; m_environment = std::forward<EnvironmentT>(value); }
61 template<
typename EnvironmentT = FunctionConfigurationEnvironment>
71 template<
typename ExecArgsT = Aws::String>
72 void SetExecArgs(ExecArgsT&& value) { m_execArgsHasBeenSet =
true; m_execArgs = std::forward<ExecArgsT>(value); }
73 template<
typename ExecArgsT = Aws::String>
83 template<
typename ExecutableT = Aws::String>
84 void SetExecutable(ExecutableT&& value) { m_executableHasBeenSet =
true; m_executable = std::forward<ExecutableT>(value); }
85 template<
typename ExecutableT = Aws::String>
97 inline void SetMemorySize(
int value) { m_memorySizeHasBeenSet =
true; m_memorySize = value; }
108 inline void SetPinned(
bool value) { m_pinnedHasBeenSet =
true; m_pinned = value; }
120 inline void SetTimeout(
int value) { m_timeoutHasBeenSet =
true; m_timeout = value; }
131 template<
typename FunctionRuntimeOverr
ideT = Aws::String>
132 void SetFunctionRuntimeOverride(FunctionRuntimeOverrideT&& value) { m_functionRuntimeOverrideHasBeenSet =
true; m_functionRuntimeOverride = std::forward<FunctionRuntimeOverrideT>(value); }
133 template<
typename FunctionRuntimeOverr
ideT = Aws::String>
139 bool m_encodingTypeHasBeenSet =
false;
141 FunctionConfigurationEnvironment m_environment;
142 bool m_environmentHasBeenSet =
false;
145 bool m_execArgsHasBeenSet =
false;
148 bool m_executableHasBeenSet =
false;
151 bool m_memorySizeHasBeenSet =
false;
153 bool m_pinned{
false};
154 bool m_pinnedHasBeenSet =
false;
157 bool m_timeoutHasBeenSet =
false;
160 bool m_functionRuntimeOverrideHasBeenSet =
false;
FunctionConfiguration & WithFunctionRuntimeOverride(FunctionRuntimeOverrideT &&value)
void SetEnvironment(EnvironmentT &&value)
FunctionConfiguration & WithTimeout(int value)
FunctionConfiguration & WithExecutable(ExecutableT &&value)
bool FunctionRuntimeOverrideHasBeenSet() const
void SetEncodingType(EncodingType value)
const Aws::String & GetExecutable() const
FunctionConfiguration & WithPinned(bool value)
const Aws::String & GetExecArgs() const
const FunctionConfigurationEnvironment & GetEnvironment() const
const Aws::String & GetFunctionRuntimeOverride() const
bool ExecutableHasBeenSet() const
void SetTimeout(int value)
EncodingType GetEncodingType() const
bool EncodingTypeHasBeenSet() const
bool TimeoutHasBeenSet() 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)
void SetExecArgs(ExecArgsT &&value)
bool MemorySizeHasBeenSet() const
int GetMemorySize() const
bool EnvironmentHasBeenSet() const
void SetMemorySize(int value)
FunctionConfiguration & WithEnvironment(EnvironmentT &&value)
void SetFunctionRuntimeOverride(FunctionRuntimeOverrideT &&value)
void SetPinned(bool value)
void SetExecutable(ExecutableT &&value)
bool PinnedHasBeenSet() const
bool ExecArgsHasBeenSet() const
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