AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
39 AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const EncodingType& GetEncodingType() const{ return m_encodingType; }
48 inline bool EncodingTypeHasBeenSet() const { return m_encodingTypeHasBeenSet; }
49 inline void SetEncodingType(const EncodingType& value) { m_encodingTypeHasBeenSet = true; m_encodingType = value; }
50 inline void SetEncodingType(EncodingType&& value) { m_encodingTypeHasBeenSet = true; m_encodingType = std::move(value); }
51 inline FunctionConfiguration& WithEncodingType(const EncodingType& value) { SetEncodingType(value); return *this;}
52 inline FunctionConfiguration& WithEncodingType(EncodingType&& value) { SetEncodingType(std::move(value)); return *this;}
54
56
59 inline const FunctionConfigurationEnvironment& GetEnvironment() const{ return m_environment; }
60 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
61 inline void SetEnvironment(const FunctionConfigurationEnvironment& value) { m_environmentHasBeenSet = true; m_environment = value; }
62 inline void SetEnvironment(FunctionConfigurationEnvironment&& value) { m_environmentHasBeenSet = true; m_environment = std::move(value); }
64 inline FunctionConfiguration& WithEnvironment(FunctionConfigurationEnvironment&& value) { SetEnvironment(std::move(value)); return *this;}
66
68
71 inline const Aws::String& GetExecArgs() const{ return m_execArgs; }
72 inline bool ExecArgsHasBeenSet() const { return m_execArgsHasBeenSet; }
73 inline void SetExecArgs(const Aws::String& value) { m_execArgsHasBeenSet = true; m_execArgs = value; }
74 inline void SetExecArgs(Aws::String&& value) { m_execArgsHasBeenSet = true; m_execArgs = std::move(value); }
75 inline void SetExecArgs(const char* value) { m_execArgsHasBeenSet = true; m_execArgs.assign(value); }
76 inline FunctionConfiguration& WithExecArgs(const Aws::String& value) { SetExecArgs(value); return *this;}
77 inline FunctionConfiguration& WithExecArgs(Aws::String&& value) { SetExecArgs(std::move(value)); return *this;}
78 inline FunctionConfiguration& WithExecArgs(const char* value) { SetExecArgs(value); return *this;}
80
82
85 inline const Aws::String& GetExecutable() const{ return m_executable; }
86 inline bool ExecutableHasBeenSet() const { return m_executableHasBeenSet; }
87 inline void SetExecutable(const Aws::String& value) { m_executableHasBeenSet = true; m_executable = value; }
88 inline void SetExecutable(Aws::String&& value) { m_executableHasBeenSet = true; m_executable = std::move(value); }
89 inline void SetExecutable(const char* value) { m_executableHasBeenSet = true; m_executable.assign(value); }
90 inline FunctionConfiguration& WithExecutable(const Aws::String& value) { SetExecutable(value); return *this;}
91 inline FunctionConfiguration& WithExecutable(Aws::String&& value) { SetExecutable(std::move(value)); return *this;}
92 inline FunctionConfiguration& WithExecutable(const char* value) { SetExecutable(value); return *this;}
94
96
101 inline int GetMemorySize() const{ return m_memorySize; }
102 inline bool MemorySizeHasBeenSet() const { return m_memorySizeHasBeenSet; }
103 inline void SetMemorySize(int value) { m_memorySizeHasBeenSet = true; m_memorySize = value; }
104 inline FunctionConfiguration& WithMemorySize(int value) { SetMemorySize(value); return *this;}
106
108
112 inline bool GetPinned() const{ return m_pinned; }
113 inline bool PinnedHasBeenSet() const { return m_pinnedHasBeenSet; }
114 inline void SetPinned(bool value) { m_pinnedHasBeenSet = true; m_pinned = value; }
115 inline FunctionConfiguration& WithPinned(bool value) { SetPinned(value); return *this;}
117
119
124 inline int GetTimeout() const{ return m_timeout; }
125 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
126 inline void SetTimeout(int value) { m_timeoutHasBeenSet = true; m_timeout = value; }
127 inline FunctionConfiguration& WithTimeout(int value) { SetTimeout(value); return *this;}
129
131
135 inline const Aws::String& GetFunctionRuntimeOverride() const{ return m_functionRuntimeOverride; }
136 inline bool FunctionRuntimeOverrideHasBeenSet() const { return m_functionRuntimeOverrideHasBeenSet; }
137 inline void SetFunctionRuntimeOverride(const Aws::String& value) { m_functionRuntimeOverrideHasBeenSet = true; m_functionRuntimeOverride = value; }
138 inline void SetFunctionRuntimeOverride(Aws::String&& value) { m_functionRuntimeOverrideHasBeenSet = true; m_functionRuntimeOverride = std::move(value); }
139 inline void SetFunctionRuntimeOverride(const char* value) { m_functionRuntimeOverrideHasBeenSet = true; m_functionRuntimeOverride.assign(value); }
142 inline FunctionConfiguration& WithFunctionRuntimeOverride(const char* value) { SetFunctionRuntimeOverride(value); return *this;}
144 private:
145
146 EncodingType m_encodingType;
147 bool m_encodingTypeHasBeenSet = false;
148
150 bool m_environmentHasBeenSet = false;
151
152 Aws::String m_execArgs;
153 bool m_execArgsHasBeenSet = false;
154
155 Aws::String m_executable;
156 bool m_executableHasBeenSet = false;
157
158 int m_memorySize;
159 bool m_memorySizeHasBeenSet = false;
160
161 bool m_pinned;
162 bool m_pinnedHasBeenSet = false;
163
164 int m_timeout;
165 bool m_timeoutHasBeenSet = false;
166
167 Aws::String m_functionRuntimeOverride;
168 bool m_functionRuntimeOverrideHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace Greengrass
173} // namespace Aws
FunctionConfiguration & WithEncodingType(EncodingType &&value)
void SetEnvironment(const FunctionConfigurationEnvironment &value)
FunctionConfiguration & WithFunctionRuntimeOverride(Aws::String &&value)
FunctionConfiguration & WithTimeout(int value)
FunctionConfiguration & WithFunctionRuntimeOverride(const Aws::String &value)
FunctionConfiguration & WithPinned(bool value)
FunctionConfiguration & WithFunctionRuntimeOverride(const char *value)
const FunctionConfigurationEnvironment & GetEnvironment() const
FunctionConfiguration & WithMemorySize(int value)
FunctionConfiguration & WithExecArgs(Aws::String &&value)
AWS_GREENGRASS_API FunctionConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
FunctionConfiguration & WithExecArgs(const char *value)
FunctionConfiguration & WithExecutable(const char *value)
FunctionConfiguration & WithExecutable(Aws::String &&value)
void SetFunctionRuntimeOverride(const Aws::String &value)
FunctionConfiguration & WithEnvironment(FunctionConfigurationEnvironment &&value)
FunctionConfiguration & WithEncodingType(const EncodingType &value)
void SetEnvironment(FunctionConfigurationEnvironment &&value)
FunctionConfiguration & WithExecArgs(const Aws::String &value)
FunctionConfiguration & WithEnvironment(const FunctionConfigurationEnvironment &value)
AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const
FunctionConfiguration & WithExecutable(const Aws::String &value)
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