AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
KubernetesApiCall.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/guardduty/GuardDuty_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GuardDuty {
20namespace Model {
21
28 public:
29 AWS_GUARDDUTY_API KubernetesApiCall() = default;
30 AWS_GUARDDUTY_API KubernetesApiCall(Aws::Utils::Json::JsonView jsonValue);
32 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetClusterName() const { return m_clusterName; }
39 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
40 template <typename ClusterNameT = Aws::String>
41 void SetClusterName(ClusterNameT&& value) {
42 m_clusterNameHasBeenSet = true;
43 m_clusterName = std::forward<ClusterNameT>(value);
44 }
45 template <typename ClusterNameT = Aws::String>
46 KubernetesApiCall& WithClusterName(ClusterNameT&& value) {
47 SetClusterName(std::forward<ClusterNameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetUsername() const { return m_username; }
57 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
58 template <typename UsernameT = Aws::String>
59 void SetUsername(UsernameT&& value) {
60 m_usernameHasBeenSet = true;
61 m_username = std::forward<UsernameT>(value);
62 }
63 template <typename UsernameT = Aws::String>
64 KubernetesApiCall& WithUsername(UsernameT&& value) {
65 SetUsername(std::forward<UsernameT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetUserGroups() const { return m_userGroups; }
75 inline bool UserGroupsHasBeenSet() const { return m_userGroupsHasBeenSet; }
76 template <typename UserGroupsT = Aws::String>
77 void SetUserGroups(UserGroupsT&& value) {
78 m_userGroupsHasBeenSet = true;
79 m_userGroups = std::forward<UserGroupsT>(value);
80 }
81 template <typename UserGroupsT = Aws::String>
82 KubernetesApiCall& WithUserGroups(UserGroupsT&& value) {
83 SetUserGroups(std::forward<UserGroupsT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetUserId() const { return m_userId; }
93 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
94 template <typename UserIdT = Aws::String>
95 void SetUserId(UserIdT&& value) {
96 m_userIdHasBeenSet = true;
97 m_userId = std::forward<UserIdT>(value);
98 }
99 template <typename UserIdT = Aws::String>
100 KubernetesApiCall& WithUserId(UserIdT&& value) {
101 SetUserId(std::forward<UserIdT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetVerb() const { return m_verb; }
111 inline bool VerbHasBeenSet() const { return m_verbHasBeenSet; }
112 template <typename VerbT = Aws::String>
113 void SetVerb(VerbT&& value) {
114 m_verbHasBeenSet = true;
115 m_verb = std::forward<VerbT>(value);
116 }
117 template <typename VerbT = Aws::String>
118 KubernetesApiCall& WithVerb(VerbT&& value) {
119 SetVerb(std::forward<VerbT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::String& GetResourceType() const { return m_resourceType; }
129 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
130 template <typename ResourceTypeT = Aws::String>
131 void SetResourceType(ResourceTypeT&& value) {
132 m_resourceTypeHasBeenSet = true;
133 m_resourceType = std::forward<ResourceTypeT>(value);
134 }
135 template <typename ResourceTypeT = Aws::String>
136 KubernetesApiCall& WithResourceType(ResourceTypeT&& value) {
137 SetResourceType(std::forward<ResourceTypeT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::String& GetResourceName() const { return m_resourceName; }
147 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
148 template <typename ResourceNameT = Aws::String>
149 void SetResourceName(ResourceNameT&& value) {
150 m_resourceNameHasBeenSet = true;
151 m_resourceName = std::forward<ResourceNameT>(value);
152 }
153 template <typename ResourceNameT = Aws::String>
154 KubernetesApiCall& WithResourceName(ResourceNameT&& value) {
155 SetResourceName(std::forward<ResourceNameT>(value));
156 return *this;
157 }
159
161
164 inline const Aws::String& GetNamespace() const { return m_namespace; }
165 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
166 template <typename NamespaceT = Aws::String>
167 void SetNamespace(NamespaceT&& value) {
168 m_namespaceHasBeenSet = true;
169 m_namespace = std::forward<NamespaceT>(value);
170 }
171 template <typename NamespaceT = Aws::String>
172 KubernetesApiCall& WithNamespace(NamespaceT&& value) {
173 SetNamespace(std::forward<NamespaceT>(value));
174 return *this;
175 }
177
179
182 inline const Aws::String& GetRequestUri() const { return m_requestUri; }
183 inline bool RequestUriHasBeenSet() const { return m_requestUriHasBeenSet; }
184 template <typename RequestUriT = Aws::String>
185 void SetRequestUri(RequestUriT&& value) {
186 m_requestUriHasBeenSet = true;
187 m_requestUri = std::forward<RequestUriT>(value);
188 }
189 template <typename RequestUriT = Aws::String>
190 KubernetesApiCall& WithRequestUri(RequestUriT&& value) {
191 SetRequestUri(std::forward<RequestUriT>(value));
192 return *this;
193 }
195
197
200 inline int GetStatusCode() const { return m_statusCode; }
201 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
202 inline void SetStatusCode(int value) {
203 m_statusCodeHasBeenSet = true;
204 m_statusCode = value;
205 }
207 SetStatusCode(value);
208 return *this;
209 }
211
213
216 inline const Aws::String& GetSourceIps() const { return m_sourceIps; }
217 inline bool SourceIpsHasBeenSet() const { return m_sourceIpsHasBeenSet; }
218 template <typename SourceIpsT = Aws::String>
219 void SetSourceIps(SourceIpsT&& value) {
220 m_sourceIpsHasBeenSet = true;
221 m_sourceIps = std::forward<SourceIpsT>(value);
222 }
223 template <typename SourceIpsT = Aws::String>
224 KubernetesApiCall& WithSourceIps(SourceIpsT&& value) {
225 SetSourceIps(std::forward<SourceIpsT>(value));
226 return *this;
227 }
229
231
234 inline const Aws::String& GetUserAgent() const { return m_userAgent; }
235 inline bool UserAgentHasBeenSet() const { return m_userAgentHasBeenSet; }
236 template <typename UserAgentT = Aws::String>
237 void SetUserAgent(UserAgentT&& value) {
238 m_userAgentHasBeenSet = true;
239 m_userAgent = std::forward<UserAgentT>(value);
240 }
241 template <typename UserAgentT = Aws::String>
242 KubernetesApiCall& WithUserAgent(UserAgentT&& value) {
243 SetUserAgent(std::forward<UserAgentT>(value));
244 return *this;
245 }
247
249
252 inline long long GetEventCount() const { return m_eventCount; }
253 inline bool EventCountHasBeenSet() const { return m_eventCountHasBeenSet; }
254 inline void SetEventCount(long long value) {
255 m_eventCountHasBeenSet = true;
256 m_eventCount = value;
257 }
258 inline KubernetesApiCall& WithEventCount(long long value) {
259 SetEventCount(value);
260 return *this;
261 }
263 private:
264 Aws::String m_clusterName;
265
266 Aws::String m_username;
267
268 Aws::String m_userGroups;
269
270 Aws::String m_userId;
271
272 Aws::String m_verb;
273
274 Aws::String m_resourceType;
275
276 Aws::String m_resourceName;
277
278 Aws::String m_namespace;
279
280 Aws::String m_requestUri;
281
282 int m_statusCode{0};
283
284 Aws::String m_sourceIps;
285
286 Aws::String m_userAgent;
287
288 long long m_eventCount{0};
289 bool m_clusterNameHasBeenSet = false;
290 bool m_usernameHasBeenSet = false;
291 bool m_userGroupsHasBeenSet = false;
292 bool m_userIdHasBeenSet = false;
293 bool m_verbHasBeenSet = false;
294 bool m_resourceTypeHasBeenSet = false;
295 bool m_resourceNameHasBeenSet = false;
296 bool m_namespaceHasBeenSet = false;
297 bool m_requestUriHasBeenSet = false;
298 bool m_statusCodeHasBeenSet = false;
299 bool m_sourceIpsHasBeenSet = false;
300 bool m_userAgentHasBeenSet = false;
301 bool m_eventCountHasBeenSet = false;
302};
303
304} // namespace Model
305} // namespace GuardDuty
306} // namespace Aws
AWS_GUARDDUTY_API KubernetesApiCall & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API KubernetesApiCall()=default
const Aws::String & GetClusterName() const
KubernetesApiCall & WithClusterName(ClusterNameT &&value)
const Aws::String & GetResourceType() const
void SetClusterName(ClusterNameT &&value)
KubernetesApiCall & WithResourceName(ResourceNameT &&value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
KubernetesApiCall & WithResourceType(ResourceTypeT &&value)
const Aws::String & GetUserGroups() const
KubernetesApiCall & WithVerb(VerbT &&value)
void SetResourceType(ResourceTypeT &&value)
KubernetesApiCall & WithEventCount(long long value)
KubernetesApiCall & WithUserId(UserIdT &&value)
const Aws::String & GetResourceName() const
KubernetesApiCall & WithUsername(UsernameT &&value)
KubernetesApiCall & WithUserAgent(UserAgentT &&value)
KubernetesApiCall & WithStatusCode(int value)
const Aws::String & GetRequestUri() const
KubernetesApiCall & WithNamespace(NamespaceT &&value)
AWS_GUARDDUTY_API KubernetesApiCall(Aws::Utils::Json::JsonView jsonValue)
KubernetesApiCall & WithRequestUri(RequestUriT &&value)
void SetResourceName(ResourceNameT &&value)
const Aws::String & GetUsername() const
KubernetesApiCall & WithSourceIps(SourceIpsT &&value)
KubernetesApiCall & WithUserGroups(UserGroupsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue