AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FunctionDefaultExecutionConfig.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 FunctionDefaultExecutionConfig();
39 AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
44 inline const FunctionIsolationMode& GetIsolationMode() const{ return m_isolationMode; }
45 inline bool IsolationModeHasBeenSet() const { return m_isolationModeHasBeenSet; }
46 inline void SetIsolationMode(const FunctionIsolationMode& value) { m_isolationModeHasBeenSet = true; m_isolationMode = value; }
47 inline void SetIsolationMode(FunctionIsolationMode&& value) { m_isolationModeHasBeenSet = true; m_isolationMode = std::move(value); }
51
53
54 inline const FunctionRunAsConfig& GetRunAs() const{ return m_runAs; }
55 inline bool RunAsHasBeenSet() const { return m_runAsHasBeenSet; }
56 inline void SetRunAs(const FunctionRunAsConfig& value) { m_runAsHasBeenSet = true; m_runAs = value; }
57 inline void SetRunAs(FunctionRunAsConfig&& value) { m_runAsHasBeenSet = true; m_runAs = std::move(value); }
58 inline FunctionDefaultExecutionConfig& WithRunAs(const FunctionRunAsConfig& value) { SetRunAs(value); return *this;}
59 inline FunctionDefaultExecutionConfig& WithRunAs(FunctionRunAsConfig&& value) { SetRunAs(std::move(value)); return *this;}
61 private:
62
63 FunctionIsolationMode m_isolationMode;
64 bool m_isolationModeHasBeenSet = false;
65
66 FunctionRunAsConfig m_runAs;
67 bool m_runAsHasBeenSet = false;
68 };
69
70} // namespace Model
71} // namespace Greengrass
72} // namespace Aws
FunctionDefaultExecutionConfig & WithIsolationMode(const FunctionIsolationMode &value)
FunctionDefaultExecutionConfig & WithRunAs(const FunctionRunAsConfig &value)
AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const
FunctionDefaultExecutionConfig & WithIsolationMode(FunctionIsolationMode &&value)
AWS_GREENGRASS_API FunctionDefaultExecutionConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_GREENGRASS_API FunctionDefaultExecutionConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
FunctionDefaultExecutionConfig & WithRunAs(FunctionRunAsConfig &&value)
Aws::Utils::Json::JsonValue JsonValue