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/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();
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 inline void SetApi(const Aws::String& value) { m_apiHasBeenSet = true; m_api = value; }
51 inline void SetApi(Aws::String&& value) { m_apiHasBeenSet = true; m_api = std::move(value); }
52 inline void SetApi(const char* value) { m_apiHasBeenSet = true; m_api.assign(value); }
53 inline AwsApiCallAction& WithApi(const Aws::String& value) { SetApi(value); return *this;}
54 inline AwsApiCallAction& WithApi(Aws::String&& value) { SetApi(std::move(value)); return *this;}
55 inline AwsApiCallAction& WithApi(const char* value) { SetApi(value); return *this;}
57
59
62 inline const Aws::String& GetCallerType() const{ return m_callerType; }
63 inline bool CallerTypeHasBeenSet() const { return m_callerTypeHasBeenSet; }
64 inline void SetCallerType(const Aws::String& value) { m_callerTypeHasBeenSet = true; m_callerType = value; }
65 inline void SetCallerType(Aws::String&& value) { m_callerTypeHasBeenSet = true; m_callerType = std::move(value); }
66 inline void SetCallerType(const char* value) { m_callerTypeHasBeenSet = true; m_callerType.assign(value); }
67 inline AwsApiCallAction& WithCallerType(const Aws::String& value) { SetCallerType(value); return *this;}
68 inline AwsApiCallAction& WithCallerType(Aws::String&& value) { SetCallerType(std::move(value)); return *this;}
69 inline AwsApiCallAction& WithCallerType(const char* value) { SetCallerType(value); return *this;}
71
73
76 inline const DomainDetails& GetDomainDetails() const{ return m_domainDetails; }
77 inline bool DomainDetailsHasBeenSet() const { return m_domainDetailsHasBeenSet; }
78 inline void SetDomainDetails(const DomainDetails& value) { m_domainDetailsHasBeenSet = true; m_domainDetails = value; }
79 inline void SetDomainDetails(DomainDetails&& value) { m_domainDetailsHasBeenSet = true; m_domainDetails = std::move(value); }
80 inline AwsApiCallAction& WithDomainDetails(const DomainDetails& value) { SetDomainDetails(value); return *this;}
81 inline AwsApiCallAction& WithDomainDetails(DomainDetails&& value) { SetDomainDetails(std::move(value)); return *this;}
83
85
88 inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
89 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
90 inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
91 inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
92 inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
93 inline AwsApiCallAction& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
94 inline AwsApiCallAction& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
95 inline AwsApiCallAction& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
97
99
102 inline const Aws::String& GetUserAgent() const{ return m_userAgent; }
103 inline bool UserAgentHasBeenSet() const { return m_userAgentHasBeenSet; }
104 inline void SetUserAgent(const Aws::String& value) { m_userAgentHasBeenSet = true; m_userAgent = value; }
105 inline void SetUserAgent(Aws::String&& value) { m_userAgentHasBeenSet = true; m_userAgent = std::move(value); }
106 inline void SetUserAgent(const char* value) { m_userAgentHasBeenSet = true; m_userAgent.assign(value); }
107 inline AwsApiCallAction& WithUserAgent(const Aws::String& value) { SetUserAgent(value); return *this;}
108 inline AwsApiCallAction& WithUserAgent(Aws::String&& value) { SetUserAgent(std::move(value)); return *this;}
109 inline AwsApiCallAction& WithUserAgent(const char* value) { SetUserAgent(value); return *this;}
111
113
117 inline const RemoteIpDetails& GetRemoteIpDetails() const{ return m_remoteIpDetails; }
118 inline bool RemoteIpDetailsHasBeenSet() const { return m_remoteIpDetailsHasBeenSet; }
119 inline void SetRemoteIpDetails(const RemoteIpDetails& value) { m_remoteIpDetailsHasBeenSet = true; m_remoteIpDetails = value; }
120 inline void SetRemoteIpDetails(RemoteIpDetails&& value) { m_remoteIpDetailsHasBeenSet = true; m_remoteIpDetails = std::move(value); }
121 inline AwsApiCallAction& WithRemoteIpDetails(const RemoteIpDetails& value) { SetRemoteIpDetails(value); return *this;}
122 inline AwsApiCallAction& WithRemoteIpDetails(RemoteIpDetails&& value) { SetRemoteIpDetails(std::move(value)); return *this;}
124
126
129 inline const Aws::String& GetServiceName() const{ return m_serviceName; }
130 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
131 inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
132 inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
133 inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
134 inline AwsApiCallAction& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
135 inline AwsApiCallAction& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
136 inline AwsApiCallAction& WithServiceName(const char* value) { SetServiceName(value); return *this;}
138
140
144 inline const RemoteAccountDetails& GetRemoteAccountDetails() const{ return m_remoteAccountDetails; }
145 inline bool RemoteAccountDetailsHasBeenSet() const { return m_remoteAccountDetailsHasBeenSet; }
146 inline void SetRemoteAccountDetails(const RemoteAccountDetails& value) { m_remoteAccountDetailsHasBeenSet = true; m_remoteAccountDetails = value; }
147 inline void SetRemoteAccountDetails(RemoteAccountDetails&& value) { m_remoteAccountDetailsHasBeenSet = true; m_remoteAccountDetails = std::move(value); }
151
153
157 inline const Aws::Map<Aws::String, Aws::String>& GetAffectedResources() const{ return m_affectedResources; }
158 inline bool AffectedResourcesHasBeenSet() const { return m_affectedResourcesHasBeenSet; }
159 inline void SetAffectedResources(const Aws::Map<Aws::String, Aws::String>& value) { m_affectedResourcesHasBeenSet = true; m_affectedResources = value; }
160 inline void SetAffectedResources(Aws::Map<Aws::String, Aws::String>&& value) { m_affectedResourcesHasBeenSet = true; m_affectedResources = std::move(value); }
163 inline AwsApiCallAction& AddAffectedResources(const Aws::String& key, const Aws::String& value) { m_affectedResourcesHasBeenSet = true; m_affectedResources.emplace(key, value); return *this; }
164 inline AwsApiCallAction& AddAffectedResources(Aws::String&& key, const Aws::String& value) { m_affectedResourcesHasBeenSet = true; m_affectedResources.emplace(std::move(key), value); return *this; }
165 inline AwsApiCallAction& AddAffectedResources(const Aws::String& key, Aws::String&& value) { m_affectedResourcesHasBeenSet = true; m_affectedResources.emplace(key, std::move(value)); return *this; }
166 inline AwsApiCallAction& AddAffectedResources(Aws::String&& key, Aws::String&& value) { m_affectedResourcesHasBeenSet = true; m_affectedResources.emplace(std::move(key), std::move(value)); return *this; }
167 inline AwsApiCallAction& AddAffectedResources(const char* key, Aws::String&& value) { m_affectedResourcesHasBeenSet = true; m_affectedResources.emplace(key, std::move(value)); return *this; }
168 inline AwsApiCallAction& AddAffectedResources(Aws::String&& key, const char* value) { m_affectedResourcesHasBeenSet = true; m_affectedResources.emplace(std::move(key), value); return *this; }
169 inline AwsApiCallAction& AddAffectedResources(const char* key, const char* value) { m_affectedResourcesHasBeenSet = true; m_affectedResources.emplace(key, value); return *this; }
171 private:
172
173 Aws::String m_api;
174 bool m_apiHasBeenSet = false;
175
176 Aws::String m_callerType;
177 bool m_callerTypeHasBeenSet = false;
178
179 DomainDetails m_domainDetails;
180 bool m_domainDetailsHasBeenSet = false;
181
182 Aws::String m_errorCode;
183 bool m_errorCodeHasBeenSet = false;
184
185 Aws::String m_userAgent;
186 bool m_userAgentHasBeenSet = false;
187
188 RemoteIpDetails m_remoteIpDetails;
189 bool m_remoteIpDetailsHasBeenSet = false;
190
191 Aws::String m_serviceName;
192 bool m_serviceNameHasBeenSet = false;
193
194 RemoteAccountDetails m_remoteAccountDetails;
195 bool m_remoteAccountDetailsHasBeenSet = false;
196
197 Aws::Map<Aws::String, Aws::String> m_affectedResources;
198 bool m_affectedResourcesHasBeenSet = false;
199 };
200
201} // namespace Model
202} // namespace GuardDuty
203} // namespace Aws
AwsApiCallAction & WithRemoteAccountDetails(RemoteAccountDetails &&value)
AwsApiCallAction & WithErrorCode(const char *value)
const DomainDetails & GetDomainDetails() const
AwsApiCallAction & WithServiceName(const Aws::String &value)
const RemoteAccountDetails & GetRemoteAccountDetails() const
AwsApiCallAction & WithCallerType(Aws::String &&value)
AwsApiCallAction & WithServiceName(Aws::String &&value)
void SetErrorCode(const Aws::String &value)
AwsApiCallAction & AddAffectedResources(const Aws::String &key, const Aws::String &value)
void SetDomainDetails(const DomainDetails &value)
AwsApiCallAction & WithRemoteAccountDetails(const RemoteAccountDetails &value)
AwsApiCallAction & WithUserAgent(const Aws::String &value)
AwsApiCallAction & WithCallerType(const Aws::String &value)
AwsApiCallAction & WithRemoteIpDetails(const RemoteIpDetails &value)
void SetRemoteIpDetails(RemoteIpDetails &&value)
AwsApiCallAction & WithApi(Aws::String &&value)
void SetRemoteAccountDetails(const RemoteAccountDetails &value)
const Aws::String & GetServiceName() const
void SetApi(const Aws::String &value)
AWS_GUARDDUTY_API AwsApiCallAction(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCallerType() const
AwsApiCallAction & WithAffectedResources(Aws::Map< Aws::String, Aws::String > &&value)
void SetRemoteIpDetails(const RemoteIpDetails &value)
void SetAffectedResources(const Aws::Map< Aws::String, Aws::String > &value)
void SetDomainDetails(DomainDetails &&value)
AwsApiCallAction & WithDomainDetails(const DomainDetails &value)
void SetCallerType(Aws::String &&value)
AwsApiCallAction & AddAffectedResources(const char *key, Aws::String &&value)
void SetUserAgent(const Aws::String &value)
AwsApiCallAction & WithApi(const char *value)
AwsApiCallAction & AddAffectedResources(const Aws::String &key, Aws::String &&value)
AwsApiCallAction & AddAffectedResources(Aws::String &&key, Aws::String &&value)
AwsApiCallAction & WithRemoteIpDetails(RemoteIpDetails &&value)
AwsApiCallAction & AddAffectedResources(Aws::String &&key, const char *value)
void SetAffectedResources(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetAffectedResources() const
AwsApiCallAction & WithDomainDetails(DomainDetails &&value)
const Aws::String & GetErrorCode() const
AwsApiCallAction & WithApi(const Aws::String &value)
void SetServiceName(const Aws::String &value)
void SetRemoteAccountDetails(RemoteAccountDetails &&value)
AWS_GUARDDUTY_API AwsApiCallAction & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsApiCallAction & WithErrorCode(const Aws::String &value)
AwsApiCallAction & WithUserAgent(const char *value)
AwsApiCallAction & WithServiceName(const char *value)
const Aws::String & GetUserAgent() const
AwsApiCallAction & AddAffectedResources(const char *key, const char *value)
AwsApiCallAction & WithCallerType(const char *value)
AwsApiCallAction & WithAffectedResources(const Aws::Map< Aws::String, Aws::String > &value)
AwsApiCallAction & WithUserAgent(Aws::String &&value)
void SetCallerType(const Aws::String &value)
AwsApiCallAction & WithErrorCode(Aws::String &&value)
AwsApiCallAction & AddAffectedResources(Aws::String &&key, const Aws::String &value)
const RemoteIpDetails & GetRemoteIpDetails() const
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