AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
52 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
53 inline KubernetesWorkloadDetails& WithName(const Aws::String& value) { SetName(value); return *this;}
54 inline KubernetesWorkloadDetails& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
55 inline KubernetesWorkloadDetails& WithName(const char* value) { SetName(value); return *this;}
57
59
62 inline const Aws::String& GetType() const{ return m_type; }
63 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
64 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
65 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
66 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
67 inline KubernetesWorkloadDetails& WithType(const Aws::String& value) { SetType(value); return *this;}
68 inline KubernetesWorkloadDetails& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
69 inline KubernetesWorkloadDetails& WithType(const char* value) { SetType(value); return *this;}
71
73
76 inline const Aws::String& GetUid() const{ return m_uid; }
77 inline bool UidHasBeenSet() const { return m_uidHasBeenSet; }
78 inline void SetUid(const Aws::String& value) { m_uidHasBeenSet = true; m_uid = value; }
79 inline void SetUid(Aws::String&& value) { m_uidHasBeenSet = true; m_uid = std::move(value); }
80 inline void SetUid(const char* value) { m_uidHasBeenSet = true; m_uid.assign(value); }
81 inline KubernetesWorkloadDetails& WithUid(const Aws::String& value) { SetUid(value); return *this;}
82 inline KubernetesWorkloadDetails& WithUid(Aws::String&& value) { SetUid(std::move(value)); return *this;}
83 inline KubernetesWorkloadDetails& WithUid(const char* value) { SetUid(value); return *this;}
85
87
90 inline const Aws::String& GetNamespace() const{ return m_namespace; }
91 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
92 inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
93 inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
94 inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
95 inline KubernetesWorkloadDetails& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
96 inline KubernetesWorkloadDetails& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
97 inline KubernetesWorkloadDetails& WithNamespace(const char* value) { SetNamespace(value); return *this;}
99
101
105 inline bool GetHostNetwork() const{ return m_hostNetwork; }
106 inline bool HostNetworkHasBeenSet() const { return m_hostNetworkHasBeenSet; }
107 inline void SetHostNetwork(bool value) { m_hostNetworkHasBeenSet = true; m_hostNetwork = value; }
108 inline KubernetesWorkloadDetails& WithHostNetwork(bool value) { SetHostNetwork(value); return *this;}
110
112
115 inline const Aws::Vector<Container>& GetContainers() const{ return m_containers; }
116 inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; }
117 inline void SetContainers(const Aws::Vector<Container>& value) { m_containersHasBeenSet = true; m_containers = value; }
118 inline void SetContainers(Aws::Vector<Container>&& value) { m_containersHasBeenSet = true; m_containers = std::move(value); }
120 inline KubernetesWorkloadDetails& WithContainers(Aws::Vector<Container>&& value) { SetContainers(std::move(value)); return *this;}
121 inline KubernetesWorkloadDetails& AddContainers(const Container& value) { m_containersHasBeenSet = true; m_containers.push_back(value); return *this; }
122 inline KubernetesWorkloadDetails& AddContainers(Container&& value) { m_containersHasBeenSet = true; m_containers.push_back(std::move(value)); return *this; }
124
126
129 inline const Aws::Vector<Volume>& GetVolumes() const{ return m_volumes; }
130 inline bool VolumesHasBeenSet() const { return m_volumesHasBeenSet; }
131 inline void SetVolumes(const Aws::Vector<Volume>& value) { m_volumesHasBeenSet = true; m_volumes = value; }
132 inline void SetVolumes(Aws::Vector<Volume>&& value) { m_volumesHasBeenSet = true; m_volumes = std::move(value); }
133 inline KubernetesWorkloadDetails& WithVolumes(const Aws::Vector<Volume>& value) { SetVolumes(value); return *this;}
134 inline KubernetesWorkloadDetails& WithVolumes(Aws::Vector<Volume>&& value) { SetVolumes(std::move(value)); return *this;}
135 inline KubernetesWorkloadDetails& AddVolumes(const Volume& value) { m_volumesHasBeenSet = true; m_volumes.push_back(value); return *this; }
136 inline KubernetesWorkloadDetails& AddVolumes(Volume&& value) { m_volumesHasBeenSet = true; m_volumes.push_back(std::move(value)); return *this; }
138
140
143 inline const Aws::String& GetServiceAccountName() const{ return m_serviceAccountName; }
144 inline bool ServiceAccountNameHasBeenSet() const { return m_serviceAccountNameHasBeenSet; }
145 inline void SetServiceAccountName(const Aws::String& value) { m_serviceAccountNameHasBeenSet = true; m_serviceAccountName = value; }
146 inline void SetServiceAccountName(Aws::String&& value) { m_serviceAccountNameHasBeenSet = true; m_serviceAccountName = std::move(value); }
147 inline void SetServiceAccountName(const char* value) { m_serviceAccountNameHasBeenSet = true; m_serviceAccountName.assign(value); }
149 inline KubernetesWorkloadDetails& WithServiceAccountName(Aws::String&& value) { SetServiceAccountName(std::move(value)); return *this;}
150 inline KubernetesWorkloadDetails& WithServiceAccountName(const char* value) { SetServiceAccountName(value); return *this;}
152
154
157 inline bool GetHostIPC() const{ return m_hostIPC; }
158 inline bool HostIPCHasBeenSet() const { return m_hostIPCHasBeenSet; }
159 inline void SetHostIPC(bool value) { m_hostIPCHasBeenSet = true; m_hostIPC = value; }
160 inline KubernetesWorkloadDetails& WithHostIPC(bool value) { SetHostIPC(value); return *this;}
162
164
167 inline bool GetHostPID() const{ return m_hostPID; }
168 inline bool HostPIDHasBeenSet() const { return m_hostPIDHasBeenSet; }
169 inline void SetHostPID(bool value) { m_hostPIDHasBeenSet = true; m_hostPID = value; }
170 inline KubernetesWorkloadDetails& WithHostPID(bool value) { SetHostPID(value); return *this;}
172 private:
173
174 Aws::String m_name;
175 bool m_nameHasBeenSet = false;
176
177 Aws::String m_type;
178 bool m_typeHasBeenSet = false;
179
180 Aws::String m_uid;
181 bool m_uidHasBeenSet = false;
182
183 Aws::String m_namespace;
184 bool m_namespaceHasBeenSet = false;
185
186 bool m_hostNetwork;
187 bool m_hostNetworkHasBeenSet = false;
188
189 Aws::Vector<Container> m_containers;
190 bool m_containersHasBeenSet = false;
191
192 Aws::Vector<Volume> m_volumes;
193 bool m_volumesHasBeenSet = false;
194
195 Aws::String m_serviceAccountName;
196 bool m_serviceAccountNameHasBeenSet = false;
197
198 bool m_hostIPC;
199 bool m_hostIPCHasBeenSet = false;
200
201 bool m_hostPID;
202 bool m_hostPIDHasBeenSet = false;
203 };
204
205} // namespace Model
206} // namespace GuardDuty
207} // namespace Aws
const Aws::Vector< Container > & GetContainers() const
KubernetesWorkloadDetails & WithHostNetwork(bool value)
KubernetesWorkloadDetails & WithName(Aws::String &&value)
KubernetesWorkloadDetails & WithType(Aws::String &&value)
KubernetesWorkloadDetails & AddVolumes(const Volume &value)
void SetContainers(Aws::Vector< Container > &&value)
KubernetesWorkloadDetails & WithType(const Aws::String &value)
KubernetesWorkloadDetails & WithName(const char *value)
KubernetesWorkloadDetails & WithNamespace(const Aws::String &value)
KubernetesWorkloadDetails & WithVolumes(Aws::Vector< Volume > &&value)
AWS_GUARDDUTY_API KubernetesWorkloadDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
KubernetesWorkloadDetails & WithUid(const Aws::String &value)
KubernetesWorkloadDetails & WithUid(const char *value)
KubernetesWorkloadDetails & AddVolumes(Volume &&value)
KubernetesWorkloadDetails & WithServiceAccountName(Aws::String &&value)
KubernetesWorkloadDetails & WithServiceAccountName(const char *value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
KubernetesWorkloadDetails & WithNamespace(const char *value)
KubernetesWorkloadDetails & AddContainers(const Container &value)
KubernetesWorkloadDetails & WithType(const char *value)
KubernetesWorkloadDetails & AddContainers(Container &&value)
KubernetesWorkloadDetails & WithHostIPC(bool value)
KubernetesWorkloadDetails & WithUid(Aws::String &&value)
KubernetesWorkloadDetails & WithContainers(Aws::Vector< Container > &&value)
KubernetesWorkloadDetails & WithVolumes(const Aws::Vector< Volume > &value)
KubernetesWorkloadDetails & WithServiceAccountName(const Aws::String &value)
KubernetesWorkloadDetails & WithContainers(const Aws::Vector< Container > &value)
KubernetesWorkloadDetails & WithName(const Aws::String &value)
KubernetesWorkloadDetails & WithHostPID(bool value)
void SetVolumes(const Aws::Vector< Volume > &value)
AWS_GUARDDUTY_API KubernetesWorkloadDetails(Aws::Utils::Json::JsonView jsonValue)
KubernetesWorkloadDetails & WithNamespace(Aws::String &&value)
void SetContainers(const Aws::Vector< Container > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue