7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/batch/model/EksContainerLinuxCapabilities.h>
9#include <aws/batch/model/EksSeccompProfile.h>
51 m_runAsUserHasBeenSet =
true;
73 m_runAsGroupHasBeenSet =
true;
95 m_privilegedHasBeenSet =
true;
112 m_allowPrivilegeEscalationHasBeenSet =
true;
113 m_allowPrivilegeEscalation = value;
133 m_readOnlyRootFilesystemHasBeenSet =
true;
134 m_readOnlyRootFilesystem = value;
154 m_runAsNonRootHasBeenSet =
true;
155 m_runAsNonRoot = value;
171 template <
typename CapabilitiesT = EksContainerLinuxCapabilities>
173 m_capabilitiesHasBeenSet =
true;
174 m_capabilities = std::forward<CapabilitiesT>(value);
176 template <
typename CapabilitiesT = EksContainerLinuxCapabilities>
193 template <
typename SeccompProfileT = EksSeccompProfile>
195 m_seccompProfileHasBeenSet =
true;
196 m_seccompProfile = std::forward<SeccompProfileT>(value);
198 template <
typename SeccompProfileT = EksSeccompProfile>
205 long long m_runAsUser{0};
207 long long m_runAsGroup{0};
209 bool m_privileged{
false};
211 bool m_allowPrivilegeEscalation{
false};
213 bool m_readOnlyRootFilesystem{
false};
215 bool m_runAsNonRoot{
false};
217 EksContainerLinuxCapabilities m_capabilities;
219 EksSeccompProfile m_seccompProfile;
220 bool m_runAsUserHasBeenSet =
false;
221 bool m_runAsGroupHasBeenSet =
false;
222 bool m_privilegedHasBeenSet =
false;
223 bool m_allowPrivilegeEscalationHasBeenSet =
false;
224 bool m_readOnlyRootFilesystemHasBeenSet =
false;
225 bool m_runAsNonRootHasBeenSet =
false;
226 bool m_capabilitiesHasBeenSet =
false;
227 bool m_seccompProfileHasBeenSet =
false;
AWS_BATCH_API EksContainerSecurityContext & operator=(Aws::Utils::Json::JsonView jsonValue)
bool PrivilegedHasBeenSet() const
void SetAllowPrivilegeEscalation(bool value)
const EksContainerLinuxCapabilities & GetCapabilities() const
bool RunAsNonRootHasBeenSet() const
void SetRunAsUser(long long value)
void SetReadOnlyRootFilesystem(bool value)
EksContainerSecurityContext & WithRunAsUser(long long value)
bool ReadOnlyRootFilesystemHasBeenSet() const
long long GetRunAsGroup() const
EksContainerSecurityContext & WithRunAsNonRoot(bool value)
void SetSeccompProfile(SeccompProfileT &&value)
AWS_BATCH_API EksContainerSecurityContext()=default
bool CapabilitiesHasBeenSet() const
AWS_BATCH_API EksContainerSecurityContext(Aws::Utils::Json::JsonView jsonValue)
void SetRunAsNonRoot(bool value)
EksContainerSecurityContext & WithSeccompProfile(SeccompProfileT &&value)
void SetRunAsGroup(long long value)
bool GetRunAsNonRoot() const
EksContainerSecurityContext & WithAllowPrivilegeEscalation(bool value)
bool GetReadOnlyRootFilesystem() const
bool GetAllowPrivilegeEscalation() const
EksContainerSecurityContext & WithReadOnlyRootFilesystem(bool value)
bool SeccompProfileHasBeenSet() const
EksContainerSecurityContext & WithCapabilities(CapabilitiesT &&value)
bool GetPrivileged() const
bool AllowPrivilegeEscalationHasBeenSet() const
void SetPrivileged(bool value)
EksContainerSecurityContext & WithRunAsGroup(long long value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
bool RunAsGroupHasBeenSet() const
long long GetRunAsUser() const
bool RunAsUserHasBeenSet() const
EksContainerSecurityContext & WithPrivileged(bool value)
void SetCapabilities(CapabilitiesT &&value)
const EksSeccompProfile & GetSeccompProfile() const
Aws::Utils::Json::JsonValue JsonValue