AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
EksContainerSecurityContext.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace Batch {
17namespace Model {
18
28 public:
29 AWS_BATCH_API EksContainerSecurityContext() = default;
32 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
43 inline long long GetRunAsUser() const { return m_runAsUser; }
44 inline bool RunAsUserHasBeenSet() const { return m_runAsUserHasBeenSet; }
45 inline void SetRunAsUser(long long value) {
46 m_runAsUserHasBeenSet = true;
47 m_runAsUser = value;
48 }
49 inline EksContainerSecurityContext& WithRunAsUser(long long value) {
50 SetRunAsUser(value);
51 return *this;
52 }
54
56
64 inline long long GetRunAsGroup() const { return m_runAsGroup; }
65 inline bool RunAsGroupHasBeenSet() const { return m_runAsGroupHasBeenSet; }
66 inline void SetRunAsGroup(long long value) {
67 m_runAsGroupHasBeenSet = true;
68 m_runAsGroup = value;
69 }
71 SetRunAsGroup(value);
72 return *this;
73 }
75
77
86 inline bool GetPrivileged() const { return m_privileged; }
87 inline bool PrivilegedHasBeenSet() const { return m_privilegedHasBeenSet; }
88 inline void SetPrivileged(bool value) {
89 m_privilegedHasBeenSet = true;
90 m_privileged = value;
91 }
93 SetPrivileged(value);
94 return *this;
95 }
97
99
103 inline bool GetAllowPrivilegeEscalation() const { return m_allowPrivilegeEscalation; }
104 inline bool AllowPrivilegeEscalationHasBeenSet() const { return m_allowPrivilegeEscalationHasBeenSet; }
105 inline void SetAllowPrivilegeEscalation(bool value) {
106 m_allowPrivilegeEscalationHasBeenSet = true;
107 m_allowPrivilegeEscalation = value;
108 }
111 return *this;
112 }
114
116
124 inline bool GetReadOnlyRootFilesystem() const { return m_readOnlyRootFilesystem; }
125 inline bool ReadOnlyRootFilesystemHasBeenSet() const { return m_readOnlyRootFilesystemHasBeenSet; }
126 inline void SetReadOnlyRootFilesystem(bool value) {
127 m_readOnlyRootFilesystemHasBeenSet = true;
128 m_readOnlyRootFilesystem = value;
129 }
132 return *this;
133 }
135
137
145 inline bool GetRunAsNonRoot() const { return m_runAsNonRoot; }
146 inline bool RunAsNonRootHasBeenSet() const { return m_runAsNonRootHasBeenSet; }
147 inline void SetRunAsNonRoot(bool value) {
148 m_runAsNonRootHasBeenSet = true;
149 m_runAsNonRoot = value;
150 }
152 SetRunAsNonRoot(value);
153 return *this;
154 }
156 private:
157 long long m_runAsUser{0};
158
159 long long m_runAsGroup{0};
160
161 bool m_privileged{false};
162
163 bool m_allowPrivilegeEscalation{false};
164
165 bool m_readOnlyRootFilesystem{false};
166
167 bool m_runAsNonRoot{false};
168 bool m_runAsUserHasBeenSet = false;
169 bool m_runAsGroupHasBeenSet = false;
170 bool m_privilegedHasBeenSet = false;
171 bool m_allowPrivilegeEscalationHasBeenSet = false;
172 bool m_readOnlyRootFilesystemHasBeenSet = false;
173 bool m_runAsNonRootHasBeenSet = false;
174};
175
176} // namespace Model
177} // namespace Batch
178} // namespace Aws
AWS_BATCH_API EksContainerSecurityContext & operator=(Aws::Utils::Json::JsonView jsonValue)
EksContainerSecurityContext & WithRunAsUser(long long value)
EksContainerSecurityContext & WithRunAsNonRoot(bool value)
AWS_BATCH_API EksContainerSecurityContext()=default
AWS_BATCH_API EksContainerSecurityContext(Aws::Utils::Json::JsonView jsonValue)
EksContainerSecurityContext & WithAllowPrivilegeEscalation(bool value)
EksContainerSecurityContext & WithReadOnlyRootFilesystem(bool value)
EksContainerSecurityContext & WithRunAsGroup(long long value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
EksContainerSecurityContext & WithPrivileged(bool value)
Aws::Utils::Json::JsonValue JsonValue