AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
AwsApiCallAction.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/guardduty/model/DomainDetails.h>
10#include <aws/guardduty/model/RemoteIpDetails.h>
11#include <aws/guardduty/model/RemoteAccountDetails.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace GuardDuty
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_GUARDDUTY_API AwsApiCallAction() = default;
39 AWS_GUARDDUTY_API AwsApiCallAction(Aws::Utils::Json::JsonView jsonValue);
41 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetApi() const { return m_api; }
49 inline bool ApiHasBeenSet() const { return m_apiHasBeenSet; }
50 template<typename ApiT = Aws::String>
51 void SetApi(ApiT&& value) { m_apiHasBeenSet = true; m_api = std::forward<ApiT>(value); }
52 template<typename ApiT = Aws::String>
53 AwsApiCallAction& WithApi(ApiT&& value) { SetApi(std::forward<ApiT>(value)); return *this;}
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) { m_callerTypeHasBeenSet = true; m_callerType = std::forward<CallerTypeT>(value); }
64 template<typename CallerTypeT = Aws::String>
65 AwsApiCallAction& WithCallerType(CallerTypeT&& value) { SetCallerType(std::forward<CallerTypeT>(value)); return *this;}
67
69
72 inline const DomainDetails& GetDomainDetails() const { return m_domainDetails; }
73 inline bool DomainDetailsHasBeenSet() const { return m_domainDetailsHasBeenSet; }
74 template<typename DomainDetailsT = DomainDetails>
75 void SetDomainDetails(DomainDetailsT&& value) { m_domainDetailsHasBeenSet = true; m_domainDetails = std::forward<DomainDetailsT>(value); }
76 template<typename DomainDetailsT = DomainDetails>
77 AwsApiCallAction& WithDomainDetails(DomainDetailsT&& value) { SetDomainDetails(std::forward<DomainDetailsT>(value)); return *this;}
79
81
84 inline const Aws::String& GetErrorCode() const { return m_errorCode; }
85 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
86 template<typename ErrorCodeT = Aws::String>
87 void SetErrorCode(ErrorCodeT&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::forward<ErrorCodeT>(value); }
88 template<typename ErrorCodeT = Aws::String>
89 AwsApiCallAction& WithErrorCode(ErrorCodeT&& value) { SetErrorCode(std::forward<ErrorCodeT>(value)); return *this;}
91
93
96 inline const Aws::String& GetUserAgent() const { return m_userAgent; }
97 inline bool UserAgentHasBeenSet() const { return m_userAgentHasBeenSet; }
98 template<typename UserAgentT = Aws::String>
99 void SetUserAgent(UserAgentT&& value) { m_userAgentHasBeenSet = true; m_userAgent = std::forward<UserAgentT>(value); }
100 template<typename UserAgentT = Aws::String>
101 AwsApiCallAction& WithUserAgent(UserAgentT&& value) { SetUserAgent(std::forward<UserAgentT>(value)); return *this;}
103
105
109 inline const RemoteIpDetails& GetRemoteIpDetails() const { return m_remoteIpDetails; }
110 inline bool RemoteIpDetailsHasBeenSet() const { return m_remoteIpDetailsHasBeenSet; }
111 template<typename RemoteIpDetailsT = RemoteIpDetails>
112 void SetRemoteIpDetails(RemoteIpDetailsT&& value) { m_remoteIpDetailsHasBeenSet = true; m_remoteIpDetails = std::forward<RemoteIpDetailsT>(value); }
113 template<typename RemoteIpDetailsT = RemoteIpDetails>
114 AwsApiCallAction& WithRemoteIpDetails(RemoteIpDetailsT&& value) { SetRemoteIpDetails(std::forward<RemoteIpDetailsT>(value)); return *this;}
116
118
121 inline const Aws::String& GetServiceName() const { return m_serviceName; }
122 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
123 template<typename ServiceNameT = Aws::String>
124 void SetServiceName(ServiceNameT&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::forward<ServiceNameT>(value); }
125 template<typename ServiceNameT = Aws::String>
126 AwsApiCallAction& WithServiceName(ServiceNameT&& value) { SetServiceName(std::forward<ServiceNameT>(value)); return *this;}
128
130
134 inline const RemoteAccountDetails& GetRemoteAccountDetails() const { return m_remoteAccountDetails; }
135 inline bool RemoteAccountDetailsHasBeenSet() const { return m_remoteAccountDetailsHasBeenSet; }
136 template<typename RemoteAccountDetailsT = RemoteAccountDetails>
137 void SetRemoteAccountDetails(RemoteAccountDetailsT&& value) { m_remoteAccountDetailsHasBeenSet = true; m_remoteAccountDetails = std::forward<RemoteAccountDetailsT>(value); }
138 template<typename RemoteAccountDetailsT = RemoteAccountDetails>
139 AwsApiCallAction& WithRemoteAccountDetails(RemoteAccountDetailsT&& value) { SetRemoteAccountDetails(std::forward<RemoteAccountDetailsT>(value)); return *this;}
141
143
147 inline const Aws::Map<Aws::String, Aws::String>& GetAffectedResources() const { return m_affectedResources; }
148 inline bool AffectedResourcesHasBeenSet() const { return m_affectedResourcesHasBeenSet; }
149 template<typename AffectedResourcesT = Aws::Map<Aws::String, Aws::String>>
150 void SetAffectedResources(AffectedResourcesT&& value) { m_affectedResourcesHasBeenSet = true; m_affectedResources = std::forward<AffectedResourcesT>(value); }
151 template<typename AffectedResourcesT = Aws::Map<Aws::String, Aws::String>>
152 AwsApiCallAction& WithAffectedResources(AffectedResourcesT&& value) { SetAffectedResources(std::forward<AffectedResourcesT>(value)); return *this;}
153 template<typename AffectedResourcesKeyT = Aws::String, typename AffectedResourcesValueT = Aws::String>
154 AwsApiCallAction& AddAffectedResources(AffectedResourcesKeyT&& key, AffectedResourcesValueT&& value) {
155 m_affectedResourcesHasBeenSet = true; m_affectedResources.emplace(std::forward<AffectedResourcesKeyT>(key), std::forward<AffectedResourcesValueT>(value)); return *this;
156 }
158 private:
159
160 Aws::String m_api;
161 bool m_apiHasBeenSet = false;
162
163 Aws::String m_callerType;
164 bool m_callerTypeHasBeenSet = false;
165
166 DomainDetails m_domainDetails;
167 bool m_domainDetailsHasBeenSet = false;
168
169 Aws::String m_errorCode;
170 bool m_errorCodeHasBeenSet = false;
171
172 Aws::String m_userAgent;
173 bool m_userAgentHasBeenSet = false;
174
175 RemoteIpDetails m_remoteIpDetails;
176 bool m_remoteIpDetailsHasBeenSet = false;
177
178 Aws::String m_serviceName;
179 bool m_serviceNameHasBeenSet = false;
180
181 RemoteAccountDetails m_remoteAccountDetails;
182 bool m_remoteAccountDetailsHasBeenSet = false;
183
184 Aws::Map<Aws::String, Aws::String> m_affectedResources;
185 bool m_affectedResourcesHasBeenSet = false;
186 };
187
188} // namespace Model
189} // namespace GuardDuty
190} // 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