AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
KubernetesWorkloadDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/guardduty/GuardDuty_EXPORTS.h>
10#include <aws/guardduty/model/Container.h>
11#include <aws/guardduty/model/Volume.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GuardDuty {
23namespace Model {
24
32 public:
33 AWS_GUARDDUTY_API KubernetesWorkloadDetails() = default;
36 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetType() const { return m_type; }
61 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
62 template <typename TypeT = Aws::String>
63 void SetType(TypeT&& value) {
64 m_typeHasBeenSet = true;
65 m_type = std::forward<TypeT>(value);
66 }
67 template <typename TypeT = Aws::String>
69 SetType(std::forward<TypeT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetUid() const { return m_uid; }
79 inline bool UidHasBeenSet() const { return m_uidHasBeenSet; }
80 template <typename UidT = Aws::String>
81 void SetUid(UidT&& value) {
82 m_uidHasBeenSet = true;
83 m_uid = std::forward<UidT>(value);
84 }
85 template <typename UidT = Aws::String>
87 SetUid(std::forward<UidT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetNamespace() const { return m_namespace; }
97 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
98 template <typename NamespaceT = Aws::String>
99 void SetNamespace(NamespaceT&& value) {
100 m_namespaceHasBeenSet = true;
101 m_namespace = std::forward<NamespaceT>(value);
102 }
103 template <typename NamespaceT = Aws::String>
105 SetNamespace(std::forward<NamespaceT>(value));
106 return *this;
107 }
109
111
115 inline bool GetHostNetwork() const { return m_hostNetwork; }
116 inline bool HostNetworkHasBeenSet() const { return m_hostNetworkHasBeenSet; }
117 inline void SetHostNetwork(bool value) {
118 m_hostNetworkHasBeenSet = true;
119 m_hostNetwork = value;
120 }
122 SetHostNetwork(value);
123 return *this;
124 }
126
128
131 inline const Aws::Vector<Container>& GetContainers() const { return m_containers; }
132 inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; }
133 template <typename ContainersT = Aws::Vector<Container>>
134 void SetContainers(ContainersT&& value) {
135 m_containersHasBeenSet = true;
136 m_containers = std::forward<ContainersT>(value);
137 }
138 template <typename ContainersT = Aws::Vector<Container>>
140 SetContainers(std::forward<ContainersT>(value));
141 return *this;
142 }
143 template <typename ContainersT = Container>
145 m_containersHasBeenSet = true;
146 m_containers.emplace_back(std::forward<ContainersT>(value));
147 return *this;
148 }
150
152
155 inline const Aws::Vector<Volume>& GetVolumes() const { return m_volumes; }
156 inline bool VolumesHasBeenSet() const { return m_volumesHasBeenSet; }
157 template <typename VolumesT = Aws::Vector<Volume>>
158 void SetVolumes(VolumesT&& value) {
159 m_volumesHasBeenSet = true;
160 m_volumes = std::forward<VolumesT>(value);
161 }
162 template <typename VolumesT = Aws::Vector<Volume>>
164 SetVolumes(std::forward<VolumesT>(value));
165 return *this;
166 }
167 template <typename VolumesT = Volume>
169 m_volumesHasBeenSet = true;
170 m_volumes.emplace_back(std::forward<VolumesT>(value));
171 return *this;
172 }
174
176
179 inline const Aws::String& GetServiceAccountName() const { return m_serviceAccountName; }
180 inline bool ServiceAccountNameHasBeenSet() const { return m_serviceAccountNameHasBeenSet; }
181 template <typename ServiceAccountNameT = Aws::String>
182 void SetServiceAccountName(ServiceAccountNameT&& value) {
183 m_serviceAccountNameHasBeenSet = true;
184 m_serviceAccountName = std::forward<ServiceAccountNameT>(value);
185 }
186 template <typename ServiceAccountNameT = Aws::String>
187 KubernetesWorkloadDetails& WithServiceAccountName(ServiceAccountNameT&& value) {
188 SetServiceAccountName(std::forward<ServiceAccountNameT>(value));
189 return *this;
190 }
192
194
197 inline bool GetHostIPC() const { return m_hostIPC; }
198 inline bool HostIPCHasBeenSet() const { return m_hostIPCHasBeenSet; }
199 inline void SetHostIPC(bool value) {
200 m_hostIPCHasBeenSet = true;
201 m_hostIPC = value;
202 }
204 SetHostIPC(value);
205 return *this;
206 }
208
210
213 inline bool GetHostPID() const { return m_hostPID; }
214 inline bool HostPIDHasBeenSet() const { return m_hostPIDHasBeenSet; }
215 inline void SetHostPID(bool value) {
216 m_hostPIDHasBeenSet = true;
217 m_hostPID = value;
218 }
220 SetHostPID(value);
221 return *this;
222 }
224 private:
225 Aws::String m_name;
226
227 Aws::String m_type;
228
229 Aws::String m_uid;
230
231 Aws::String m_namespace;
232
233 bool m_hostNetwork{false};
234
235 Aws::Vector<Container> m_containers;
236
237 Aws::Vector<Volume> m_volumes;
238
239 Aws::String m_serviceAccountName;
240
241 bool m_hostIPC{false};
242
243 bool m_hostPID{false};
244 bool m_nameHasBeenSet = false;
245 bool m_typeHasBeenSet = false;
246 bool m_uidHasBeenSet = false;
247 bool m_namespaceHasBeenSet = false;
248 bool m_hostNetworkHasBeenSet = false;
249 bool m_containersHasBeenSet = false;
250 bool m_volumesHasBeenSet = false;
251 bool m_serviceAccountNameHasBeenSet = false;
252 bool m_hostIPCHasBeenSet = false;
253 bool m_hostPIDHasBeenSet = false;
254};
255
256} // namespace Model
257} // namespace GuardDuty
258} // namespace Aws
const Aws::Vector< Container > & GetContainers() const
KubernetesWorkloadDetails & WithHostNetwork(bool value)
AWS_GUARDDUTY_API KubernetesWorkloadDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
KubernetesWorkloadDetails & WithUid(UidT &&value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
KubernetesWorkloadDetails & WithName(NameT &&value)
KubernetesWorkloadDetails & WithHostIPC(bool value)
KubernetesWorkloadDetails & WithServiceAccountName(ServiceAccountNameT &&value)
KubernetesWorkloadDetails & AddContainers(ContainersT &&value)
AWS_GUARDDUTY_API KubernetesWorkloadDetails()=default
KubernetesWorkloadDetails & WithType(TypeT &&value)
KubernetesWorkloadDetails & AddVolumes(VolumesT &&value)
KubernetesWorkloadDetails & WithContainers(ContainersT &&value)
KubernetesWorkloadDetails & WithVolumes(VolumesT &&value)
KubernetesWorkloadDetails & WithHostPID(bool value)
KubernetesWorkloadDetails & WithNamespace(NamespaceT &&value)
AWS_GUARDDUTY_API KubernetesWorkloadDetails(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue