AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ApiT = Aws::String>
52 void SetApi(ApiT&& value) { m_apiHasBeenSet = true; m_api = std::forward<ApiT>(value); }
53 template<typename ApiT = Aws::String>
54 AwsApiCallAction& WithApi(ApiT&& value) { SetApi(std::forward<ApiT>(value)); return *this;}
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) { m_serviceNameHasBeenSet = true; m_serviceName = std::forward<ServiceNameT>(value); }
66 template<typename ServiceNameT = Aws::String>
67 AwsApiCallAction& WithServiceName(ServiceNameT&& value) { SetServiceName(std::forward<ServiceNameT>(value)); return *this;}
69
71
75 inline const Aws::String& GetCallerType() const { return m_callerType; }
76 inline bool CallerTypeHasBeenSet() const { return m_callerTypeHasBeenSet; }
77 template<typename CallerTypeT = Aws::String>
78 void SetCallerType(CallerTypeT&& value) { m_callerTypeHasBeenSet = true; m_callerType = std::forward<CallerTypeT>(value); }
79 template<typename CallerTypeT = Aws::String>
80 AwsApiCallAction& WithCallerType(CallerTypeT&& value) { SetCallerType(std::forward<CallerTypeT>(value)); return *this;}
82
84
88 inline const ActionRemoteIpDetails& GetRemoteIpDetails() const { return m_remoteIpDetails; }
89 inline bool RemoteIpDetailsHasBeenSet() const { return m_remoteIpDetailsHasBeenSet; }
90 template<typename RemoteIpDetailsT = ActionRemoteIpDetails>
91 void SetRemoteIpDetails(RemoteIpDetailsT&& value) { m_remoteIpDetailsHasBeenSet = true; m_remoteIpDetails = std::forward<RemoteIpDetailsT>(value); }
92 template<typename RemoteIpDetailsT = ActionRemoteIpDetails>
93 AwsApiCallAction& WithRemoteIpDetails(RemoteIpDetailsT&& value) { SetRemoteIpDetails(std::forward<RemoteIpDetailsT>(value)); return *this;}
95
97
101 inline const AwsApiCallActionDomainDetails& GetDomainDetails() const { return m_domainDetails; }
102 inline bool DomainDetailsHasBeenSet() const { return m_domainDetailsHasBeenSet; }
103 template<typename DomainDetailsT = AwsApiCallActionDomainDetails>
104 void SetDomainDetails(DomainDetailsT&& value) { m_domainDetailsHasBeenSet = true; m_domainDetails = std::forward<DomainDetailsT>(value); }
105 template<typename DomainDetailsT = AwsApiCallActionDomainDetails>
106 AwsApiCallAction& WithDomainDetails(DomainDetailsT&& value) { SetDomainDetails(std::forward<DomainDetailsT>(value)); return *this;}
108
110
113 inline const Aws::Map<Aws::String, Aws::String>& GetAffectedResources() const { return m_affectedResources; }
114 inline bool AffectedResourcesHasBeenSet() const { return m_affectedResourcesHasBeenSet; }
115 template<typename AffectedResourcesT = Aws::Map<Aws::String, Aws::String>>
116 void SetAffectedResources(AffectedResourcesT&& value) { m_affectedResourcesHasBeenSet = true; m_affectedResources = std::forward<AffectedResourcesT>(value); }
117 template<typename AffectedResourcesT = Aws::Map<Aws::String, Aws::String>>
118 AwsApiCallAction& WithAffectedResources(AffectedResourcesT&& value) { SetAffectedResources(std::forward<AffectedResourcesT>(value)); return *this;}
119 template<typename AffectedResourcesKeyT = Aws::String, typename AffectedResourcesValueT = Aws::String>
120 AwsApiCallAction& AddAffectedResources(AffectedResourcesKeyT&& key, AffectedResourcesValueT&& value) {
121 m_affectedResourcesHasBeenSet = true; m_affectedResources.emplace(std::forward<AffectedResourcesKeyT>(key), std::forward<AffectedResourcesValueT>(value)); return *this;
122 }
124
126
132 inline const Aws::String& GetFirstSeen() const { return m_firstSeen; }
133 inline bool FirstSeenHasBeenSet() const { return m_firstSeenHasBeenSet; }
134 template<typename FirstSeenT = Aws::String>
135 void SetFirstSeen(FirstSeenT&& value) { m_firstSeenHasBeenSet = true; m_firstSeen = std::forward<FirstSeenT>(value); }
136 template<typename FirstSeenT = Aws::String>
137 AwsApiCallAction& WithFirstSeen(FirstSeenT&& value) { SetFirstSeen(std::forward<FirstSeenT>(value)); return *this;}
139
141
147 inline const Aws::String& GetLastSeen() const { return m_lastSeen; }
148 inline bool LastSeenHasBeenSet() const { return m_lastSeenHasBeenSet; }
149 template<typename LastSeenT = Aws::String>
150 void SetLastSeen(LastSeenT&& value) { m_lastSeenHasBeenSet = true; m_lastSeen = std::forward<LastSeenT>(value); }
151 template<typename LastSeenT = Aws::String>
152 AwsApiCallAction& WithLastSeen(LastSeenT&& value) { SetLastSeen(std::forward<LastSeenT>(value)); return *this;}
154 private:
155
156 Aws::String m_api;
157 bool m_apiHasBeenSet = false;
158
159 Aws::String m_serviceName;
160 bool m_serviceNameHasBeenSet = false;
161
162 Aws::String m_callerType;
163 bool m_callerTypeHasBeenSet = false;
164
165 ActionRemoteIpDetails m_remoteIpDetails;
166 bool m_remoteIpDetailsHasBeenSet = false;
167
168 AwsApiCallActionDomainDetails m_domainDetails;
169 bool m_domainDetailsHasBeenSet = false;
170
171 Aws::Map<Aws::String, Aws::String> m_affectedResources;
172 bool m_affectedResourcesHasBeenSet = false;
173
174 Aws::String m_firstSeen;
175 bool m_firstSeenHasBeenSet = false;
176
177 Aws::String m_lastSeen;
178 bool m_lastSeenHasBeenSet = false;
179 };
180
181} // namespace Model
182} // namespace SecurityHub
183} // 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