AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
KubernetesApiCallAction.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/RemoteIpDetails.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GuardDuty {
22namespace Model {
23
31 public:
32 AWS_GUARDDUTY_API KubernetesApiCallAction() = default;
35 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetRequestUri() const { return m_requestUri; }
42 inline bool RequestUriHasBeenSet() const { return m_requestUriHasBeenSet; }
43 template <typename RequestUriT = Aws::String>
44 void SetRequestUri(RequestUriT&& value) {
45 m_requestUriHasBeenSet = true;
46 m_requestUri = std::forward<RequestUriT>(value);
47 }
48 template <typename RequestUriT = Aws::String>
50 SetRequestUri(std::forward<RequestUriT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetVerb() const { return m_verb; }
60 inline bool VerbHasBeenSet() const { return m_verbHasBeenSet; }
61 template <typename VerbT = Aws::String>
62 void SetVerb(VerbT&& value) {
63 m_verbHasBeenSet = true;
64 m_verb = std::forward<VerbT>(value);
65 }
66 template <typename VerbT = Aws::String>
68 SetVerb(std::forward<VerbT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetResource() const { return m_resource; }
78 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
79 template <typename ResourceT = Aws::String>
80 void SetResource(ResourceT&& value) {
81 m_resourceHasBeenSet = true;
82 m_resource = std::forward<ResourceT>(value);
83 }
84 template <typename ResourceT = Aws::String>
86 SetResource(std::forward<ResourceT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetSubresource() const { return m_subresource; }
96 inline bool SubresourceHasBeenSet() const { return m_subresourceHasBeenSet; }
97 template <typename SubresourceT = Aws::String>
98 void SetSubresource(SubresourceT&& value) {
99 m_subresourceHasBeenSet = true;
100 m_subresource = std::forward<SubresourceT>(value);
101 }
102 template <typename SubresourceT = Aws::String>
104 SetSubresource(std::forward<SubresourceT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::String& GetNamespace() const { return m_namespace; }
115 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
116 template <typename NamespaceT = Aws::String>
117 void SetNamespace(NamespaceT&& value) {
118 m_namespaceHasBeenSet = true;
119 m_namespace = std::forward<NamespaceT>(value);
120 }
121 template <typename NamespaceT = Aws::String>
123 SetNamespace(std::forward<NamespaceT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::String& GetResourceName() const { return m_resourceName; }
133 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
134 template <typename ResourceNameT = Aws::String>
135 void SetResourceName(ResourceNameT&& value) {
136 m_resourceNameHasBeenSet = true;
137 m_resourceName = std::forward<ResourceNameT>(value);
138 }
139 template <typename ResourceNameT = Aws::String>
141 SetResourceName(std::forward<ResourceNameT>(value));
142 return *this;
143 }
145
147
151 inline const Aws::Vector<Aws::String>& GetSourceIps() const { return m_sourceIps; }
152 inline bool SourceIpsHasBeenSet() const { return m_sourceIpsHasBeenSet; }
153 template <typename SourceIpsT = Aws::Vector<Aws::String>>
154 void SetSourceIps(SourceIpsT&& value) {
155 m_sourceIpsHasBeenSet = true;
156 m_sourceIps = std::forward<SourceIpsT>(value);
157 }
158 template <typename SourceIpsT = Aws::Vector<Aws::String>>
160 SetSourceIps(std::forward<SourceIpsT>(value));
161 return *this;
162 }
163 template <typename SourceIpsT = Aws::String>
165 m_sourceIpsHasBeenSet = true;
166 m_sourceIps.emplace_back(std::forward<SourceIpsT>(value));
167 return *this;
168 }
170
172
175 inline const Aws::String& GetUserAgent() const { return m_userAgent; }
176 inline bool UserAgentHasBeenSet() const { return m_userAgentHasBeenSet; }
177 template <typename UserAgentT = Aws::String>
178 void SetUserAgent(UserAgentT&& value) {
179 m_userAgentHasBeenSet = true;
180 m_userAgent = std::forward<UserAgentT>(value);
181 }
182 template <typename UserAgentT = Aws::String>
184 SetUserAgent(std::forward<UserAgentT>(value));
185 return *this;
186 }
188
190
191 inline const RemoteIpDetails& GetRemoteIpDetails() const { return m_remoteIpDetails; }
192 inline bool RemoteIpDetailsHasBeenSet() const { return m_remoteIpDetailsHasBeenSet; }
193 template <typename RemoteIpDetailsT = RemoteIpDetails>
194 void SetRemoteIpDetails(RemoteIpDetailsT&& value) {
195 m_remoteIpDetailsHasBeenSet = true;
196 m_remoteIpDetails = std::forward<RemoteIpDetailsT>(value);
197 }
198 template <typename RemoteIpDetailsT = RemoteIpDetails>
199 KubernetesApiCallAction& WithRemoteIpDetails(RemoteIpDetailsT&& value) {
200 SetRemoteIpDetails(std::forward<RemoteIpDetailsT>(value));
201 return *this;
202 }
204
206
209 inline int GetStatusCode() const { return m_statusCode; }
210 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
211 inline void SetStatusCode(int value) {
212 m_statusCodeHasBeenSet = true;
213 m_statusCode = value;
214 }
216 SetStatusCode(value);
217 return *this;
218 }
220
222
225 inline const Aws::String& GetParameters() const { return m_parameters; }
226 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
227 template <typename ParametersT = Aws::String>
228 void SetParameters(ParametersT&& value) {
229 m_parametersHasBeenSet = true;
230 m_parameters = std::forward<ParametersT>(value);
231 }
232 template <typename ParametersT = Aws::String>
234 SetParameters(std::forward<ParametersT>(value));
235 return *this;
236 }
238 private:
239 Aws::String m_requestUri;
240
241 Aws::String m_verb;
242
243 Aws::String m_resource;
244
245 Aws::String m_subresource;
246
247 Aws::String m_namespace;
248
249 Aws::String m_resourceName;
250
251 Aws::Vector<Aws::String> m_sourceIps;
252
253 Aws::String m_userAgent;
254
255 RemoteIpDetails m_remoteIpDetails;
256
257 int m_statusCode{0};
258
259 Aws::String m_parameters;
260 bool m_requestUriHasBeenSet = false;
261 bool m_verbHasBeenSet = false;
262 bool m_resourceHasBeenSet = false;
263 bool m_subresourceHasBeenSet = false;
264 bool m_namespaceHasBeenSet = false;
265 bool m_resourceNameHasBeenSet = false;
266 bool m_sourceIpsHasBeenSet = false;
267 bool m_userAgentHasBeenSet = false;
268 bool m_remoteIpDetailsHasBeenSet = false;
269 bool m_statusCodeHasBeenSet = false;
270 bool m_parametersHasBeenSet = false;
271};
272
273} // namespace Model
274} // namespace GuardDuty
275} // namespace Aws
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
KubernetesApiCallAction & WithRequestUri(RequestUriT &&value)
AWS_GUARDDUTY_API KubernetesApiCallAction(Aws::Utils::Json::JsonView jsonValue)
KubernetesApiCallAction & WithStatusCode(int value)
KubernetesApiCallAction & WithResourceName(ResourceNameT &&value)
KubernetesApiCallAction & WithSourceIps(SourceIpsT &&value)
KubernetesApiCallAction & WithVerb(VerbT &&value)
const Aws::Vector< Aws::String > & GetSourceIps() const
KubernetesApiCallAction & WithNamespace(NamespaceT &&value)
KubernetesApiCallAction & WithParameters(ParametersT &&value)
KubernetesApiCallAction & WithUserAgent(UserAgentT &&value)
KubernetesApiCallAction & WithResource(ResourceT &&value)
AWS_GUARDDUTY_API KubernetesApiCallAction & operator=(Aws::Utils::Json::JsonView jsonValue)
KubernetesApiCallAction & AddSourceIps(SourceIpsT &&value)
AWS_GUARDDUTY_API KubernetesApiCallAction()=default
KubernetesApiCallAction & WithRemoteIpDetails(RemoteIpDetailsT &&value)
KubernetesApiCallAction & WithSubresource(SubresourceT &&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