AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
FunctionRunAsConfig.h
1
6#pragma once
7#include <aws/greengrass/Greengrass_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace Greengrass {
17namespace Model {
18
31 public:
32 AWS_GREENGRASS_API FunctionRunAsConfig() = default;
33 AWS_GREENGRASS_API FunctionRunAsConfig(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline int GetGid() const { return m_gid; }
42 inline bool GidHasBeenSet() const { return m_gidHasBeenSet; }
43 inline void SetGid(int value) {
44 m_gidHasBeenSet = true;
45 m_gid = value;
46 }
47 inline FunctionRunAsConfig& WithGid(int value) {
48 SetGid(value);
49 return *this;
50 }
52
54
57 inline int GetUid() const { return m_uid; }
58 inline bool UidHasBeenSet() const { return m_uidHasBeenSet; }
59 inline void SetUid(int value) {
60 m_uidHasBeenSet = true;
61 m_uid = value;
62 }
63 inline FunctionRunAsConfig& WithUid(int value) {
64 SetUid(value);
65 return *this;
66 }
68 private:
69 int m_gid{0};
70
71 int m_uid{0};
72 bool m_gidHasBeenSet = false;
73 bool m_uidHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace Greengrass
78} // namespace Aws
AWS_GREENGRASS_API FunctionRunAsConfig()=default
FunctionRunAsConfig & WithUid(int value)
AWS_GREENGRASS_API FunctionRunAsConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_GREENGRASS_API FunctionRunAsConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
FunctionRunAsConfig & WithGid(int value)
AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue