AWS SDK for C++

AWS SDK for C++ Version 1.11.754

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
78 inline const Aws::Vector<Aws::String>& GetSourceIps() const { return m_sourceIps; }
79 inline bool SourceIpsHasBeenSet() const { return m_sourceIpsHasBeenSet; }
80 template <typename SourceIpsT = Aws::Vector<Aws::String>>
81 void SetSourceIps(SourceIpsT&& value) {
82 m_sourceIpsHasBeenSet = true;
83 m_sourceIps = std::forward<SourceIpsT>(value);
84 }
85 template <typename SourceIpsT = Aws::Vector<Aws::String>>
87 SetSourceIps(std::forward<SourceIpsT>(value));
88 return *this;
89 }
90 template <typename SourceIpsT = Aws::String>
92 m_sourceIpsHasBeenSet = true;
93 m_sourceIps.emplace_back(std::forward<SourceIpsT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::String& GetUserAgent() const { return m_userAgent; }
103 inline bool UserAgentHasBeenSet() const { return m_userAgentHasBeenSet; }
104 template <typename UserAgentT = Aws::String>
105 void SetUserAgent(UserAgentT&& value) {
106 m_userAgentHasBeenSet = true;
107 m_userAgent = std::forward<UserAgentT>(value);
108 }
109 template <typename UserAgentT = Aws::String>
111 SetUserAgent(std::forward<UserAgentT>(value));
112 return *this;
113 }
115
117
118 inline const RemoteIpDetails& GetRemoteIpDetails() const { return m_remoteIpDetails; }
119 inline bool RemoteIpDetailsHasBeenSet() const { return m_remoteIpDetailsHasBeenSet; }
120 template <typename RemoteIpDetailsT = RemoteIpDetails>
121 void SetRemoteIpDetails(RemoteIpDetailsT&& value) {
122 m_remoteIpDetailsHasBeenSet = true;
123 m_remoteIpDetails = std::forward<RemoteIpDetailsT>(value);
124 }
125 template <typename RemoteIpDetailsT = RemoteIpDetails>
126 KubernetesApiCallAction& WithRemoteIpDetails(RemoteIpDetailsT&& value) {
127 SetRemoteIpDetails(std::forward<RemoteIpDetailsT>(value));
128 return *this;
129 }
131
133
136 inline int GetStatusCode() const { return m_statusCode; }
137 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
138 inline void SetStatusCode(int value) {
139 m_statusCodeHasBeenSet = true;
140 m_statusCode = value;
141 }
143 SetStatusCode(value);
144 return *this;
145 }
147
149
152 inline const Aws::String& GetParameters() const { return m_parameters; }
153 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
154 template <typename ParametersT = Aws::String>
155 void SetParameters(ParametersT&& value) {
156 m_parametersHasBeenSet = true;
157 m_parameters = std::forward<ParametersT>(value);
158 }
159 template <typename ParametersT = Aws::String>
161 SetParameters(std::forward<ParametersT>(value));
162 return *this;
163 }
165
167
170 inline const Aws::String& GetResource() const { return m_resource; }
171 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
172 template <typename ResourceT = Aws::String>
173 void SetResource(ResourceT&& value) {
174 m_resourceHasBeenSet = true;
175 m_resource = std::forward<ResourceT>(value);
176 }
177 template <typename ResourceT = Aws::String>
179 SetResource(std::forward<ResourceT>(value));
180 return *this;
181 }
183
185
188 inline const Aws::String& GetSubresource() const { return m_subresource; }
189 inline bool SubresourceHasBeenSet() const { return m_subresourceHasBeenSet; }
190 template <typename SubresourceT = Aws::String>
191 void SetSubresource(SubresourceT&& value) {
192 m_subresourceHasBeenSet = true;
193 m_subresource = std::forward<SubresourceT>(value);
194 }
195 template <typename SubresourceT = Aws::String>
197 SetSubresource(std::forward<SubresourceT>(value));
198 return *this;
199 }
201
203
207 inline const Aws::String& GetNamespace() const { return m_namespace; }
208 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
209 template <typename NamespaceT = Aws::String>
210 void SetNamespace(NamespaceT&& value) {
211 m_namespaceHasBeenSet = true;
212 m_namespace = std::forward<NamespaceT>(value);
213 }
214 template <typename NamespaceT = Aws::String>
216 SetNamespace(std::forward<NamespaceT>(value));
217 return *this;
218 }
220
222
225 inline const Aws::String& GetResourceName() const { return m_resourceName; }
226 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
227 template <typename ResourceNameT = Aws::String>
228 void SetResourceName(ResourceNameT&& value) {
229 m_resourceNameHasBeenSet = true;
230 m_resourceName = std::forward<ResourceNameT>(value);
231 }
232 template <typename ResourceNameT = Aws::String>
234 SetResourceName(std::forward<ResourceNameT>(value));
235 return *this;
236 }
238 private:
239 Aws::String m_requestUri;
240
241 Aws::String m_verb;
242
243 Aws::Vector<Aws::String> m_sourceIps;
244
245 Aws::String m_userAgent;
246
247 RemoteIpDetails m_remoteIpDetails;
248
249 int m_statusCode{0};
250
251 Aws::String m_parameters;
252
253 Aws::String m_resource;
254
255 Aws::String m_subresource;
256
257 Aws::String m_namespace;
258
259 Aws::String m_resourceName;
260 bool m_requestUriHasBeenSet = false;
261 bool m_verbHasBeenSet = false;
262 bool m_sourceIpsHasBeenSet = false;
263 bool m_userAgentHasBeenSet = false;
264 bool m_remoteIpDetailsHasBeenSet = false;
265 bool m_statusCodeHasBeenSet = false;
266 bool m_parametersHasBeenSet = false;
267 bool m_resourceHasBeenSet = false;
268 bool m_subresourceHasBeenSet = false;
269 bool m_namespaceHasBeenSet = false;
270 bool m_resourceNameHasBeenSet = 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