AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
KubernetesApiCallAction.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/RemoteIpDetails.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GuardDuty
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_GUARDDUTY_API KubernetesApiCallAction();
40 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetRequestUri() const{ return m_requestUri; }
48 inline bool RequestUriHasBeenSet() const { return m_requestUriHasBeenSet; }
49 inline void SetRequestUri(const Aws::String& value) { m_requestUriHasBeenSet = true; m_requestUri = value; }
50 inline void SetRequestUri(Aws::String&& value) { m_requestUriHasBeenSet = true; m_requestUri = std::move(value); }
51 inline void SetRequestUri(const char* value) { m_requestUriHasBeenSet = true; m_requestUri.assign(value); }
52 inline KubernetesApiCallAction& WithRequestUri(const Aws::String& value) { SetRequestUri(value); return *this;}
53 inline KubernetesApiCallAction& WithRequestUri(Aws::String&& value) { SetRequestUri(std::move(value)); return *this;}
54 inline KubernetesApiCallAction& WithRequestUri(const char* value) { SetRequestUri(value); return *this;}
56
58
61 inline const Aws::String& GetVerb() const{ return m_verb; }
62 inline bool VerbHasBeenSet() const { return m_verbHasBeenSet; }
63 inline void SetVerb(const Aws::String& value) { m_verbHasBeenSet = true; m_verb = value; }
64 inline void SetVerb(Aws::String&& value) { m_verbHasBeenSet = true; m_verb = std::move(value); }
65 inline void SetVerb(const char* value) { m_verbHasBeenSet = true; m_verb.assign(value); }
66 inline KubernetesApiCallAction& WithVerb(const Aws::String& value) { SetVerb(value); return *this;}
67 inline KubernetesApiCallAction& WithVerb(Aws::String&& value) { SetVerb(std::move(value)); return *this;}
68 inline KubernetesApiCallAction& WithVerb(const char* value) { SetVerb(value); return *this;}
70
72
76 inline const Aws::Vector<Aws::String>& GetSourceIps() const{ return m_sourceIps; }
77 inline bool SourceIpsHasBeenSet() const { return m_sourceIpsHasBeenSet; }
78 inline void SetSourceIps(const Aws::Vector<Aws::String>& value) { m_sourceIpsHasBeenSet = true; m_sourceIps = value; }
79 inline void SetSourceIps(Aws::Vector<Aws::String>&& value) { m_sourceIpsHasBeenSet = true; m_sourceIps = std::move(value); }
80 inline KubernetesApiCallAction& WithSourceIps(const Aws::Vector<Aws::String>& value) { SetSourceIps(value); return *this;}
81 inline KubernetesApiCallAction& WithSourceIps(Aws::Vector<Aws::String>&& value) { SetSourceIps(std::move(value)); return *this;}
82 inline KubernetesApiCallAction& AddSourceIps(const Aws::String& value) { m_sourceIpsHasBeenSet = true; m_sourceIps.push_back(value); return *this; }
83 inline KubernetesApiCallAction& AddSourceIps(Aws::String&& value) { m_sourceIpsHasBeenSet = true; m_sourceIps.push_back(std::move(value)); return *this; }
84 inline KubernetesApiCallAction& AddSourceIps(const char* value) { m_sourceIpsHasBeenSet = true; m_sourceIps.push_back(value); return *this; }
86
88
91 inline const Aws::String& GetUserAgent() const{ return m_userAgent; }
92 inline bool UserAgentHasBeenSet() const { return m_userAgentHasBeenSet; }
93 inline void SetUserAgent(const Aws::String& value) { m_userAgentHasBeenSet = true; m_userAgent = value; }
94 inline void SetUserAgent(Aws::String&& value) { m_userAgentHasBeenSet = true; m_userAgent = std::move(value); }
95 inline void SetUserAgent(const char* value) { m_userAgentHasBeenSet = true; m_userAgent.assign(value); }
96 inline KubernetesApiCallAction& WithUserAgent(const Aws::String& value) { SetUserAgent(value); return *this;}
97 inline KubernetesApiCallAction& WithUserAgent(Aws::String&& value) { SetUserAgent(std::move(value)); return *this;}
98 inline KubernetesApiCallAction& WithUserAgent(const char* value) { SetUserAgent(value); return *this;}
100
102
103 inline const RemoteIpDetails& GetRemoteIpDetails() const{ return m_remoteIpDetails; }
104 inline bool RemoteIpDetailsHasBeenSet() const { return m_remoteIpDetailsHasBeenSet; }
105 inline void SetRemoteIpDetails(const RemoteIpDetails& value) { m_remoteIpDetailsHasBeenSet = true; m_remoteIpDetails = value; }
106 inline void SetRemoteIpDetails(RemoteIpDetails&& value) { m_remoteIpDetailsHasBeenSet = true; m_remoteIpDetails = std::move(value); }
108 inline KubernetesApiCallAction& WithRemoteIpDetails(RemoteIpDetails&& value) { SetRemoteIpDetails(std::move(value)); return *this;}
110
112
115 inline int GetStatusCode() const{ return m_statusCode; }
116 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
117 inline void SetStatusCode(int value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
118 inline KubernetesApiCallAction& WithStatusCode(int value) { SetStatusCode(value); return *this;}
120
122
125 inline const Aws::String& GetParameters() const{ return m_parameters; }
126 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
127 inline void SetParameters(const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters = value; }
128 inline void SetParameters(Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
129 inline void SetParameters(const char* value) { m_parametersHasBeenSet = true; m_parameters.assign(value); }
130 inline KubernetesApiCallAction& WithParameters(const Aws::String& value) { SetParameters(value); return *this;}
131 inline KubernetesApiCallAction& WithParameters(Aws::String&& value) { SetParameters(std::move(value)); return *this;}
132 inline KubernetesApiCallAction& WithParameters(const char* value) { SetParameters(value); return *this;}
134
136
139 inline const Aws::String& GetResource() const{ return m_resource; }
140 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
141 inline void SetResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource = value; }
142 inline void SetResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
143 inline void SetResource(const char* value) { m_resourceHasBeenSet = true; m_resource.assign(value); }
144 inline KubernetesApiCallAction& WithResource(const Aws::String& value) { SetResource(value); return *this;}
145 inline KubernetesApiCallAction& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;}
146 inline KubernetesApiCallAction& WithResource(const char* value) { SetResource(value); return *this;}
148
150
153 inline const Aws::String& GetSubresource() const{ return m_subresource; }
154 inline bool SubresourceHasBeenSet() const { return m_subresourceHasBeenSet; }
155 inline void SetSubresource(const Aws::String& value) { m_subresourceHasBeenSet = true; m_subresource = value; }
156 inline void SetSubresource(Aws::String&& value) { m_subresourceHasBeenSet = true; m_subresource = std::move(value); }
157 inline void SetSubresource(const char* value) { m_subresourceHasBeenSet = true; m_subresource.assign(value); }
158 inline KubernetesApiCallAction& WithSubresource(const Aws::String& value) { SetSubresource(value); return *this;}
159 inline KubernetesApiCallAction& WithSubresource(Aws::String&& value) { SetSubresource(std::move(value)); return *this;}
160 inline KubernetesApiCallAction& WithSubresource(const char* value) { SetSubresource(value); return *this;}
162
164
168 inline const Aws::String& GetNamespace() const{ return m_namespace; }
169 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
170 inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
171 inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
172 inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
173 inline KubernetesApiCallAction& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
174 inline KubernetesApiCallAction& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
175 inline KubernetesApiCallAction& WithNamespace(const char* value) { SetNamespace(value); return *this;}
177
179
182 inline const Aws::String& GetResourceName() const{ return m_resourceName; }
183 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
184 inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
185 inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
186 inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
187 inline KubernetesApiCallAction& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
188 inline KubernetesApiCallAction& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
189 inline KubernetesApiCallAction& WithResourceName(const char* value) { SetResourceName(value); return *this;}
191 private:
192
193 Aws::String m_requestUri;
194 bool m_requestUriHasBeenSet = false;
195
196 Aws::String m_verb;
197 bool m_verbHasBeenSet = false;
198
199 Aws::Vector<Aws::String> m_sourceIps;
200 bool m_sourceIpsHasBeenSet = false;
201
202 Aws::String m_userAgent;
203 bool m_userAgentHasBeenSet = false;
204
205 RemoteIpDetails m_remoteIpDetails;
206 bool m_remoteIpDetailsHasBeenSet = false;
207
208 int m_statusCode;
209 bool m_statusCodeHasBeenSet = false;
210
211 Aws::String m_parameters;
212 bool m_parametersHasBeenSet = false;
213
214 Aws::String m_resource;
215 bool m_resourceHasBeenSet = false;
216
217 Aws::String m_subresource;
218 bool m_subresourceHasBeenSet = false;
219
220 Aws::String m_namespace;
221 bool m_namespaceHasBeenSet = false;
222
223 Aws::String m_resourceName;
224 bool m_resourceNameHasBeenSet = false;
225 };
226
227} // namespace Model
228} // namespace GuardDuty
229} // namespace Aws
KubernetesApiCallAction & WithSourceIps(const Aws::Vector< Aws::String > &value)
KubernetesApiCallAction & WithNamespace(Aws::String &&value)
void SetSourceIps(const Aws::Vector< Aws::String > &value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
KubernetesApiCallAction & WithNamespace(const Aws::String &value)
AWS_GUARDDUTY_API KubernetesApiCallAction(Aws::Utils::Json::JsonView jsonValue)
KubernetesApiCallAction & WithResourceName(Aws::String &&value)
KubernetesApiCallAction & WithResource(const Aws::String &value)
KubernetesApiCallAction & WithUserAgent(const Aws::String &value)
KubernetesApiCallAction & WithStatusCode(int value)
KubernetesApiCallAction & WithRemoteIpDetails(RemoteIpDetails &&value)
KubernetesApiCallAction & WithRequestUri(Aws::String &&value)
KubernetesApiCallAction & WithResource(const char *value)
KubernetesApiCallAction & WithSubresource(const Aws::String &value)
KubernetesApiCallAction & WithRequestUri(const Aws::String &value)
KubernetesApiCallAction & AddSourceIps(Aws::String &&value)
KubernetesApiCallAction & WithVerb(const Aws::String &value)
KubernetesApiCallAction & WithResourceName(const Aws::String &value)
KubernetesApiCallAction & WithVerb(const char *value)
KubernetesApiCallAction & WithUserAgent(const char *value)
KubernetesApiCallAction & WithSubresource(Aws::String &&value)
KubernetesApiCallAction & AddSourceIps(const char *value)
KubernetesApiCallAction & WithRemoteIpDetails(const RemoteIpDetails &value)
KubernetesApiCallAction & WithResourceName(const char *value)
void SetSourceIps(Aws::Vector< Aws::String > &&value)
KubernetesApiCallAction & WithNamespace(const char *value)
KubernetesApiCallAction & AddSourceIps(const Aws::String &value)
KubernetesApiCallAction & WithUserAgent(Aws::String &&value)
const Aws::Vector< Aws::String > & GetSourceIps() const
KubernetesApiCallAction & WithRequestUri(const char *value)
KubernetesApiCallAction & WithParameters(Aws::String &&value)
KubernetesApiCallAction & WithResource(Aws::String &&value)
KubernetesApiCallAction & WithParameters(const Aws::String &value)
void SetRemoteIpDetails(const RemoteIpDetails &value)
KubernetesApiCallAction & WithSubresource(const char *value)
KubernetesApiCallAction & WithParameters(const char *value)
KubernetesApiCallAction & WithVerb(Aws::String &&value)
KubernetesApiCallAction & WithSourceIps(Aws::Vector< Aws::String > &&value)
AWS_GUARDDUTY_API KubernetesApiCallAction & operator=(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