AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
KubernetesWorkloadDetails.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/guardduty/model/Container.h>
11#include <aws/guardduty/model/Volume.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace GuardDuty
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_GUARDDUTY_API KubernetesWorkloadDetails() = default;
41 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetName() const { return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 template<typename NameT = Aws::String>
51 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
52 template<typename NameT = Aws::String>
53 KubernetesWorkloadDetails& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
64 template<typename TypeT = Aws::String>
65 KubernetesWorkloadDetails& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
67
69
72 inline const Aws::String& GetUid() const { return m_uid; }
73 inline bool UidHasBeenSet() const { return m_uidHasBeenSet; }
74 template<typename UidT = Aws::String>
75 void SetUid(UidT&& value) { m_uidHasBeenSet = true; m_uid = std::forward<UidT>(value); }
76 template<typename UidT = Aws::String>
77 KubernetesWorkloadDetails& WithUid(UidT&& value) { SetUid(std::forward<UidT>(value)); return *this;}
79
81
84 inline const Aws::String& GetNamespace() const { return m_namespace; }
85 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
86 template<typename NamespaceT = Aws::String>
87 void SetNamespace(NamespaceT&& value) { m_namespaceHasBeenSet = true; m_namespace = std::forward<NamespaceT>(value); }
88 template<typename NamespaceT = Aws::String>
89 KubernetesWorkloadDetails& WithNamespace(NamespaceT&& value) { SetNamespace(std::forward<NamespaceT>(value)); return *this;}
91
93
97 inline bool GetHostNetwork() const { return m_hostNetwork; }
98 inline bool HostNetworkHasBeenSet() const { return m_hostNetworkHasBeenSet; }
99 inline void SetHostNetwork(bool value) { m_hostNetworkHasBeenSet = true; m_hostNetwork = value; }
100 inline KubernetesWorkloadDetails& WithHostNetwork(bool value) { SetHostNetwork(value); return *this;}
102
104
107 inline const Aws::Vector<Container>& GetContainers() const { return m_containers; }
108 inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; }
109 template<typename ContainersT = Aws::Vector<Container>>
110 void SetContainers(ContainersT&& value) { m_containersHasBeenSet = true; m_containers = std::forward<ContainersT>(value); }
111 template<typename ContainersT = Aws::Vector<Container>>
112 KubernetesWorkloadDetails& WithContainers(ContainersT&& value) { SetContainers(std::forward<ContainersT>(value)); return *this;}
113 template<typename ContainersT = Container>
114 KubernetesWorkloadDetails& AddContainers(ContainersT&& value) { m_containersHasBeenSet = true; m_containers.emplace_back(std::forward<ContainersT>(value)); return *this; }
116
118
121 inline const Aws::Vector<Volume>& GetVolumes() const { return m_volumes; }
122 inline bool VolumesHasBeenSet() const { return m_volumesHasBeenSet; }
123 template<typename VolumesT = Aws::Vector<Volume>>
124 void SetVolumes(VolumesT&& value) { m_volumesHasBeenSet = true; m_volumes = std::forward<VolumesT>(value); }
125 template<typename VolumesT = Aws::Vector<Volume>>
126 KubernetesWorkloadDetails& WithVolumes(VolumesT&& value) { SetVolumes(std::forward<VolumesT>(value)); return *this;}
127 template<typename VolumesT = Volume>
128 KubernetesWorkloadDetails& AddVolumes(VolumesT&& value) { m_volumesHasBeenSet = true; m_volumes.emplace_back(std::forward<VolumesT>(value)); return *this; }
130
132
135 inline const Aws::String& GetServiceAccountName() const { return m_serviceAccountName; }
136 inline bool ServiceAccountNameHasBeenSet() const { return m_serviceAccountNameHasBeenSet; }
137 template<typename ServiceAccountNameT = Aws::String>
138 void SetServiceAccountName(ServiceAccountNameT&& value) { m_serviceAccountNameHasBeenSet = true; m_serviceAccountName = std::forward<ServiceAccountNameT>(value); }
139 template<typename ServiceAccountNameT = Aws::String>
140 KubernetesWorkloadDetails& WithServiceAccountName(ServiceAccountNameT&& value) { SetServiceAccountName(std::forward<ServiceAccountNameT>(value)); return *this;}
142
144
147 inline bool GetHostIPC() const { return m_hostIPC; }
148 inline bool HostIPCHasBeenSet() const { return m_hostIPCHasBeenSet; }
149 inline void SetHostIPC(bool value) { m_hostIPCHasBeenSet = true; m_hostIPC = value; }
150 inline KubernetesWorkloadDetails& WithHostIPC(bool value) { SetHostIPC(value); return *this;}
152
154
157 inline bool GetHostPID() const { return m_hostPID; }
158 inline bool HostPIDHasBeenSet() const { return m_hostPIDHasBeenSet; }
159 inline void SetHostPID(bool value) { m_hostPIDHasBeenSet = true; m_hostPID = value; }
160 inline KubernetesWorkloadDetails& WithHostPID(bool value) { SetHostPID(value); return *this;}
162 private:
163
164 Aws::String m_name;
165 bool m_nameHasBeenSet = false;
166
167 Aws::String m_type;
168 bool m_typeHasBeenSet = false;
169
170 Aws::String m_uid;
171 bool m_uidHasBeenSet = false;
172
173 Aws::String m_namespace;
174 bool m_namespaceHasBeenSet = false;
175
176 bool m_hostNetwork{false};
177 bool m_hostNetworkHasBeenSet = false;
178
179 Aws::Vector<Container> m_containers;
180 bool m_containersHasBeenSet = false;
181
182 Aws::Vector<Volume> m_volumes;
183 bool m_volumesHasBeenSet = false;
184
185 Aws::String m_serviceAccountName;
186 bool m_serviceAccountNameHasBeenSet = false;
187
188 bool m_hostIPC{false};
189 bool m_hostIPCHasBeenSet = false;
190
191 bool m_hostPID{false};
192 bool m_hostPIDHasBeenSet = false;
193 };
194
195} // namespace Model
196} // namespace GuardDuty
197} // 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