AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Action.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/AwsApiCallAction.h>
10#include <aws/guardduty/model/DnsRequestAction.h>
11#include <aws/guardduty/model/NetworkConnectionAction.h>
12#include <aws/guardduty/model/PortProbeAction.h>
13#include <aws/guardduty/model/KubernetesApiCallAction.h>
14#include <aws/guardduty/model/RdsLoginAttemptAction.h>
15#include <aws/guardduty/model/KubernetesPermissionCheckedDetails.h>
16#include <aws/guardduty/model/KubernetesRoleBindingDetails.h>
17#include <aws/guardduty/model/KubernetesRoleDetails.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27 class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace GuardDuty
31{
32namespace Model
33{
34
40 class Action
41 {
42 public:
43 AWS_GUARDDUTY_API Action();
44 AWS_GUARDDUTY_API Action(Aws::Utils::Json::JsonView jsonValue);
45 AWS_GUARDDUTY_API Action& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const Aws::String& GetActionType() const{ return m_actionType; }
54 inline bool ActionTypeHasBeenSet() const { return m_actionTypeHasBeenSet; }
55 inline void SetActionType(const Aws::String& value) { m_actionTypeHasBeenSet = true; m_actionType = value; }
56 inline void SetActionType(Aws::String&& value) { m_actionTypeHasBeenSet = true; m_actionType = std::move(value); }
57 inline void SetActionType(const char* value) { m_actionTypeHasBeenSet = true; m_actionType.assign(value); }
58 inline Action& WithActionType(const Aws::String& value) { SetActionType(value); return *this;}
59 inline Action& WithActionType(Aws::String&& value) { SetActionType(std::move(value)); return *this;}
60 inline Action& WithActionType(const char* value) { SetActionType(value); return *this;}
62
64
67 inline const AwsApiCallAction& GetAwsApiCallAction() const{ return m_awsApiCallAction; }
68 inline bool AwsApiCallActionHasBeenSet() const { return m_awsApiCallActionHasBeenSet; }
69 inline void SetAwsApiCallAction(const AwsApiCallAction& value) { m_awsApiCallActionHasBeenSet = true; m_awsApiCallAction = value; }
70 inline void SetAwsApiCallAction(AwsApiCallAction&& value) { m_awsApiCallActionHasBeenSet = true; m_awsApiCallAction = std::move(value); }
71 inline Action& WithAwsApiCallAction(const AwsApiCallAction& value) { SetAwsApiCallAction(value); return *this;}
72 inline Action& WithAwsApiCallAction(AwsApiCallAction&& value) { SetAwsApiCallAction(std::move(value)); return *this;}
74
76
79 inline const DnsRequestAction& GetDnsRequestAction() const{ return m_dnsRequestAction; }
80 inline bool DnsRequestActionHasBeenSet() const { return m_dnsRequestActionHasBeenSet; }
81 inline void SetDnsRequestAction(const DnsRequestAction& value) { m_dnsRequestActionHasBeenSet = true; m_dnsRequestAction = value; }
82 inline void SetDnsRequestAction(DnsRequestAction&& value) { m_dnsRequestActionHasBeenSet = true; m_dnsRequestAction = std::move(value); }
83 inline Action& WithDnsRequestAction(const DnsRequestAction& value) { SetDnsRequestAction(value); return *this;}
84 inline Action& WithDnsRequestAction(DnsRequestAction&& value) { SetDnsRequestAction(std::move(value)); return *this;}
86
88
92 inline const NetworkConnectionAction& GetNetworkConnectionAction() const{ return m_networkConnectionAction; }
93 inline bool NetworkConnectionActionHasBeenSet() const { return m_networkConnectionActionHasBeenSet; }
94 inline void SetNetworkConnectionAction(const NetworkConnectionAction& value) { m_networkConnectionActionHasBeenSet = true; m_networkConnectionAction = value; }
95 inline void SetNetworkConnectionAction(NetworkConnectionAction&& value) { m_networkConnectionActionHasBeenSet = true; m_networkConnectionAction = std::move(value); }
97 inline Action& WithNetworkConnectionAction(NetworkConnectionAction&& value) { SetNetworkConnectionAction(std::move(value)); return *this;}
99
101
104 inline const PortProbeAction& GetPortProbeAction() const{ return m_portProbeAction; }
105 inline bool PortProbeActionHasBeenSet() const { return m_portProbeActionHasBeenSet; }
106 inline void SetPortProbeAction(const PortProbeAction& value) { m_portProbeActionHasBeenSet = true; m_portProbeAction = value; }
107 inline void SetPortProbeAction(PortProbeAction&& value) { m_portProbeActionHasBeenSet = true; m_portProbeAction = std::move(value); }
108 inline Action& WithPortProbeAction(const PortProbeAction& value) { SetPortProbeAction(value); return *this;}
109 inline Action& WithPortProbeAction(PortProbeAction&& value) { SetPortProbeAction(std::move(value)); return *this;}
111
113
117 inline const KubernetesApiCallAction& GetKubernetesApiCallAction() const{ return m_kubernetesApiCallAction; }
118 inline bool KubernetesApiCallActionHasBeenSet() const { return m_kubernetesApiCallActionHasBeenSet; }
119 inline void SetKubernetesApiCallAction(const KubernetesApiCallAction& value) { m_kubernetesApiCallActionHasBeenSet = true; m_kubernetesApiCallAction = value; }
120 inline void SetKubernetesApiCallAction(KubernetesApiCallAction&& value) { m_kubernetesApiCallActionHasBeenSet = true; m_kubernetesApiCallAction = std::move(value); }
124
126
130 inline const RdsLoginAttemptAction& GetRdsLoginAttemptAction() const{ return m_rdsLoginAttemptAction; }
131 inline bool RdsLoginAttemptActionHasBeenSet() const { return m_rdsLoginAttemptActionHasBeenSet; }
132 inline void SetRdsLoginAttemptAction(const RdsLoginAttemptAction& value) { m_rdsLoginAttemptActionHasBeenSet = true; m_rdsLoginAttemptAction = value; }
133 inline void SetRdsLoginAttemptAction(RdsLoginAttemptAction&& value) { m_rdsLoginAttemptActionHasBeenSet = true; m_rdsLoginAttemptAction = std::move(value); }
135 inline Action& WithRdsLoginAttemptAction(RdsLoginAttemptAction&& value) { SetRdsLoginAttemptAction(std::move(value)); return *this;}
137
139
143 inline const KubernetesPermissionCheckedDetails& GetKubernetesPermissionCheckedDetails() const{ return m_kubernetesPermissionCheckedDetails; }
144 inline bool KubernetesPermissionCheckedDetailsHasBeenSet() const { return m_kubernetesPermissionCheckedDetailsHasBeenSet; }
145 inline void SetKubernetesPermissionCheckedDetails(const KubernetesPermissionCheckedDetails& value) { m_kubernetesPermissionCheckedDetailsHasBeenSet = true; m_kubernetesPermissionCheckedDetails = value; }
146 inline void SetKubernetesPermissionCheckedDetails(KubernetesPermissionCheckedDetails&& value) { m_kubernetesPermissionCheckedDetailsHasBeenSet = true; m_kubernetesPermissionCheckedDetails = std::move(value); }
150
152
156 inline const KubernetesRoleBindingDetails& GetKubernetesRoleBindingDetails() const{ return m_kubernetesRoleBindingDetails; }
157 inline bool KubernetesRoleBindingDetailsHasBeenSet() const { return m_kubernetesRoleBindingDetailsHasBeenSet; }
158 inline void SetKubernetesRoleBindingDetails(const KubernetesRoleBindingDetails& value) { m_kubernetesRoleBindingDetailsHasBeenSet = true; m_kubernetesRoleBindingDetails = value; }
159 inline void SetKubernetesRoleBindingDetails(KubernetesRoleBindingDetails&& value) { m_kubernetesRoleBindingDetailsHasBeenSet = true; m_kubernetesRoleBindingDetails = std::move(value); }
163
165
168 inline const KubernetesRoleDetails& GetKubernetesRoleDetails() const{ return m_kubernetesRoleDetails; }
169 inline bool KubernetesRoleDetailsHasBeenSet() const { return m_kubernetesRoleDetailsHasBeenSet; }
170 inline void SetKubernetesRoleDetails(const KubernetesRoleDetails& value) { m_kubernetesRoleDetailsHasBeenSet = true; m_kubernetesRoleDetails = value; }
171 inline void SetKubernetesRoleDetails(KubernetesRoleDetails&& value) { m_kubernetesRoleDetailsHasBeenSet = true; m_kubernetesRoleDetails = std::move(value); }
173 inline Action& WithKubernetesRoleDetails(KubernetesRoleDetails&& value) { SetKubernetesRoleDetails(std::move(value)); return *this;}
175 private:
176
177 Aws::String m_actionType;
178 bool m_actionTypeHasBeenSet = false;
179
180 AwsApiCallAction m_awsApiCallAction;
181 bool m_awsApiCallActionHasBeenSet = false;
182
183 DnsRequestAction m_dnsRequestAction;
184 bool m_dnsRequestActionHasBeenSet = false;
185
186 NetworkConnectionAction m_networkConnectionAction;
187 bool m_networkConnectionActionHasBeenSet = false;
188
189 PortProbeAction m_portProbeAction;
190 bool m_portProbeActionHasBeenSet = false;
191
192 KubernetesApiCallAction m_kubernetesApiCallAction;
193 bool m_kubernetesApiCallActionHasBeenSet = false;
194
195 RdsLoginAttemptAction m_rdsLoginAttemptAction;
196 bool m_rdsLoginAttemptActionHasBeenSet = false;
197
198 KubernetesPermissionCheckedDetails m_kubernetesPermissionCheckedDetails;
199 bool m_kubernetesPermissionCheckedDetailsHasBeenSet = false;
200
201 KubernetesRoleBindingDetails m_kubernetesRoleBindingDetails;
202 bool m_kubernetesRoleBindingDetailsHasBeenSet = false;
203
204 KubernetesRoleDetails m_kubernetesRoleDetails;
205 bool m_kubernetesRoleDetailsHasBeenSet = false;
206 };
207
208} // namespace Model
209} // namespace GuardDuty
210} // namespace Aws
Action & WithActionType(const Aws::String &value)
Definition Action.h:58
bool KubernetesPermissionCheckedDetailsHasBeenSet() const
Definition Action.h:144
void SetKubernetesPermissionCheckedDetails(KubernetesPermissionCheckedDetails &&value)
Definition Action.h:146
void SetKubernetesPermissionCheckedDetails(const KubernetesPermissionCheckedDetails &value)
Definition Action.h:145
const KubernetesRoleDetails & GetKubernetesRoleDetails() const
Definition Action.h:168
void SetKubernetesRoleBindingDetails(const KubernetesRoleBindingDetails &value)
Definition Action.h:158
Action & WithNetworkConnectionAction(const NetworkConnectionAction &value)
Definition Action.h:96
bool KubernetesRoleBindingDetailsHasBeenSet() const
Definition Action.h:157
Action & WithKubernetesPermissionCheckedDetails(const KubernetesPermissionCheckedDetails &value)
Definition Action.h:147
Action & WithKubernetesApiCallAction(KubernetesApiCallAction &&value)
Definition Action.h:122
void SetRdsLoginAttemptAction(RdsLoginAttemptAction &&value)
Definition Action.h:133
Action & WithKubernetesRoleBindingDetails(KubernetesRoleBindingDetails &&value)
Definition Action.h:161
const NetworkConnectionAction & GetNetworkConnectionAction() const
Definition Action.h:92
void SetActionType(const char *value)
Definition Action.h:57
AWS_GUARDDUTY_API Action(Aws::Utils::Json::JsonView jsonValue)
void SetDnsRequestAction(const DnsRequestAction &value)
Definition Action.h:81
void SetKubernetesApiCallAction(const KubernetesApiCallAction &value)
Definition Action.h:119
Action & WithKubernetesRoleDetails(KubernetesRoleDetails &&value)
Definition Action.h:173
Action & WithKubernetesPermissionCheckedDetails(KubernetesPermissionCheckedDetails &&value)
Definition Action.h:148
Action & WithKubernetesRoleBindingDetails(const KubernetesRoleBindingDetails &value)
Definition Action.h:160
AWS_GUARDDUTY_API Action & operator=(Aws::Utils::Json::JsonView jsonValue)
Action & WithRdsLoginAttemptAction(const RdsLoginAttemptAction &value)
Definition Action.h:134
void SetAwsApiCallAction(const AwsApiCallAction &value)
Definition Action.h:69
const KubernetesPermissionCheckedDetails & GetKubernetesPermissionCheckedDetails() const
Definition Action.h:143
void SetKubernetesApiCallAction(KubernetesApiCallAction &&value)
Definition Action.h:120
void SetPortProbeAction(const PortProbeAction &value)
Definition Action.h:106
void SetDnsRequestAction(DnsRequestAction &&value)
Definition Action.h:82
const RdsLoginAttemptAction & GetRdsLoginAttemptAction() const
Definition Action.h:130
Action & WithNetworkConnectionAction(NetworkConnectionAction &&value)
Definition Action.h:97
Action & WithPortProbeAction(const PortProbeAction &value)
Definition Action.h:108
const KubernetesRoleBindingDetails & GetKubernetesRoleBindingDetails() const
Definition Action.h:156
const PortProbeAction & GetPortProbeAction() const
Definition Action.h:104
Action & WithDnsRequestAction(DnsRequestAction &&value)
Definition Action.h:84
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
bool NetworkConnectionActionHasBeenSet() const
Definition Action.h:93
Action & WithActionType(const char *value)
Definition Action.h:60
AWS_GUARDDUTY_API Action()
void SetPortProbeAction(PortProbeAction &&value)
Definition Action.h:107
bool KubernetesRoleDetailsHasBeenSet() const
Definition Action.h:169
bool DnsRequestActionHasBeenSet() const
Definition Action.h:80
Action & WithRdsLoginAttemptAction(RdsLoginAttemptAction &&value)
Definition Action.h:135
void SetActionType(Aws::String &&value)
Definition Action.h:56
bool KubernetesApiCallActionHasBeenSet() const
Definition Action.h:118
void SetKubernetesRoleBindingDetails(KubernetesRoleBindingDetails &&value)
Definition Action.h:159
const AwsApiCallAction & GetAwsApiCallAction() const
Definition Action.h:67
void SetKubernetesRoleDetails(const KubernetesRoleDetails &value)
Definition Action.h:170
Action & WithDnsRequestAction(const DnsRequestAction &value)
Definition Action.h:83
void SetRdsLoginAttemptAction(const RdsLoginAttemptAction &value)
Definition Action.h:132
bool AwsApiCallActionHasBeenSet() const
Definition Action.h:68
bool ActionTypeHasBeenSet() const
Definition Action.h:54
void SetAwsApiCallAction(AwsApiCallAction &&value)
Definition Action.h:70
void SetNetworkConnectionAction(NetworkConnectionAction &&value)
Definition Action.h:95
Action & WithActionType(Aws::String &&value)
Definition Action.h:59
void SetActionType(const Aws::String &value)
Definition Action.h:55
void SetNetworkConnectionAction(const NetworkConnectionAction &value)
Definition Action.h:94
const Aws::String & GetActionType() const
Definition Action.h:53
Action & WithKubernetesApiCallAction(const KubernetesApiCallAction &value)
Definition Action.h:121
bool RdsLoginAttemptActionHasBeenSet() const
Definition Action.h:131
const DnsRequestAction & GetDnsRequestAction() const
Definition Action.h:79
Action & WithAwsApiCallAction(AwsApiCallAction &&value)
Definition Action.h:72
bool PortProbeActionHasBeenSet() const
Definition Action.h:105
void SetKubernetesRoleDetails(KubernetesRoleDetails &&value)
Definition Action.h:171
const KubernetesApiCallAction & GetKubernetesApiCallAction() const
Definition Action.h:117
Action & WithAwsApiCallAction(const AwsApiCallAction &value)
Definition Action.h:71
Action & WithPortProbeAction(PortProbeAction &&value)
Definition Action.h:109
Action & WithKubernetesRoleDetails(const KubernetesRoleDetails &value)
Definition Action.h:172
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue