AWS SDK for C++  1.9.131
AWS SDK for C++
Action.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22  class JsonView;
23 } // namespace Json
24 } // namespace Utils
25 namespace SecurityHub
26 {
27 namespace Model
28 {
29 
41  {
42  public:
43  Action();
47 
48 
55  inline const Aws::String& GetActionType() const{ return m_actionType; }
56 
63  inline bool ActionTypeHasBeenSet() const { return m_actionTypeHasBeenSet; }
64 
71  inline void SetActionType(const Aws::String& value) { m_actionTypeHasBeenSet = true; m_actionType = value; }
72 
79  inline void SetActionType(Aws::String&& value) { m_actionTypeHasBeenSet = true; m_actionType = std::move(value); }
80 
87  inline void SetActionType(const char* value) { m_actionTypeHasBeenSet = true; m_actionType.assign(value); }
88 
95  inline Action& WithActionType(const Aws::String& value) { SetActionType(value); return *this;}
96 
103  inline Action& WithActionType(Aws::String&& value) { SetActionType(std::move(value)); return *this;}
104 
111  inline Action& WithActionType(const char* value) { SetActionType(value); return *this;}
112 
113 
118  inline const NetworkConnectionAction& GetNetworkConnectionAction() const{ return m_networkConnectionAction; }
119 
124  inline bool NetworkConnectionActionHasBeenSet() const { return m_networkConnectionActionHasBeenSet; }
125 
130  inline void SetNetworkConnectionAction(const NetworkConnectionAction& value) { m_networkConnectionActionHasBeenSet = true; m_networkConnectionAction = value; }
131 
136  inline void SetNetworkConnectionAction(NetworkConnectionAction&& value) { m_networkConnectionActionHasBeenSet = true; m_networkConnectionAction = std::move(value); }
137 
142  inline Action& WithNetworkConnectionAction(const NetworkConnectionAction& value) { SetNetworkConnectionAction(value); return *this;}
143 
148  inline Action& WithNetworkConnectionAction(NetworkConnectionAction&& value) { SetNetworkConnectionAction(std::move(value)); return *this;}
149 
150 
155  inline const AwsApiCallAction& GetAwsApiCallAction() const{ return m_awsApiCallAction; }
156 
161  inline bool AwsApiCallActionHasBeenSet() const { return m_awsApiCallActionHasBeenSet; }
162 
167  inline void SetAwsApiCallAction(const AwsApiCallAction& value) { m_awsApiCallActionHasBeenSet = true; m_awsApiCallAction = value; }
168 
173  inline void SetAwsApiCallAction(AwsApiCallAction&& value) { m_awsApiCallActionHasBeenSet = true; m_awsApiCallAction = std::move(value); }
174 
179  inline Action& WithAwsApiCallAction(const AwsApiCallAction& value) { SetAwsApiCallAction(value); return *this;}
180 
185  inline Action& WithAwsApiCallAction(AwsApiCallAction&& value) { SetAwsApiCallAction(std::move(value)); return *this;}
186 
187 
192  inline const DnsRequestAction& GetDnsRequestAction() const{ return m_dnsRequestAction; }
193 
198  inline bool DnsRequestActionHasBeenSet() const { return m_dnsRequestActionHasBeenSet; }
199 
204  inline void SetDnsRequestAction(const DnsRequestAction& value) { m_dnsRequestActionHasBeenSet = true; m_dnsRequestAction = value; }
205 
210  inline void SetDnsRequestAction(DnsRequestAction&& value) { m_dnsRequestActionHasBeenSet = true; m_dnsRequestAction = std::move(value); }
211 
216  inline Action& WithDnsRequestAction(const DnsRequestAction& value) { SetDnsRequestAction(value); return *this;}
217 
222  inline Action& WithDnsRequestAction(DnsRequestAction&& value) { SetDnsRequestAction(std::move(value)); return *this;}
223 
224 
229  inline const PortProbeAction& GetPortProbeAction() const{ return m_portProbeAction; }
230 
235  inline bool PortProbeActionHasBeenSet() const { return m_portProbeActionHasBeenSet; }
236 
241  inline void SetPortProbeAction(const PortProbeAction& value) { m_portProbeActionHasBeenSet = true; m_portProbeAction = value; }
242 
247  inline void SetPortProbeAction(PortProbeAction&& value) { m_portProbeActionHasBeenSet = true; m_portProbeAction = std::move(value); }
248 
253  inline Action& WithPortProbeAction(const PortProbeAction& value) { SetPortProbeAction(value); return *this;}
254 
259  inline Action& WithPortProbeAction(PortProbeAction&& value) { SetPortProbeAction(std::move(value)); return *this;}
260 
261  private:
262 
263  Aws::String m_actionType;
264  bool m_actionTypeHasBeenSet;
265 
266  NetworkConnectionAction m_networkConnectionAction;
267  bool m_networkConnectionActionHasBeenSet;
268 
269  AwsApiCallAction m_awsApiCallAction;
270  bool m_awsApiCallActionHasBeenSet;
271 
272  DnsRequestAction m_dnsRequestAction;
273  bool m_dnsRequestActionHasBeenSet;
274 
275  PortProbeAction m_portProbeAction;
276  bool m_portProbeActionHasBeenSet;
277  };
278 
279 } // namespace Model
280 } // namespace SecurityHub
281 } // namespace Aws
Aws::SecurityHub::Model::Action::SetAwsApiCallAction
void SetAwsApiCallAction(const AwsApiCallAction &value)
Definition: Action.h:167
Aws::SecurityHub::Model::Action::SetActionType
void SetActionType(Aws::String &&value)
Definition: Action.h:79
NetworkConnectionAction.h
Aws::SecurityHub::Model::Action::WithDnsRequestAction
Action & WithDnsRequestAction(const DnsRequestAction &value)
Definition: Action.h:216
Aws::SecurityHub::Model::Action::WithActionType
Action & WithActionType(const Aws::String &value)
Definition: Action.h:95
Aws::SecurityHub::Model::Action::WithNetworkConnectionAction
Action & WithNetworkConnectionAction(const NetworkConnectionAction &value)
Definition: Action.h:142
Aws::SecurityHub::Model::Action::AwsApiCallActionHasBeenSet
bool AwsApiCallActionHasBeenSet() const
Definition: Action.h:161
Aws::SecurityHub::Model::Action::PortProbeActionHasBeenSet
bool PortProbeActionHasBeenSet() const
Definition: Action.h:235
Aws::SecurityHub::Model::Action::WithNetworkConnectionAction
Action & WithNetworkConnectionAction(NetworkConnectionAction &&value)
Definition: Action.h:148
Aws::SecurityHub::Model::Action::WithPortProbeAction
Action & WithPortProbeAction(const PortProbeAction &value)
Definition: Action.h:253
Aws::SecurityHub::Model::Action::SetActionType
void SetActionType(const char *value)
Definition: Action.h:87
Aws::SecurityHub::Model::Action::WithPortProbeAction
Action & WithPortProbeAction(PortProbeAction &&value)
Definition: Action.h:259
Aws::SecurityHub::Model::Action::WithActionType
Action & WithActionType(const char *value)
Definition: Action.h:111
Aws::SecurityHub::Model::Action::Action
Action()
Aws::SecurityHub::Model::Action::SetActionType
void SetActionType(const Aws::String &value)
Definition: Action.h:71
Aws::SecurityHub::Model::Action::GetActionType
const Aws::String & GetActionType() const
Definition: Action.h:55
Aws::SecurityHub::Model::Action::SetDnsRequestAction
void SetDnsRequestAction(const DnsRequestAction &value)
Definition: Action.h:204
Aws::SecurityHub::Model::Action::GetPortProbeAction
const PortProbeAction & GetPortProbeAction() const
Definition: Action.h:229
AWS_SECURITYHUB_API
#define AWS_SECURITYHUB_API
Definition: SecurityHub_EXPORTS.h:28
Aws::SecurityHub::Model::Action::SetPortProbeAction
void SetPortProbeAction(const PortProbeAction &value)
Definition: Action.h:241
Aws::SecurityHub::Model::Action::WithActionType
Action & WithActionType(Aws::String &&value)
Definition: Action.h:103
Aws::SecurityHub::Model::Action::Action
Action(Aws::Utils::Json::JsonView jsonValue)
Aws::SecurityHub::Model::Action::ActionTypeHasBeenSet
bool ActionTypeHasBeenSet() const
Definition: Action.h:63
Aws::SecurityHub::Model::Action::SetNetworkConnectionAction
void SetNetworkConnectionAction(NetworkConnectionAction &&value)
Definition: Action.h:136
Aws::SecurityHub::Model::NetworkConnectionAction
Definition: NetworkConnectionAction.h:37
Aws::SecurityHub::Model::Action::SetNetworkConnectionAction
void SetNetworkConnectionAction(const NetworkConnectionAction &value)
Definition: Action.h:130
Aws::SecurityHub::Model::AwsApiCallAction
Definition: AwsApiCallAction.h:36
Aws::SecurityHub::Model::Action::SetAwsApiCallAction
void SetAwsApiCallAction(AwsApiCallAction &&value)
Definition: Action.h:173
Aws::SecurityHub::Model::Action::NetworkConnectionActionHasBeenSet
bool NetworkConnectionActionHasBeenSet() const
Definition: Action.h:124
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SecurityHub::Model::DnsRequestAction
Definition: DnsRequestAction.h:33
Aws::SecurityHub::Model::Action::SetPortProbeAction
void SetPortProbeAction(PortProbeAction &&value)
Definition: Action.h:247
Aws::SecurityHub::Model::Action::WithDnsRequestAction
Action & WithDnsRequestAction(DnsRequestAction &&value)
Definition: Action.h:222
PortProbeAction.h
Aws::SecurityHub::Model::Action::GetNetworkConnectionAction
const NetworkConnectionAction & GetNetworkConnectionAction() const
Definition: Action.h:118
DnsRequestAction.h
Aws::SecurityHub::Model::Action::WithAwsApiCallAction
Action & WithAwsApiCallAction(AwsApiCallAction &&value)
Definition: Action.h:185
Aws::SecurityHub::Model::Action::WithAwsApiCallAction
Action & WithAwsApiCallAction(const AwsApiCallAction &value)
Definition: Action.h:179
Aws::SecurityHub::Model::Action::DnsRequestActionHasBeenSet
bool DnsRequestActionHasBeenSet() const
Definition: Action.h:198
Aws::SecurityHub::Model::Action::SetDnsRequestAction
void SetDnsRequestAction(DnsRequestAction &&value)
Definition: Action.h:210
Aws::SecurityHub::Model::Action::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SecurityHub::Model::PortProbeAction
Definition: PortProbeAction.h:35
Aws
Definition: AccessManagementClient.h:15
Aws::SecurityHub::Model::Action::GetDnsRequestAction
const DnsRequestAction & GetDnsRequestAction() const
Definition: Action.h:192
Aws::SecurityHub::Model::Action
Definition: Action.h:41
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SecurityHub::Model::Action::operator=
Action & operator=(Aws::Utils::Json::JsonView jsonValue)
SecurityHub_EXPORTS.h
AwsApiCallAction.h
Aws::SecurityHub::Model::Action::GetAwsApiCallAction
const AwsApiCallAction & GetAwsApiCallAction() const
Definition: Action.h:155