AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AwsApiCallAction.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/securityhub/model/ActionRemoteIpDetails.h>
10#include <aws/securityhub/model/AwsApiCallActionDomainDetails.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SecurityHub
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_SECURITYHUB_API AwsApiCallAction();
39 AWS_SECURITYHUB_API AwsApiCallAction(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SECURITYHUB_API AwsApiCallAction& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::String& GetApi() const{ return m_api; }
50 inline bool ApiHasBeenSet() const { return m_apiHasBeenSet; }
51 inline void SetApi(const Aws::String& value) { m_apiHasBeenSet = true; m_api = value; }
52 inline void SetApi(Aws::String&& value) { m_apiHasBeenSet = true; m_api = std::move(value); }
53 inline void SetApi(const char* value) { m_apiHasBeenSet = true; m_api.assign(value); }
54 inline AwsApiCallAction& WithApi(const Aws::String& value) { SetApi(value); return *this;}
55 inline AwsApiCallAction& WithApi(Aws::String&& value) { SetApi(std::move(value)); return *this;}
56 inline AwsApiCallAction& WithApi(const char* value) { SetApi(value); return *this;}
58
60
64 inline const Aws::String& GetServiceName() const{ return m_serviceName; }
65 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
66 inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
67 inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
68 inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
69 inline AwsApiCallAction& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
70 inline AwsApiCallAction& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
71 inline AwsApiCallAction& WithServiceName(const char* value) { SetServiceName(value); return *this;}
73
75
79 inline const Aws::String& GetCallerType() const{ return m_callerType; }
80 inline bool CallerTypeHasBeenSet() const { return m_callerTypeHasBeenSet; }
81 inline void SetCallerType(const Aws::String& value) { m_callerTypeHasBeenSet = true; m_callerType = value; }
82 inline void SetCallerType(Aws::String&& value) { m_callerTypeHasBeenSet = true; m_callerType = std::move(value); }
83 inline void SetCallerType(const char* value) { m_callerTypeHasBeenSet = true; m_callerType.assign(value); }
84 inline AwsApiCallAction& WithCallerType(const Aws::String& value) { SetCallerType(value); return *this;}
85 inline AwsApiCallAction& WithCallerType(Aws::String&& value) { SetCallerType(std::move(value)); return *this;}
86 inline AwsApiCallAction& WithCallerType(const char* value) { SetCallerType(value); return *this;}
88
90
94 inline const ActionRemoteIpDetails& GetRemoteIpDetails() const{ return m_remoteIpDetails; }
95 inline bool RemoteIpDetailsHasBeenSet() const { return m_remoteIpDetailsHasBeenSet; }
96 inline void SetRemoteIpDetails(const ActionRemoteIpDetails& value) { m_remoteIpDetailsHasBeenSet = true; m_remoteIpDetails = value; }
97 inline void SetRemoteIpDetails(ActionRemoteIpDetails&& value) { m_remoteIpDetailsHasBeenSet = true; m_remoteIpDetails = std::move(value); }
99 inline AwsApiCallAction& WithRemoteIpDetails(ActionRemoteIpDetails&& value) { SetRemoteIpDetails(std::move(value)); return *this;}
101
103
107 inline const AwsApiCallActionDomainDetails& GetDomainDetails() const{ return m_domainDetails; }
108 inline bool DomainDetailsHasBeenSet() const { return m_domainDetailsHasBeenSet; }
109 inline void SetDomainDetails(const AwsApiCallActionDomainDetails& value) { m_domainDetailsHasBeenSet = true; m_domainDetails = value; }
110 inline void SetDomainDetails(AwsApiCallActionDomainDetails&& value) { m_domainDetailsHasBeenSet = true; m_domainDetails = std::move(value); }
112 inline AwsApiCallAction& WithDomainDetails(AwsApiCallActionDomainDetails&& value) { SetDomainDetails(std::move(value)); return *this;}
114
116
119 inline const Aws::Map<Aws::String, Aws::String>& GetAffectedResources() const{ return m_affectedResources; }
120 inline bool AffectedResourcesHasBeenSet() const { return m_affectedResourcesHasBeenSet; }
121 inline void SetAffectedResources(const Aws::Map<Aws::String, Aws::String>& value) { m_affectedResourcesHasBeenSet = true; m_affectedResources = value; }
122 inline void SetAffectedResources(Aws::Map<Aws::String, Aws::String>&& value) { m_affectedResourcesHasBeenSet = true; m_affectedResources = std::move(value); }
125 inline AwsApiCallAction& AddAffectedResources(const Aws::String& key, const Aws::String& value) { m_affectedResourcesHasBeenSet = true; m_affectedResources.emplace(key, value); return *this; }
126 inline AwsApiCallAction& AddAffectedResources(Aws::String&& key, const Aws::String& value) { m_affectedResourcesHasBeenSet = true; m_affectedResources.emplace(std::move(key), value); return *this; }
127 inline AwsApiCallAction& AddAffectedResources(const Aws::String& key, Aws::String&& value) { m_affectedResourcesHasBeenSet = true; m_affectedResources.emplace(key, std::move(value)); return *this; }
128 inline AwsApiCallAction& AddAffectedResources(Aws::String&& key, Aws::String&& value) { m_affectedResourcesHasBeenSet = true; m_affectedResources.emplace(std::move(key), std::move(value)); return *this; }
129 inline AwsApiCallAction& AddAffectedResources(const char* key, Aws::String&& value) { m_affectedResourcesHasBeenSet = true; m_affectedResources.emplace(key, std::move(value)); return *this; }
130 inline AwsApiCallAction& AddAffectedResources(Aws::String&& key, const char* value) { m_affectedResourcesHasBeenSet = true; m_affectedResources.emplace(std::move(key), value); return *this; }
131 inline AwsApiCallAction& AddAffectedResources(const char* key, const char* value) { m_affectedResourcesHasBeenSet = true; m_affectedResources.emplace(key, value); return *this; }
133
135
152 inline const Aws::String& GetFirstSeen() const{ return m_firstSeen; }
153 inline bool FirstSeenHasBeenSet() const { return m_firstSeenHasBeenSet; }
154 inline void SetFirstSeen(const Aws::String& value) { m_firstSeenHasBeenSet = true; m_firstSeen = value; }
155 inline void SetFirstSeen(Aws::String&& value) { m_firstSeenHasBeenSet = true; m_firstSeen = std::move(value); }
156 inline void SetFirstSeen(const char* value) { m_firstSeenHasBeenSet = true; m_firstSeen.assign(value); }
157 inline AwsApiCallAction& WithFirstSeen(const Aws::String& value) { SetFirstSeen(value); return *this;}
158 inline AwsApiCallAction& WithFirstSeen(Aws::String&& value) { SetFirstSeen(std::move(value)); return *this;}
159 inline AwsApiCallAction& WithFirstSeen(const char* value) { SetFirstSeen(value); return *this;}
161
163
180 inline const Aws::String& GetLastSeen() const{ return m_lastSeen; }
181 inline bool LastSeenHasBeenSet() const { return m_lastSeenHasBeenSet; }
182 inline void SetLastSeen(const Aws::String& value) { m_lastSeenHasBeenSet = true; m_lastSeen = value; }
183 inline void SetLastSeen(Aws::String&& value) { m_lastSeenHasBeenSet = true; m_lastSeen = std::move(value); }
184 inline void SetLastSeen(const char* value) { m_lastSeenHasBeenSet = true; m_lastSeen.assign(value); }
185 inline AwsApiCallAction& WithLastSeen(const Aws::String& value) { SetLastSeen(value); return *this;}
186 inline AwsApiCallAction& WithLastSeen(Aws::String&& value) { SetLastSeen(std::move(value)); return *this;}
187 inline AwsApiCallAction& WithLastSeen(const char* value) { SetLastSeen(value); return *this;}
189 private:
190
191 Aws::String m_api;
192 bool m_apiHasBeenSet = false;
193
194 Aws::String m_serviceName;
195 bool m_serviceNameHasBeenSet = false;
196
197 Aws::String m_callerType;
198 bool m_callerTypeHasBeenSet = false;
199
200 ActionRemoteIpDetails m_remoteIpDetails;
201 bool m_remoteIpDetailsHasBeenSet = false;
202
203 AwsApiCallActionDomainDetails m_domainDetails;
204 bool m_domainDetailsHasBeenSet = false;
205
206 Aws::Map<Aws::String, Aws::String> m_affectedResources;
207 bool m_affectedResourcesHasBeenSet = false;
208
209 Aws::String m_firstSeen;
210 bool m_firstSeenHasBeenSet = false;
211
212 Aws::String m_lastSeen;
213 bool m_lastSeenHasBeenSet = false;
214 };
215
216} // namespace Model
217} // namespace SecurityHub
218} // namespace Aws
const Aws::String & GetCallerType() const
AwsApiCallAction & WithServiceName(Aws::String &&value)
AwsApiCallAction & AddAffectedResources(Aws::String &&key, const char *value)
void SetFirstSeen(const Aws::String &value)
AwsApiCallAction & WithServiceName(const char *value)
AwsApiCallAction & AddAffectedResources(Aws::String &&key, const Aws::String &value)
AWS_SECURITYHUB_API AwsApiCallAction(Aws::Utils::Json::JsonView jsonValue)
void SetRemoteIpDetails(ActionRemoteIpDetails &&value)
AwsApiCallAction & WithDomainDetails(const AwsApiCallActionDomainDetails &value)
AWS_SECURITYHUB_API AwsApiCallAction & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetServiceName() const
void SetLastSeen(const Aws::String &value)
AwsApiCallAction & WithLastSeen(const Aws::String &value)
AwsApiCallAction & WithLastSeen(Aws::String &&value)
AwsApiCallAction & WithAffectedResources(Aws::Map< Aws::String, Aws::String > &&value)
AwsApiCallAction & AddAffectedResources(Aws::String &&key, Aws::String &&value)
AwsApiCallAction & WithRemoteIpDetails(ActionRemoteIpDetails &&value)
AwsApiCallAction & WithCallerType(const char *value)
AwsApiCallAction & WithFirstSeen(const char *value)
void SetAffectedResources(const Aws::Map< Aws::String, Aws::String > &value)
AwsApiCallAction & WithCallerType(Aws::String &&value)
void SetCallerType(const Aws::String &value)
const AwsApiCallActionDomainDetails & GetDomainDetails() const
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsApiCallAction & WithCallerType(const Aws::String &value)
AwsApiCallAction & WithAffectedResources(const Aws::Map< Aws::String, Aws::String > &value)
AwsApiCallAction & AddAffectedResources(const Aws::String &key, const Aws::String &value)
AwsApiCallAction & AddAffectedResources(const char *key, const char *value)
AwsApiCallAction & WithLastSeen(const char *value)
AwsApiCallAction & WithApi(const Aws::String &value)
void SetApi(const Aws::String &value)
AwsApiCallAction & WithFirstSeen(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetAffectedResources() const
AwsApiCallAction & WithApi(const char *value)
void SetDomainDetails(AwsApiCallActionDomainDetails &&value)
AwsApiCallAction & AddAffectedResources(const char *key, Aws::String &&value)
AwsApiCallAction & AddAffectedResources(const Aws::String &key, Aws::String &&value)
void SetRemoteIpDetails(const ActionRemoteIpDetails &value)
const ActionRemoteIpDetails & GetRemoteIpDetails() const
AwsApiCallAction & WithServiceName(const Aws::String &value)
AwsApiCallAction & WithApi(Aws::String &&value)
void SetAffectedResources(Aws::Map< Aws::String, Aws::String > &&value)
AwsApiCallAction & WithDomainDetails(AwsApiCallActionDomainDetails &&value)
void SetServiceName(const Aws::String &value)
AwsApiCallAction & WithRemoteIpDetails(const ActionRemoteIpDetails &value)
void SetDomainDetails(const AwsApiCallActionDomainDetails &value)
AwsApiCallAction & WithFirstSeen(const Aws::String &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