AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename RequestUriT = Aws::String>
50 void SetRequestUri(RequestUriT&& value) { m_requestUriHasBeenSet = true; m_requestUri = std::forward<RequestUriT>(value); }
51 template<typename RequestUriT = Aws::String>
52 KubernetesApiCallAction& WithRequestUri(RequestUriT&& value) { SetRequestUri(std::forward<RequestUriT>(value)); return *this;}
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) { m_verbHasBeenSet = true; m_verb = std::forward<VerbT>(value); }
63 template<typename VerbT = Aws::String>
64 KubernetesApiCallAction& WithVerb(VerbT&& value) { SetVerb(std::forward<VerbT>(value)); return *this;}
66
68
72 inline const Aws::Vector<Aws::String>& GetSourceIps() const { return m_sourceIps; }
73 inline bool SourceIpsHasBeenSet() const { return m_sourceIpsHasBeenSet; }
74 template<typename SourceIpsT = Aws::Vector<Aws::String>>
75 void SetSourceIps(SourceIpsT&& value) { m_sourceIpsHasBeenSet = true; m_sourceIps = std::forward<SourceIpsT>(value); }
76 template<typename SourceIpsT = Aws::Vector<Aws::String>>
77 KubernetesApiCallAction& WithSourceIps(SourceIpsT&& value) { SetSourceIps(std::forward<SourceIpsT>(value)); return *this;}
78 template<typename SourceIpsT = Aws::String>
79 KubernetesApiCallAction& AddSourceIps(SourceIpsT&& value) { m_sourceIpsHasBeenSet = true; m_sourceIps.emplace_back(std::forward<SourceIpsT>(value)); return *this; }
81
83
86 inline const Aws::String& GetUserAgent() const { return m_userAgent; }
87 inline bool UserAgentHasBeenSet() const { return m_userAgentHasBeenSet; }
88 template<typename UserAgentT = Aws::String>
89 void SetUserAgent(UserAgentT&& value) { m_userAgentHasBeenSet = true; m_userAgent = std::forward<UserAgentT>(value); }
90 template<typename UserAgentT = Aws::String>
91 KubernetesApiCallAction& WithUserAgent(UserAgentT&& value) { SetUserAgent(std::forward<UserAgentT>(value)); return *this;}
93
95
96 inline const RemoteIpDetails& GetRemoteIpDetails() const { return m_remoteIpDetails; }
97 inline bool RemoteIpDetailsHasBeenSet() const { return m_remoteIpDetailsHasBeenSet; }
98 template<typename RemoteIpDetailsT = RemoteIpDetails>
99 void SetRemoteIpDetails(RemoteIpDetailsT&& value) { m_remoteIpDetailsHasBeenSet = true; m_remoteIpDetails = std::forward<RemoteIpDetailsT>(value); }
100 template<typename RemoteIpDetailsT = RemoteIpDetails>
101 KubernetesApiCallAction& WithRemoteIpDetails(RemoteIpDetailsT&& value) { SetRemoteIpDetails(std::forward<RemoteIpDetailsT>(value)); return *this;}
103
105
108 inline int GetStatusCode() const { return m_statusCode; }
109 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
110 inline void SetStatusCode(int value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
111 inline KubernetesApiCallAction& WithStatusCode(int value) { SetStatusCode(value); return *this;}
113
115
118 inline const Aws::String& GetParameters() const { return m_parameters; }
119 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
120 template<typename ParametersT = Aws::String>
121 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
122 template<typename ParametersT = Aws::String>
123 KubernetesApiCallAction& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
125
127
130 inline const Aws::String& GetResource() const { return m_resource; }
131 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
132 template<typename ResourceT = Aws::String>
133 void SetResource(ResourceT&& value) { m_resourceHasBeenSet = true; m_resource = std::forward<ResourceT>(value); }
134 template<typename ResourceT = Aws::String>
135 KubernetesApiCallAction& WithResource(ResourceT&& value) { SetResource(std::forward<ResourceT>(value)); return *this;}
137
139
142 inline const Aws::String& GetSubresource() const { return m_subresource; }
143 inline bool SubresourceHasBeenSet() const { return m_subresourceHasBeenSet; }
144 template<typename SubresourceT = Aws::String>
145 void SetSubresource(SubresourceT&& value) { m_subresourceHasBeenSet = true; m_subresource = std::forward<SubresourceT>(value); }
146 template<typename SubresourceT = Aws::String>
147 KubernetesApiCallAction& WithSubresource(SubresourceT&& value) { SetSubresource(std::forward<SubresourceT>(value)); return *this;}
149
151
155 inline const Aws::String& GetNamespace() const { return m_namespace; }
156 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
157 template<typename NamespaceT = Aws::String>
158 void SetNamespace(NamespaceT&& value) { m_namespaceHasBeenSet = true; m_namespace = std::forward<NamespaceT>(value); }
159 template<typename NamespaceT = Aws::String>
160 KubernetesApiCallAction& WithNamespace(NamespaceT&& value) { SetNamespace(std::forward<NamespaceT>(value)); return *this;}
162
164
167 inline const Aws::String& GetResourceName() const { return m_resourceName; }
168 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
169 template<typename ResourceNameT = Aws::String>
170 void SetResourceName(ResourceNameT&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::forward<ResourceNameT>(value); }
171 template<typename ResourceNameT = Aws::String>
172 KubernetesApiCallAction& WithResourceName(ResourceNameT&& value) { SetResourceName(std::forward<ResourceNameT>(value)); return *this;}
174 private:
175
176 Aws::String m_requestUri;
177 bool m_requestUriHasBeenSet = false;
178
179 Aws::String m_verb;
180 bool m_verbHasBeenSet = false;
181
182 Aws::Vector<Aws::String> m_sourceIps;
183 bool m_sourceIpsHasBeenSet = false;
184
185 Aws::String m_userAgent;
186 bool m_userAgentHasBeenSet = false;
187
188 RemoteIpDetails m_remoteIpDetails;
189 bool m_remoteIpDetailsHasBeenSet = false;
190
191 int m_statusCode{0};
192 bool m_statusCodeHasBeenSet = false;
193
194 Aws::String m_parameters;
195 bool m_parametersHasBeenSet = false;
196
197 Aws::String m_resource;
198 bool m_resourceHasBeenSet = false;
199
200 Aws::String m_subresource;
201 bool m_subresourceHasBeenSet = false;
202
203 Aws::String m_namespace;
204 bool m_namespaceHasBeenSet = false;
205
206 Aws::String m_resourceName;
207 bool m_resourceNameHasBeenSet = false;
208 };
209
210} // namespace Model
211} // namespace GuardDuty
212} // 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