AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
AwsApiCallAction.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/guardduty/GuardDuty_EXPORTS.h>
10#include <aws/guardduty/model/DomainDetails.h>
11#include <aws/guardduty/model/RemoteAccountDetails.h>
12#include <aws/guardduty/model/RemoteIpDetails.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GuardDuty {
24namespace Model {
25
32 public:
33 AWS_GUARDDUTY_API AwsApiCallAction() = default;
34 AWS_GUARDDUTY_API AwsApiCallAction(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetApi() const { return m_api; }
43 inline bool ApiHasBeenSet() const { return m_apiHasBeenSet; }
44 template <typename ApiT = Aws::String>
45 void SetApi(ApiT&& value) {
46 m_apiHasBeenSet = true;
47 m_api = std::forward<ApiT>(value);
48 }
49 template <typename ApiT = Aws::String>
50 AwsApiCallAction& WithApi(ApiT&& value) {
51 SetApi(std::forward<ApiT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetCallerType() const { return m_callerType; }
61 inline bool CallerTypeHasBeenSet() const { return m_callerTypeHasBeenSet; }
62 template <typename CallerTypeT = Aws::String>
63 void SetCallerType(CallerTypeT&& value) {
64 m_callerTypeHasBeenSet = true;
65 m_callerType = std::forward<CallerTypeT>(value);
66 }
67 template <typename CallerTypeT = Aws::String>
68 AwsApiCallAction& WithCallerType(CallerTypeT&& value) {
69 SetCallerType(std::forward<CallerTypeT>(value));
70 return *this;
71 }
73
75
78 inline const DomainDetails& GetDomainDetails() const { return m_domainDetails; }
79 inline bool DomainDetailsHasBeenSet() const { return m_domainDetailsHasBeenSet; }
80 template <typename DomainDetailsT = DomainDetails>
81 void SetDomainDetails(DomainDetailsT&& value) {
82 m_domainDetailsHasBeenSet = true;
83 m_domainDetails = std::forward<DomainDetailsT>(value);
84 }
85 template <typename DomainDetailsT = DomainDetails>
86 AwsApiCallAction& WithDomainDetails(DomainDetailsT&& value) {
87 SetDomainDetails(std::forward<DomainDetailsT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetErrorCode() const { return m_errorCode; }
97 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
98 template <typename ErrorCodeT = Aws::String>
99 void SetErrorCode(ErrorCodeT&& value) {
100 m_errorCodeHasBeenSet = true;
101 m_errorCode = std::forward<ErrorCodeT>(value);
102 }
103 template <typename ErrorCodeT = Aws::String>
104 AwsApiCallAction& WithErrorCode(ErrorCodeT&& value) {
105 SetErrorCode(std::forward<ErrorCodeT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetUserAgent() const { return m_userAgent; }
115 inline bool UserAgentHasBeenSet() const { return m_userAgentHasBeenSet; }
116 template <typename UserAgentT = Aws::String>
117 void SetUserAgent(UserAgentT&& value) {
118 m_userAgentHasBeenSet = true;
119 m_userAgent = std::forward<UserAgentT>(value);
120 }
121 template <typename UserAgentT = Aws::String>
122 AwsApiCallAction& WithUserAgent(UserAgentT&& value) {
123 SetUserAgent(std::forward<UserAgentT>(value));
124 return *this;
125 }
127
129
133 inline const RemoteIpDetails& GetRemoteIpDetails() const { return m_remoteIpDetails; }
134 inline bool RemoteIpDetailsHasBeenSet() const { return m_remoteIpDetailsHasBeenSet; }
135 template <typename RemoteIpDetailsT = RemoteIpDetails>
136 void SetRemoteIpDetails(RemoteIpDetailsT&& value) {
137 m_remoteIpDetailsHasBeenSet = true;
138 m_remoteIpDetails = std::forward<RemoteIpDetailsT>(value);
139 }
140 template <typename RemoteIpDetailsT = RemoteIpDetails>
141 AwsApiCallAction& WithRemoteIpDetails(RemoteIpDetailsT&& value) {
142 SetRemoteIpDetails(std::forward<RemoteIpDetailsT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::String& GetServiceName() const { return m_serviceName; }
152 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
153 template <typename ServiceNameT = Aws::String>
154 void SetServiceName(ServiceNameT&& value) {
155 m_serviceNameHasBeenSet = true;
156 m_serviceName = std::forward<ServiceNameT>(value);
157 }
158 template <typename ServiceNameT = Aws::String>
159 AwsApiCallAction& WithServiceName(ServiceNameT&& value) {
160 SetServiceName(std::forward<ServiceNameT>(value));
161 return *this;
162 }
164
166
170 inline const RemoteAccountDetails& GetRemoteAccountDetails() const { return m_remoteAccountDetails; }
171 inline bool RemoteAccountDetailsHasBeenSet() const { return m_remoteAccountDetailsHasBeenSet; }
172 template <typename RemoteAccountDetailsT = RemoteAccountDetails>
173 void SetRemoteAccountDetails(RemoteAccountDetailsT&& value) {
174 m_remoteAccountDetailsHasBeenSet = true;
175 m_remoteAccountDetails = std::forward<RemoteAccountDetailsT>(value);
176 }
177 template <typename RemoteAccountDetailsT = RemoteAccountDetails>
178 AwsApiCallAction& WithRemoteAccountDetails(RemoteAccountDetailsT&& value) {
179 SetRemoteAccountDetails(std::forward<RemoteAccountDetailsT>(value));
180 return *this;
181 }
183
185
189 inline const Aws::Map<Aws::String, Aws::String>& GetAffectedResources() const { return m_affectedResources; }
190 inline bool AffectedResourcesHasBeenSet() const { return m_affectedResourcesHasBeenSet; }
191 template <typename AffectedResourcesT = Aws::Map<Aws::String, Aws::String>>
192 void SetAffectedResources(AffectedResourcesT&& value) {
193 m_affectedResourcesHasBeenSet = true;
194 m_affectedResources = std::forward<AffectedResourcesT>(value);
195 }
196 template <typename AffectedResourcesT = Aws::Map<Aws::String, Aws::String>>
197 AwsApiCallAction& WithAffectedResources(AffectedResourcesT&& value) {
198 SetAffectedResources(std::forward<AffectedResourcesT>(value));
199 return *this;
200 }
201 template <typename AffectedResourcesKeyT = Aws::String, typename AffectedResourcesValueT = Aws::String>
202 AwsApiCallAction& AddAffectedResources(AffectedResourcesKeyT&& key, AffectedResourcesValueT&& value) {
203 m_affectedResourcesHasBeenSet = true;
204 m_affectedResources.emplace(std::forward<AffectedResourcesKeyT>(key), std::forward<AffectedResourcesValueT>(value));
205 return *this;
206 }
208 private:
209 Aws::String m_api;
210
211 Aws::String m_callerType;
212
213 DomainDetails m_domainDetails;
214
215 Aws::String m_errorCode;
216
217 Aws::String m_userAgent;
218
219 RemoteIpDetails m_remoteIpDetails;
220
221 Aws::String m_serviceName;
222
223 RemoteAccountDetails m_remoteAccountDetails;
224
225 Aws::Map<Aws::String, Aws::String> m_affectedResources;
226 bool m_apiHasBeenSet = false;
227 bool m_callerTypeHasBeenSet = false;
228 bool m_domainDetailsHasBeenSet = false;
229 bool m_errorCodeHasBeenSet = false;
230 bool m_userAgentHasBeenSet = false;
231 bool m_remoteIpDetailsHasBeenSet = false;
232 bool m_serviceNameHasBeenSet = false;
233 bool m_remoteAccountDetailsHasBeenSet = false;
234 bool m_affectedResourcesHasBeenSet = false;
235};
236
237} // namespace Model
238} // namespace GuardDuty
239} // namespace Aws
const DomainDetails & GetDomainDetails() const
const RemoteAccountDetails & GetRemoteAccountDetails() const
void SetCallerType(CallerTypeT &&value)
void SetRemoteAccountDetails(RemoteAccountDetailsT &&value)
void SetDomainDetails(DomainDetailsT &&value)
void SetRemoteIpDetails(RemoteIpDetailsT &&value)
AwsApiCallAction & WithRemoteAccountDetails(RemoteAccountDetailsT &&value)
AwsApiCallAction & WithAffectedResources(AffectedResourcesT &&value)
AwsApiCallAction & WithCallerType(CallerTypeT &&value)
AwsApiCallAction & WithApi(ApiT &&value)
AwsApiCallAction & WithDomainDetails(DomainDetailsT &&value)
AwsApiCallAction & WithRemoteIpDetails(RemoteIpDetailsT &&value)
const Aws::String & GetServiceName() const
AWS_GUARDDUTY_API AwsApiCallAction(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCallerType() const
AwsApiCallAction & WithServiceName(ServiceNameT &&value)
AwsApiCallAction & AddAffectedResources(AffectedResourcesKeyT &&key, AffectedResourcesValueT &&value)
AwsApiCallAction & WithErrorCode(ErrorCodeT &&value)
AWS_GUARDDUTY_API AwsApiCallAction()=default
const Aws::Map< Aws::String, Aws::String > & GetAffectedResources() const
const Aws::String & GetErrorCode() const
AWS_GUARDDUTY_API AwsApiCallAction & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetServiceName(ServiceNameT &&value)
const Aws::String & GetUserAgent() const
void SetAffectedResources(AffectedResourcesT &&value)
const RemoteIpDetails & GetRemoteIpDetails() const
AwsApiCallAction & WithUserAgent(UserAgentT &&value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue