AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
FunctionConfiguration.h
1
6#pragma once
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>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Greengrass
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_GREENGRASS_API FunctionConfiguration() = default;
39 AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline EncodingType GetEncodingType() const { return m_encodingType; }
48 inline bool EncodingTypeHasBeenSet() const { return m_encodingTypeHasBeenSet; }
49 inline void SetEncodingType(EncodingType value) { m_encodingTypeHasBeenSet = true; m_encodingType = value; }
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) { m_environmentHasBeenSet = true; m_environment = std::forward<EnvironmentT>(value); }
61 template<typename EnvironmentT = FunctionConfigurationEnvironment>
62 FunctionConfiguration& WithEnvironment(EnvironmentT&& value) { SetEnvironment(std::forward<EnvironmentT>(value)); return *this;}
64
66
69 inline const Aws::String& GetExecArgs() const { return m_execArgs; }
70 inline bool ExecArgsHasBeenSet() const { return m_execArgsHasBeenSet; }
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>
74 FunctionConfiguration& WithExecArgs(ExecArgsT&& value) { SetExecArgs(std::forward<ExecArgsT>(value)); return *this;}
76
78
81 inline const Aws::String& GetExecutable() const { return m_executable; }
82 inline bool ExecutableHasBeenSet() const { return m_executableHasBeenSet; }
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>
86 FunctionConfiguration& WithExecutable(ExecutableT&& value) { SetExecutable(std::forward<ExecutableT>(value)); return *this;}
88
90
95 inline int GetMemorySize() const { return m_memorySize; }
96 inline bool MemorySizeHasBeenSet() const { return m_memorySizeHasBeenSet; }
97 inline void SetMemorySize(int value) { m_memorySizeHasBeenSet = true; m_memorySize = value; }
98 inline FunctionConfiguration& WithMemorySize(int value) { SetMemorySize(value); return *this;}
100
102
106 inline bool GetPinned() const { return m_pinned; }
107 inline bool PinnedHasBeenSet() const { return m_pinnedHasBeenSet; }
108 inline void SetPinned(bool value) { m_pinnedHasBeenSet = true; m_pinned = value; }
109 inline FunctionConfiguration& WithPinned(bool value) { SetPinned(value); return *this;}
111
113
118 inline int GetTimeout() const { return m_timeout; }
119 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
120 inline void SetTimeout(int value) { m_timeoutHasBeenSet = true; m_timeout = value; }
121 inline FunctionConfiguration& WithTimeout(int value) { SetTimeout(value); return *this;}
123
125
129 inline const Aws::String& GetFunctionRuntimeOverride() const { return m_functionRuntimeOverride; }
130 inline bool FunctionRuntimeOverrideHasBeenSet() const { return m_functionRuntimeOverrideHasBeenSet; }
131 template<typename FunctionRuntimeOverrideT = Aws::String>
132 void SetFunctionRuntimeOverride(FunctionRuntimeOverrideT&& value) { m_functionRuntimeOverrideHasBeenSet = true; m_functionRuntimeOverride = std::forward<FunctionRuntimeOverrideT>(value); }
133 template<typename FunctionRuntimeOverrideT = Aws::String>
134 FunctionConfiguration& WithFunctionRuntimeOverride(FunctionRuntimeOverrideT&& value) { SetFunctionRuntimeOverride(std::forward<FunctionRuntimeOverrideT>(value)); return *this;}
136 private:
137
138 EncodingType m_encodingType{EncodingType::NOT_SET};
139 bool m_encodingTypeHasBeenSet = false;
140
141 FunctionConfigurationEnvironment m_environment;
142 bool m_environmentHasBeenSet = false;
143
144 Aws::String m_execArgs;
145 bool m_execArgsHasBeenSet = false;
146
147 Aws::String m_executable;
148 bool m_executableHasBeenSet = false;
149
150 int m_memorySize{0};
151 bool m_memorySizeHasBeenSet = false;
152
153 bool m_pinned{false};
154 bool m_pinnedHasBeenSet = false;
155
156 int m_timeout{0};
157 bool m_timeoutHasBeenSet = false;
158
159 Aws::String m_functionRuntimeOverride;
160 bool m_functionRuntimeOverrideHasBeenSet = false;
161 };
162
163} // namespace Model
164} // namespace Greengrass
165} // 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