AWS SDK for C++

AWS SDK for C++ Version 1.11.718

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/securityhub/SecurityHub_EXPORTS.h>
10#include <aws/securityhub/model/ActionRemoteIpDetails.h>
11#include <aws/securityhub/model/AwsApiCallActionDomainDetails.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SecurityHub {
23namespace Model {
24
32 public:
33 AWS_SECURITYHUB_API AwsApiCallAction() = default;
34 AWS_SECURITYHUB_API AwsApiCallAction(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SECURITYHUB_API AwsApiCallAction& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetApi() const { return m_api; }
44 inline bool ApiHasBeenSet() const { return m_apiHasBeenSet; }
45 template <typename ApiT = Aws::String>
46 void SetApi(ApiT&& value) {
47 m_apiHasBeenSet = true;
48 m_api = std::forward<ApiT>(value);
49 }
50 template <typename ApiT = Aws::String>
51 AwsApiCallAction& WithApi(ApiT&& value) {
52 SetApi(std::forward<ApiT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetServiceName() const { return m_serviceName; }
63 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
64 template <typename ServiceNameT = Aws::String>
65 void SetServiceName(ServiceNameT&& value) {
66 m_serviceNameHasBeenSet = true;
67 m_serviceName = std::forward<ServiceNameT>(value);
68 }
69 template <typename ServiceNameT = Aws::String>
70 AwsApiCallAction& WithServiceName(ServiceNameT&& value) {
71 SetServiceName(std::forward<ServiceNameT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::String& GetCallerType() const { return m_callerType; }
82 inline bool CallerTypeHasBeenSet() const { return m_callerTypeHasBeenSet; }
83 template <typename CallerTypeT = Aws::String>
84 void SetCallerType(CallerTypeT&& value) {
85 m_callerTypeHasBeenSet = true;
86 m_callerType = std::forward<CallerTypeT>(value);
87 }
88 template <typename CallerTypeT = Aws::String>
89 AwsApiCallAction& WithCallerType(CallerTypeT&& value) {
90 SetCallerType(std::forward<CallerTypeT>(value));
91 return *this;
92 }
94
96
100 inline const ActionRemoteIpDetails& GetRemoteIpDetails() const { return m_remoteIpDetails; }
101 inline bool RemoteIpDetailsHasBeenSet() const { return m_remoteIpDetailsHasBeenSet; }
102 template <typename RemoteIpDetailsT = ActionRemoteIpDetails>
103 void SetRemoteIpDetails(RemoteIpDetailsT&& value) {
104 m_remoteIpDetailsHasBeenSet = true;
105 m_remoteIpDetails = std::forward<RemoteIpDetailsT>(value);
106 }
107 template <typename RemoteIpDetailsT = ActionRemoteIpDetails>
108 AwsApiCallAction& WithRemoteIpDetails(RemoteIpDetailsT&& value) {
109 SetRemoteIpDetails(std::forward<RemoteIpDetailsT>(value));
110 return *this;
111 }
113
115
119 inline const AwsApiCallActionDomainDetails& GetDomainDetails() const { return m_domainDetails; }
120 inline bool DomainDetailsHasBeenSet() const { return m_domainDetailsHasBeenSet; }
121 template <typename DomainDetailsT = AwsApiCallActionDomainDetails>
122 void SetDomainDetails(DomainDetailsT&& value) {
123 m_domainDetailsHasBeenSet = true;
124 m_domainDetails = std::forward<DomainDetailsT>(value);
125 }
126 template <typename DomainDetailsT = AwsApiCallActionDomainDetails>
127 AwsApiCallAction& WithDomainDetails(DomainDetailsT&& value) {
128 SetDomainDetails(std::forward<DomainDetailsT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::Map<Aws::String, Aws::String>& GetAffectedResources() const { return m_affectedResources; }
138 inline bool AffectedResourcesHasBeenSet() const { return m_affectedResourcesHasBeenSet; }
139 template <typename AffectedResourcesT = Aws::Map<Aws::String, Aws::String>>
140 void SetAffectedResources(AffectedResourcesT&& value) {
141 m_affectedResourcesHasBeenSet = true;
142 m_affectedResources = std::forward<AffectedResourcesT>(value);
143 }
144 template <typename AffectedResourcesT = Aws::Map<Aws::String, Aws::String>>
145 AwsApiCallAction& WithAffectedResources(AffectedResourcesT&& value) {
146 SetAffectedResources(std::forward<AffectedResourcesT>(value));
147 return *this;
148 }
149 template <typename AffectedResourcesKeyT = Aws::String, typename AffectedResourcesValueT = Aws::String>
150 AwsApiCallAction& AddAffectedResources(AffectedResourcesKeyT&& key, AffectedResourcesValueT&& value) {
151 m_affectedResourcesHasBeenSet = true;
152 m_affectedResources.emplace(std::forward<AffectedResourcesKeyT>(key), std::forward<AffectedResourcesValueT>(value));
153 return *this;
154 }
156
158
164 inline const Aws::String& GetFirstSeen() const { return m_firstSeen; }
165 inline bool FirstSeenHasBeenSet() const { return m_firstSeenHasBeenSet; }
166 template <typename FirstSeenT = Aws::String>
167 void SetFirstSeen(FirstSeenT&& value) {
168 m_firstSeenHasBeenSet = true;
169 m_firstSeen = std::forward<FirstSeenT>(value);
170 }
171 template <typename FirstSeenT = Aws::String>
172 AwsApiCallAction& WithFirstSeen(FirstSeenT&& value) {
173 SetFirstSeen(std::forward<FirstSeenT>(value));
174 return *this;
175 }
177
179
185 inline const Aws::String& GetLastSeen() const { return m_lastSeen; }
186 inline bool LastSeenHasBeenSet() const { return m_lastSeenHasBeenSet; }
187 template <typename LastSeenT = Aws::String>
188 void SetLastSeen(LastSeenT&& value) {
189 m_lastSeenHasBeenSet = true;
190 m_lastSeen = std::forward<LastSeenT>(value);
191 }
192 template <typename LastSeenT = Aws::String>
193 AwsApiCallAction& WithLastSeen(LastSeenT&& value) {
194 SetLastSeen(std::forward<LastSeenT>(value));
195 return *this;
196 }
198 private:
199 Aws::String m_api;
200
201 Aws::String m_serviceName;
202
203 Aws::String m_callerType;
204
205 ActionRemoteIpDetails m_remoteIpDetails;
206
207 AwsApiCallActionDomainDetails m_domainDetails;
208
209 Aws::Map<Aws::String, Aws::String> m_affectedResources;
210
211 Aws::String m_firstSeen;
212
213 Aws::String m_lastSeen;
214 bool m_apiHasBeenSet = false;
215 bool m_serviceNameHasBeenSet = false;
216 bool m_callerTypeHasBeenSet = false;
217 bool m_remoteIpDetailsHasBeenSet = false;
218 bool m_domainDetailsHasBeenSet = false;
219 bool m_affectedResourcesHasBeenSet = false;
220 bool m_firstSeenHasBeenSet = false;
221 bool m_lastSeenHasBeenSet = false;
222};
223
224} // namespace Model
225} // namespace SecurityHub
226} // namespace Aws
const Aws::String & GetCallerType() const
AwsApiCallAction & WithFirstSeen(FirstSeenT &&value)
void SetServiceName(ServiceNameT &&value)
AWS_SECURITYHUB_API AwsApiCallAction(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API AwsApiCallAction & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsApiCallAction & WithApi(ApiT &&value)
void SetAffectedResources(AffectedResourcesT &&value)
AwsApiCallAction & WithRemoteIpDetails(RemoteIpDetailsT &&value)
AwsApiCallAction & WithCallerType(CallerTypeT &&value)
const Aws::String & GetServiceName() const
void SetRemoteIpDetails(RemoteIpDetailsT &&value)
AwsApiCallAction & WithAffectedResources(AffectedResourcesT &&value)
const AwsApiCallActionDomainDetails & GetDomainDetails() const
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDomainDetails(DomainDetailsT &&value)
AwsApiCallAction & WithLastSeen(LastSeenT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAffectedResources() const
const ActionRemoteIpDetails & GetRemoteIpDetails() const
AwsApiCallAction & AddAffectedResources(AffectedResourcesKeyT &&key, AffectedResourcesValueT &&value)
AWS_SECURITYHUB_API AwsApiCallAction()=default
AwsApiCallAction & WithDomainDetails(DomainDetailsT &&value)
AwsApiCallAction & WithServiceName(ServiceNameT &&value)
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