AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
FunctionExecutionConfig.h
1
6#pragma once
7#include <aws/greengrass/Greengrass_EXPORTS.h>
8#include <aws/greengrass/model/FunctionIsolationMode.h>
9#include <aws/greengrass/model/FunctionRunAsConfig.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Greengrass
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_GREENGRASS_API FunctionExecutionConfig() = default;
39 AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
44 inline FunctionIsolationMode GetIsolationMode() const { return m_isolationMode; }
45 inline bool IsolationModeHasBeenSet() const { return m_isolationModeHasBeenSet; }
46 inline void SetIsolationMode(FunctionIsolationMode value) { m_isolationModeHasBeenSet = true; m_isolationMode = value; }
49
51
52 inline const FunctionRunAsConfig& GetRunAs() const { return m_runAs; }
53 inline bool RunAsHasBeenSet() const { return m_runAsHasBeenSet; }
54 template<typename RunAsT = FunctionRunAsConfig>
55 void SetRunAs(RunAsT&& value) { m_runAsHasBeenSet = true; m_runAs = std::forward<RunAsT>(value); }
56 template<typename RunAsT = FunctionRunAsConfig>
57 FunctionExecutionConfig& WithRunAs(RunAsT&& value) { SetRunAs(std::forward<RunAsT>(value)); return *this;}
59 private:
60
62 bool m_isolationModeHasBeenSet = false;
63
64 FunctionRunAsConfig m_runAs;
65 bool m_runAsHasBeenSet = false;
66 };
67
68} // namespace Model
69} // namespace Greengrass
70} // namespace Aws
AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GREENGRASS_API FunctionExecutionConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
FunctionExecutionConfig & WithIsolationMode(FunctionIsolationMode value)
AWS_GREENGRASS_API FunctionExecutionConfig()=default
AWS_GREENGRASS_API FunctionExecutionConfig(Aws::Utils::Json::JsonView jsonValue)
FunctionExecutionConfig & WithRunAs(RunAsT &&value)
Aws::Utils::Json::JsonValue JsonValue