AWS SDK for C++

AWS SDK for C++ Version 1.11.740

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Greengrass {
21namespace Model {
22
30 public:
31 AWS_GREENGRASS_API FunctionExecutionConfig() = default;
34 AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
38 inline FunctionIsolationMode GetIsolationMode() const { return m_isolationMode; }
39 inline bool IsolationModeHasBeenSet() const { return m_isolationModeHasBeenSet; }
41 m_isolationModeHasBeenSet = true;
42 m_isolationMode = value;
43 }
45 SetIsolationMode(value);
46 return *this;
47 }
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) {
56 m_runAsHasBeenSet = true;
57 m_runAs = std::forward<RunAsT>(value);
58 }
59 template <typename RunAsT = FunctionRunAsConfig>
61 SetRunAs(std::forward<RunAsT>(value));
62 return *this;
63 }
65 private:
67
68 FunctionRunAsConfig m_runAs;
69 bool m_isolationModeHasBeenSet = false;
70 bool m_runAsHasBeenSet = false;
71};
72
73} // namespace Model
74} // namespace Greengrass
75} // 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