AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EksContainerSecurityContext.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8
9namespace Aws
10{
11namespace Utils
12{
13namespace Json
14{
15 class JsonValue;
16 class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Batch
20{
21namespace Model
22{
23
33 {
34 public:
38 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
50 inline long long GetRunAsUser() const{ return m_runAsUser; }
51 inline bool RunAsUserHasBeenSet() const { return m_runAsUserHasBeenSet; }
52 inline void SetRunAsUser(long long value) { m_runAsUserHasBeenSet = true; m_runAsUser = value; }
53 inline EksContainerSecurityContext& WithRunAsUser(long long value) { SetRunAsUser(value); return *this;}
55
57
65 inline long long GetRunAsGroup() const{ return m_runAsGroup; }
66 inline bool RunAsGroupHasBeenSet() const { return m_runAsGroupHasBeenSet; }
67 inline void SetRunAsGroup(long long value) { m_runAsGroupHasBeenSet = true; m_runAsGroup = value; }
68 inline EksContainerSecurityContext& WithRunAsGroup(long long value) { SetRunAsGroup(value); return *this;}
70
72
81 inline bool GetPrivileged() const{ return m_privileged; }
82 inline bool PrivilegedHasBeenSet() const { return m_privilegedHasBeenSet; }
83 inline void SetPrivileged(bool value) { m_privilegedHasBeenSet = true; m_privileged = value; }
84 inline EksContainerSecurityContext& WithPrivileged(bool value) { SetPrivileged(value); return *this;}
86
88
92 inline bool GetAllowPrivilegeEscalation() const{ return m_allowPrivilegeEscalation; }
93 inline bool AllowPrivilegeEscalationHasBeenSet() const { return m_allowPrivilegeEscalationHasBeenSet; }
94 inline void SetAllowPrivilegeEscalation(bool value) { m_allowPrivilegeEscalationHasBeenSet = true; m_allowPrivilegeEscalation = value; }
97
99
107 inline bool GetReadOnlyRootFilesystem() const{ return m_readOnlyRootFilesystem; }
108 inline bool ReadOnlyRootFilesystemHasBeenSet() const { return m_readOnlyRootFilesystemHasBeenSet; }
109 inline void SetReadOnlyRootFilesystem(bool value) { m_readOnlyRootFilesystemHasBeenSet = true; m_readOnlyRootFilesystem = value; }
112
114
122 inline bool GetRunAsNonRoot() const{ return m_runAsNonRoot; }
123 inline bool RunAsNonRootHasBeenSet() const { return m_runAsNonRootHasBeenSet; }
124 inline void SetRunAsNonRoot(bool value) { m_runAsNonRootHasBeenSet = true; m_runAsNonRoot = value; }
125 inline EksContainerSecurityContext& WithRunAsNonRoot(bool value) { SetRunAsNonRoot(value); return *this;}
127 private:
128
129 long long m_runAsUser;
130 bool m_runAsUserHasBeenSet = false;
131
132 long long m_runAsGroup;
133 bool m_runAsGroupHasBeenSet = false;
134
135 bool m_privileged;
136 bool m_privilegedHasBeenSet = false;
137
138 bool m_allowPrivilegeEscalation;
139 bool m_allowPrivilegeEscalationHasBeenSet = false;
140
141 bool m_readOnlyRootFilesystem;
142 bool m_readOnlyRootFilesystemHasBeenSet = false;
143
144 bool m_runAsNonRoot;
145 bool m_runAsNonRootHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace Batch
150} // 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(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